[prev in list] [next in list] [prev in thread] [next in thread] 

List:       qemu-devel
Subject:    Re: [Qemu-devel] [PATCH 2/2] qemu-ga: add guest-fstrim command
From:       Christoph Hellwig <hch () lst ! de>
Date:       2012-06-24 16:33:40
Message-ID: 20120624163340.GA5727 () lst ! de
[Download RAW message or body]

On Fri, Jun 22, 2012 at 10:48:56AM -0700, Chris Wedgwood wrote:
> > FITRIM is a mounted filesystem feature to discard (or "trim") blocks which
> > are not in use by the filesystem. This is useful for solid-state drives
> > (SSDs) and thinly-provisioned storage.  Provide access to the feature
> > from the host so that filesystems can be trimmed periodically or before
> > migration.
> 
> Why can't we use the block layer for this?   AHCI (I think) already
> has support, others could be added some some coordination.
> 
> That was existing operating systems with current filesystems will DTRT
> when needed.

This commands calls the FITRIM command in the guest, which tells the
filesystems to issue an discard for all currently unused space.  At that
point it enters the block layer.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic