public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] Thin provisioning bits
@ 2009-10-30  3:30 Martin K. Petersen
  2009-10-30  3:30 ` [PATCH 1/2] block: Expose discard granularity Martin K. Petersen
  2009-10-30  3:30 ` [PATCH 2/2] sd: WRITE SAME(16) / UNMAP support Martin K. Petersen
  0 siblings, 2 replies; 14+ messages in thread
From: Martin K. Petersen @ 2009-10-30  3:30 UTC (permalink / raw)
  To: hch, axboe, matthew, linux-scsi

Just for discussion: This is what I have in my tree.  These two patches
correspond roughly to the ones Christoph posted earlier today.

I also support UNMAP and choose between UNMAP and WRITE SAME(16) depending
on values reported in the block limits VPD...



^ permalink raw reply	[flat|nested] 14+ messages in thread
* Thin provisioning update
@ 2009-11-04  4:25 Martin K. Petersen
  2009-11-04  4:25 ` [PATCH 1/2] block: Expose discard granularity Martin K. Petersen
  0 siblings, 1 reply; 14+ messages in thread
From: Martin K. Petersen @ 2009-11-04  4:25 UTC (permalink / raw)
  To: hch, axboe, matthew, linux-scsi

Christoph,

Here are some more recent bits for you to tinker with.

The first patch exports unmap granularity and alignment up the stack.  I have
also implemented support for topology stacking of these parameters.  A reported
discard granularity of 0 means fully provisioned.

In the second patch I made a few changes to the TP detection and extraction of
VPD values.

I have been hunting for heuristics for the WRITE SAME case but haven't found any
good ones.  I'm thinking we probably want to distinguish between a real array
with NV-backed unmap queueing and a thinly provisioned disk on a virtualization
server where there might be a real impact from having to zero out partial blocks.
I guess that's easy to handle with virtio but I'm not so sure how to do it when
emulating a SCSI disk.



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-11-04  4:26 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-30  3:30 [RFC] Thin provisioning bits Martin K. Petersen
2009-10-30  3:30 ` [PATCH 1/2] block: Expose discard granularity Martin K. Petersen
2009-10-30  5:07   ` Christoph Hellwig
2009-11-02 13:31     ` Martin K. Petersen
2009-11-03 15:12       ` Christoph Hellwig
2009-11-03 19:08         ` Jens Axboe
2009-10-30  3:30 ` [PATCH 2/2] sd: WRITE SAME(16) / UNMAP support Martin K. Petersen
2009-10-30  4:28   ` Douglas Gilbert
2009-10-30  4:53     ` Martin K. Petersen
2009-10-30 16:02       ` Ric Wheeler
2009-10-30  5:11   ` Christoph Hellwig
2009-11-02 13:32     ` Martin K. Petersen
2009-11-03 15:12       ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2009-11-04  4:25 Thin provisioning update Martin K. Petersen
2009-11-04  4:25 ` [PATCH 1/2] block: Expose discard granularity Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox