Hi Wouter,

Thank you very much for replying! I have patched my kernel to support only
TRIM. I hope I need not apply the patch for FLUSH/FUA as well to just use
TRIM? I hope all patches are added to the latest Linux kernel soon!

I have also updated the nbd client and server to version 3.0 (the latest
version) which does support TRIM.

How do I test if TRIM is working properly on my system? Are there any test
scripts readily available; or, do I need to create a new /dev/nbd and mount
a file system which supports TRIM and then try to issue some commands from
userspace? I haven't completely figured out this part yet.

Thanks,
T G

On Thu, Mar 15, 2012 at 1:31 PM, Wouter Verhelst <[email protected]> wrote:

> On Wed, Mar 14, 2012 at 04:15:47PM -0700, katon goukakyuuno wrote:
> > Hi all,
> >
> > I am working on Linux kernel 3.0 (vanilla) and have 2.9.23 version of the
> > nbd-client and nbd-server installed. Looking at the kernel sources, I
> find that
> >  NBD_CMD_TRIM is not supported in this version of the kernel; however, I
> did
> > come across various threads where discussions were going on about adding
> > support for the TRIM operation to NBD.
>
> Right; as far as I know, they haven't made it to Linus yet. Paul?
>
> > Could you please provide the link to the patches for the kernel,
>
> On this mailinglist (and on LKML), in September last year:
>
>
> http://sourceforge.net/mailarchive/forum.php?thread_name=1951246803.1122458.1315474882425.JavaMail.root%40zmail07.collab.prod.int.phx2.redhat.com&forum_name=nbd-general
>
> > nbd-client and nbd-server
>
> They are in nbd 2.9.24 (support for TRIM command) and 2.9.25 (using
> FALLOCATE_FL_PUNCH_HOLE if available). If you need it now, you want
> commits 111058e5 and 036f5246
>
> > so that I can use TRIM in association with NBD on my system? I believe
> > that the qemu kernel has been patched already. Can the same patch be
> > used with my kernel as well?
> >
> > By the way, the latest version of nbd-client and nbd-server support TRIM,
> > right?
>
> Yes.
>
> --
> The volume of a pizza of thickness a and radius z can be described by
> the following formula:
>
> pi zz a
>
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general

Reply via email to