Linux RAID subsystem development
 help / color / mirror / Atom feed
* Two questions about stripe_cache_size
@ 2011-02-22 21:46 Patrick J. LoPresti
  2011-02-22 22:01 ` NeilBrown
  0 siblings, 1 reply; 7+ messages in thread
From: Patrick J. LoPresti @ 2011-02-22 21:46 UTC (permalink / raw)
  To: linux-raid

(Thanks to Piergiorgio Sartor for pointing out this setting to me.)

I am looking for documentation on /sys/block/mdX/md/stripe_cache_size.
 Specifically:

1) What are the units of this attribute?

2) I see it is supported for RAID 5.  Is it supported for RAID 6?

Thanks!

 - Pat

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

* Re: Two questions about stripe_cache_size
  2011-02-22 21:46 Two questions about stripe_cache_size Patrick J. LoPresti
@ 2011-02-22 22:01 ` NeilBrown
  2011-02-22 22:10   ` Roberto Spadim
  2011-02-22 22:13   ` Patrick J. LoPresti
  0 siblings, 2 replies; 7+ messages in thread
From: NeilBrown @ 2011-02-22 22:01 UTC (permalink / raw)
  To: Patrick J. LoPresti; +Cc: linux-raid

On Tue, 22 Feb 2011 13:46:57 -0800 "Patrick J. LoPresti" <lopresti@gmail.com>
wrote:

> (Thanks to Piergiorgio Sartor for pointing out this setting to me.)
> 
> I am looking for documentation on /sys/block/mdX/md/stripe_cache_size.
>  Specifically:
> 
> 1) What are the units of this attribute?

Pages per device (1 page is 4K normally)

> 
> 2) I see it is supported for RAID 5.  Is it supported for RAID 6?

Yes.

NeilBrown


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

* Re: Two questions about stripe_cache_size
  2011-02-22 22:01 ` NeilBrown
@ 2011-02-22 22:10   ` Roberto Spadim
  2011-02-22 22:13   ` Patrick J. LoPresti
  1 sibling, 0 replies; 7+ messages in thread
From: Roberto Spadim @ 2011-02-22 22:10 UTC (permalink / raw)
  To: NeilBrown; +Cc: Patrick J. LoPresti, linux-raid

could add ' pages' or ' kB' after number? just to know what´s unit

2011/2/22 NeilBrown <neilb@suse.de>:
> On Tue, 22 Feb 2011 13:46:57 -0800 "Patrick J. LoPresti" <lopresti@gmail.com>
> wrote:
>
>> (Thanks to Piergiorgio Sartor for pointing out this setting to me.)
>>
>> I am looking for documentation on /sys/block/mdX/md/stripe_cache_size.
>>  Specifically:
>>
>> 1) What are the units of this attribute?
>
> Pages per device (1 page is 4K normally)
>
>>
>> 2) I see it is supported for RAID 5.  Is it supported for RAID 6?
>
> Yes.
>
> NeilBrown
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Two questions about stripe_cache_size
  2011-02-22 22:01 ` NeilBrown
  2011-02-22 22:10   ` Roberto Spadim
@ 2011-02-22 22:13   ` Patrick J. LoPresti
  2011-02-22 22:24     ` NeilBrown
  1 sibling, 1 reply; 7+ messages in thread
From: Patrick J. LoPresti @ 2011-02-22 22:13 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

Thanks, Neil.  Actually, I think I have one more question...  (Well,
one question with many faces.)

Is the stripe cache write-back, or write-through?  If the latter, when
does it get flushed to disk, exactly?

 - Pat

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

* Re: Two questions about stripe_cache_size
  2011-02-22 22:13   ` Patrick J. LoPresti
@ 2011-02-22 22:24     ` NeilBrown
  2011-02-22 22:26       ` Roberto Spadim
  2011-02-22 22:35       ` Patrick J. LoPresti
  0 siblings, 2 replies; 7+ messages in thread
From: NeilBrown @ 2011-02-22 22:24 UTC (permalink / raw)
  To: Patrick J. LoPresti; +Cc: linux-raid

On Tue, 22 Feb 2011 14:13:14 -0800 "Patrick J. LoPresti" <lopresti@gmail.com>
wrote:

> Thanks, Neil.  Actually, I think I have one more question...  (Well,
> one question with many faces.)
> 
> Is the stripe cache write-back, or write-through?  If the latter, when
> does it get flushed to disk, exactly?
> 

Write-through.

However I am tempted to make it write-back as filesystems now submit 'flush'
requests which can be used to flush the cache.  I wonder if you would be able
to notice any performance difference...

NeilBrown

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

* Re: Two questions about stripe_cache_size
  2011-02-22 22:24     ` NeilBrown
@ 2011-02-22 22:26       ` Roberto Spadim
  2011-02-22 22:35       ` Patrick J. LoPresti
  1 sibling, 0 replies; 7+ messages in thread
From: Roberto Spadim @ 2011-02-22 22:26 UTC (permalink / raw)
  To: NeilBrown; +Cc: Patrick J. LoPresti, linux-raid

could we select it with sysfs?

2011/2/22 NeilBrown <neilb@suse.de>:
> On Tue, 22 Feb 2011 14:13:14 -0800 "Patrick J. LoPresti" <lopresti@gmail.com>
> wrote:
>
>> Thanks, Neil.  Actually, I think I have one more question...  (Well,
>> one question with many faces.)
>>
>> Is the stripe cache write-back, or write-through?  If the latter, when
>> does it get flushed to disk, exactly?
>>
>
> Write-through.
>
> However I am tempted to make it write-back as filesystems now submit 'flush'
> requests which can be used to flush the cache.  I wonder if you would be able
> to notice any performance difference...
>
> NeilBrown
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>



-- 
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: Two questions about stripe_cache_size
  2011-02-22 22:24     ` NeilBrown
  2011-02-22 22:26       ` Roberto Spadim
@ 2011-02-22 22:35       ` Patrick J. LoPresti
  1 sibling, 0 replies; 7+ messages in thread
From: Patrick J. LoPresti @ 2011-02-22 22:35 UTC (permalink / raw)
  To: NeilBrown; +Cc: linux-raid

On Tue, Feb 22, 2011 at 2:24 PM, NeilBrown <neilb@suse.de> wrote:
>
>
> Write-through.
>
> However I am tempted to make it write-back as filesystems now submit 'flush'
> requests which can be used to flush the cache.  I wonder if you would be able
> to notice any performance difference...

I imagine it would depend on your file system and what you are doing with it.

In my application, I am typically generating multi-gigabyte files,
with linear writes, at a reasonably fast pace.  So write-back might
help.

On the other hand, "flush" alone might not be sufficient for high
performance.  I do not know much about Linux file system internals,
but it seems to me that there are two separate but related concepts.
One is ordering of operations (to ensure file system consistency).
The other is flushing (for data integrity; i.e. fsync()).  If the file
system actually has to flush to ensure consistency -- rather than just
tagging its writes with ordering constraints -- I think you might lose
a lot of your performance to all of that flushing.

But since I really do not know what the kernel provides internally in
this regard I will stop rambling now.

 - Pat
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2011-02-22 22:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-22 21:46 Two questions about stripe_cache_size Patrick J. LoPresti
2011-02-22 22:01 ` NeilBrown
2011-02-22 22:10   ` Roberto Spadim
2011-02-22 22:13   ` Patrick J. LoPresti
2011-02-22 22:24     ` NeilBrown
2011-02-22 22:26       ` Roberto Spadim
2011-02-22 22:35       ` Patrick J. LoPresti

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox