linux-btrace.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* What does FWFSM as an RBWS mean?
@ 2017-05-09 16:40 Chris Worley
  2017-05-09 16:43 ` Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Chris Worley @ 2017-05-09 16:40 UTC (permalink / raw)
  To: linux-btrace

The documentation doesn't define anything but R, W, and S (and barriers).

I'm guessing F is a FUA/flush, but why two F's?

Is M no-merge?

Out of this list of RBWS's:

WS
FWS
FWFSM

... will any cause NAND/flash to thrash (i.e. shorten the life by
constantly clearing/garbage collecting large "blocks" for small
writes)?

Thanks,

Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What does FWFSM as an RBWS mean?
  2017-05-09 16:40 What does FWFSM as an RBWS mean? Chris Worley
@ 2017-05-09 16:43 ` Christoph Hellwig
  2017-05-09 17:03 ` Chris Worley
  2017-05-09 19:08 ` Christoph Hellwig
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2017-05-09 16:43 UTC (permalink / raw)
  To: linux-btrace

On Tue, May 09, 2017 at 06:40:28AM -1000, Chris Worley wrote:
> The documentation doesn't define anything but R, W, and S (and barriers).
> 
> I'm guessing F is a FUA/flush, but why two F's?

Pre-Flush and Fua.

> Is M no-merge?

Metadata.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What does FWFSM as an RBWS mean?
  2017-05-09 16:40 What does FWFSM as an RBWS mean? Chris Worley
  2017-05-09 16:43 ` Christoph Hellwig
@ 2017-05-09 17:03 ` Chris Worley
  2017-05-09 19:08 ` Christoph Hellwig
  2 siblings, 0 replies; 4+ messages in thread
From: Chris Worley @ 2017-05-09 17:03 UTC (permalink / raw)
  To: linux-btrace

On Tue, May 9, 2017 at 6:43 AM, Christoph Hellwig <hch@infradead.org> wrote:
> On Tue, May 09, 2017 at 06:40:28AM -1000, Chris Worley wrote:
>> The documentation doesn't define anything but R, W, and S (and barriers).
>>
>> I'm guessing F is a FUA/flush, but why two F's?
>
> Pre-Flush and Fua.

So one is pre-flush and the second is FUA?  How do you tell which F
you're looking at if just one?  I'm seeing lots of both FWS and FWFSM.

>
>> Is M no-merge?
>
> Metadata.

So, really no effect, just informational (this is an XFS fs doing the I/O).

Any hints on when sync, flushes, or FUAs force flash to write to
media?  We're using NVMe drives.  All these operations should be
power-cut safe... I'm not sure if any force the driver/controller to
commit to NAND when buffering (in power-cut safe memory) would be
better for performance/lifespan.  I'm guessing this isn't an easy
question... any idea how to find out?

Thanks,

Chris

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: What does FWFSM as an RBWS mean?
  2017-05-09 16:40 What does FWFSM as an RBWS mean? Chris Worley
  2017-05-09 16:43 ` Christoph Hellwig
  2017-05-09 17:03 ` Chris Worley
@ 2017-05-09 19:08 ` Christoph Hellwig
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2017-05-09 19:08 UTC (permalink / raw)
  To: linux-btrace

On Tue, May 09, 2017 at 07:03:06AM -1000, Chris Worley wrote:
> So one is pre-flush and the second is FUA?  How do you tell which F
> you're looking at if just one?  I'm seeing lots of both FWS and FWFSM.

A Pre-flush is before the 'W', a FUA is after the 'W'.

> So, really no effect, just informational (this is an XFS fs doing the I/O).

Yes.

> 
> Any hints on when sync, flushes, or FUAs force flash to write to
> media?  We're using NVMe drives.  All these operations should be
> power-cut safe... I'm not sure if any force the driver/controller to
> commit to NAND when buffering (in power-cut safe memory) would be
> better for performance/lifespan.  I'm guessing this isn't an easy
> question... any idea how to find out?

The answer is it depends.  For enterprice drivers writes are usually
buffered on SRAM before going to the media, but those usually don't
even claim to have a volatile write cache (e.g. do not set the
Volatile Write Cache (VWC) bit in Identify Controller in nvme, you
can check that using 'nvme id-ctrl -H /dev/nvme0').

For consumer drivers chances are every flush or fua will go out
to the media, or the device is not actually power fail safe.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-09 19:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-09 16:40 What does FWFSM as an RBWS mean? Chris Worley
2017-05-09 16:43 ` Christoph Hellwig
2017-05-09 17:03 ` Chris Worley
2017-05-09 19:08 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).