Re: [Nbd] NBD, DISCARD/TRIM
- To: Paul Clements <paul.clements@...856...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] NBD, DISCARD/TRIM
- From: folkert <folkert@...421...>
- Date: Mon, 25 Mar 2013 20:26:20 +0100
- Message-id: <20130325192620.GF32435@...855...>
- In-reply-to: <CAECXXi6V+onKJjR+NZ0nDLHtXze2tTeQZdPHYX8rozB06-C+bg@...18...>
- References: <20130319145642.GA4508@...855...> <CAECXXi5Co05GJrHe-8gskN-=ZBwHW-jchUb9CNwLWkOH67v=EQ@...18...> <20130319160149.GB4508@...855...> <20130319180641.GD4508@...855...> <CAECXXi5N6RpC8=YcWFaiwH2oBA8aJHRvcwLJg_Hw14ESL1+bnA@...18...> <CAECXXi6G3ydMAvjP1fHJJ-Jn_6e3GQO51XiVy4jpXv1yu2X1jw@...18...> <20130322212454.GC19387@...855...> <CAECXXi6V+onKJjR+NZ0nDLHtXze2tTeQZdPHYX8rozB06-C+bg@...18...>
> >> I had suspected the kill_bdev patch, as it's the only thing of any
> >> significance that has changed recently related to nbd shutdown, but it
> >
> > As a note: this does not happen during shutdown. Well, maybe it does but
> > that was not invoked at the time of the crash.
> > The test was:
> > mount /dev/nbd0 /mnt -o noatime,discard,barrier=1 (or without -o)
> > and then on that mountpoint
> > iozone3 [...]
> So maybe iozone is doing something odd here? Can you make this happen
> without that?
Well iozone3 works on files, not directly on the device so from the nbd
point of view nothings strange happens. I did see it happen too with a
script I wrote that did all kinds of things in parallel: iso copy, tar
of kernel sources. Unfortunately I lost that script.
> >> As for what is causing your client to stop in the first place, I'm not
> >> sure. How do you have the FS mounted? Are you testing discard, i.e.,
> >> you have the option enabled in the nbd-server?
> >
> > As I wrote above.
> > But also with just plain mount /dev/nbd0 /mnt. This is always with a
> > filesystem build with mkfs.ext4 -j. Furthermore, this is with the stock
>
> You're saying _any_ mount of ext4 over nbd does this sudden shutdown,
> with 3.2+ kernel? Surely that's not the case?
Yes, it does unfortunately.
Folkert van Heusden
--
MultiTail er et flexible tool for å kontrolere Logfiles og commandoer.
Med filtrer, farger, sammenføringer, forskeliger ansikter etc.
http://www.vanheusden.com/multitail/
----------------------------------------------------------------------
Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
Reply to: