Re: [Nbd] fua, trim, etc
- To: Alex Bligh <alex@...872...>
- Cc: Nbd-general@lists.sourceforge.net, Paolo Bonzini <pbonzini@...696...>
- Subject: Re: [Nbd] fua, trim, etc
- From: Wouter Verhelst <w@...112...>
- Date: Tue, 13 Sep 2011 14:11:02 +0200
- Message-id: <20110913121102.GI4527@...3...>
- In-reply-to: <AEBC64A7DC7758827F068888@...873...>
- References: <20110910204342.GC1012@...855...> <4E6E20F6.9080106@...696...> <CAFDOyVDxa-aD9puS5C8MUk8WjzzOh71ieZ_11zL_uvTy+hP_JQ@...18...> <4E6F07C6.4090007@...696...> <8CC8512B5F1ACB6177ADC6FD@...874...> <CAFDOyVCqBpvwhXkQ9suaOdkYYBUwf1T5Zk7-QsAgEUiM0Z+ELA@...18...> <20110913103607.GG4527@...3...> <6244130873C2048DD2975307@...873...> <4E6F3AF9.6030204@...696...> <AEBC64A7DC7758827F068888@...873...>
On Tue, Sep 13, 2011 at 12:25:21PM +0100, Alex Bligh wrote:
> There are actually subtly different questions here:
>
> 1. Should the server advertise flush and fua support by default
> (the answer here is pretty obviously yes in my book - though
> currently it doesn't).
My policy on that is that I don't enable new features by default until
they've had some real-world exposure for a while. But yeah, eventually
it might make sense to change these defaults.
[...]
> Note, when considering defaults, that FUA is not as efficient as
> it might be, because in essence it does a flush().
Well, almost. I've been working on a multithreaded implementation (which
still requires some debugging) where FUA and FLUSH would be implemented
differently (FUA would cause fsync() to be called after the write with
which it is sent, and would not care about other writes, whereas FLUSH
(obvioulsy) would.
> Better would be to have a completely separate file opened with O_SYNC
> (see archives). I think we should at least measure the performance
> implications before we change the defaults.
Yes, absolutely, as above.
--
The volume of a pizza of thickness a and radius z can be described by
the following formula:
pi zz a
Reply to:
- References:
- [Nbd] fua, trim, etc
- From: folkert <folkert@...421...>
- Re: [Nbd] fua, trim, etc
- From: Paolo Bonzini <pbonzini@...696...>
- Re: [Nbd] fua, trim, etc
- From: Folkert van Heusden <folkert.van.heusden@...17...>
- Re: [Nbd] fua, trim, etc
- From: Paolo Bonzini <pbonzini@...696...>
- Re: [Nbd] fua, trim, etc
- From: Alex Bligh <alex@...872...>
- Re: [Nbd] fua, trim, etc
- From: Folkert van Heusden <folkert@...421...>
- Re: [Nbd] fua, trim, etc
- From: Wouter Verhelst <w@...112...>
- Re: [Nbd] fua, trim, etc
- From: Alex Bligh <alex@...872...>
- Re: [Nbd] fua, trim, etc
- From: Paolo Bonzini <pbonzini@...696...>
- Re: [Nbd] fua, trim, etc
- From: Alex Bligh <alex@...872...>