Re: [Nbd] NBD kernel module, client and server with support for TRIM
- To: Wouter Verhelst <w@...112...>
- Cc: firstname.lastname@example.org
- Subject: Re: [Nbd] NBD kernel module, client and server with support for TRIM
- From: katon goukakyuuno <katongoukakyuuno@...223...>
- Date: Fri, 16 Mar 2012 10:42:03 -0700
- Message-id: <CAKx_x+ANh2egJRPSrsDoKKurEioo2VwMP9ztYk2WL8q3FWB7qA@...18...>
- In-reply-to: <20120315203142.GH26123@...3...>
- References: <CAKx_x+CjckUirdzKi+MxH9BfOGrNf0sXtMyYp6Xx_jbAPwL5Bg@...18...> <20120315203142.GH26123@...3...>
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.
On Thu, Mar 15, 2012 at 1:31 PM, Wouter Verhelst <w@...112...>
On Wed, Mar 14, 2012 at 04:15:47PM -0700, katon goukakyuuno wrote:Right; as far as I know, they haven't made it to Linus yet. Paul?
> 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.
On this mailinglist (and on LKML), in September last year:
> Could you please provide the link to the patches for the kernel,
> 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,
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a