linux-bcache.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Slow writing of dirty data (bcache)
@ 2014-03-10 16:34 Larkin Lowrey
  2014-03-10 20:56 ` Sitsofe Wheeler
       [not found] ` <CALJ65zm4O8KeA1vjhupAFoqh+07qH5OaLMCbm-fShkZk6nf9MA@mail.gmail.com>
  0 siblings, 2 replies; 3+ messages in thread
From: Larkin Lowrey @ 2014-03-10 16:34 UTC (permalink / raw)
  To: linux-bcache

I'm seeing an odd behavior after updating to kernel
3.13.5-202.fc20.x86_64 from 3.12.7-300.fc20.x86_64.

I have a bcache device (bcache2) which backs a raid5 array (md2) that
has 160+MB of dirty data. The dirty data is being written at a rate of 1
page per second (8 sectors). At this rate it'll take 11 hrs to finish. I
like to keep this array spun down when inactive but the drives can't
spin down since they're being written to once a second.

# cat /sys/block/bcache2/bcache/writeback_rate
512

# cat /sys/block/bcache2/bcache/writeback_rate_debug
rate:           512/sec
dirty:          161M
target:         40.8G
proportional:   -35.2M
derivative:     0
change:         -35.2M/sec
next io:        624ms

This never happened when running 3.12.7. Is there anything I can do
about this?

--Larkin

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

* Re: Slow writing of dirty data (bcache)
  2014-03-10 16:34 Slow writing of dirty data (bcache) Larkin Lowrey
@ 2014-03-10 20:56 ` Sitsofe Wheeler
       [not found] ` <CALJ65zm4O8KeA1vjhupAFoqh+07qH5OaLMCbm-fShkZk6nf9MA@mail.gmail.com>
  1 sibling, 0 replies; 3+ messages in thread
From: Sitsofe Wheeler @ 2014-03-10 20:56 UTC (permalink / raw)
  To: Larkin Lowrey; +Cc: linux-bcache

On Mon, Mar 10, 2014 at 11:34:45AM -0500, Larkin Lowrey wrote:
> 
> has 160+MB of dirty data. The dirty data is being written at a rate of 1
> page per second (8 sectors). At this rate it'll take 11 hrs to finish. I
> like to keep this array spun down when inactive but the drives can't
> spin down since they're being written to once a second.
> 
> This never happened when running 3.12.7. Is there anything I can do
> about this?

I believe this is intended behaviour - as the cache approaches the
writeback_percent level of fullness the rate of writeback will increase.
It is possible to override the writeback_rate by echoing a new value
into it but it will also change itself so you may find the rate falls
again...  Perhaps that can be avoided by echoing 0 into
writeback_percent too (see
http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n265)...

-- 
Sitsofe | http://sucs.org/~sits/

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

* Re: Slow writing of dirty data (bcache)
       [not found] ` <CALJ65zm4O8KeA1vjhupAFoqh+07qH5OaLMCbm-fShkZk6nf9MA@mail.gmail.com>
@ 2014-03-10 21:14   ` Larkin Lowrey
  0 siblings, 0 replies; 3+ messages in thread
From: Larkin Lowrey @ 2014-03-10 21:14 UTC (permalink / raw)
  To: Kent Overstreet; +Cc: linux-bcache

This solved my immediate problem. Thank you very much.

Should I keep this array at 0 from now on if I want it to spin down when
idle?

--Larkin

On 3/10/2014 12:12 PM, Kent Overstreet wrote:
>
> echo 0 > writeback_percent...
>
> On Mar 10, 2014 6:07 PM, "Larkin Lowrey" <llowrey@nuclearwinter.com
> <mailto:llowrey@nuclearwinter.com>> wrote:
>
>     I'm seeing an odd behavior after updating to kernel
>     3.13.5-202.fc20.x86_64 from 3.12.7-300.fc20.x86_64.
>
>     I have a bcache device (bcache2) which backs a raid5 array (md2) that
>     has 160+MB of dirty data. The dirty data is being written at a
>     rate of 1
>     page per second (8 sectors). At this rate it'll take 11 hrs to
>     finish. I
>     like to keep this array spun down when inactive but the drives can't
>     spin down since they're being written to once a second.
>
>     # cat /sys/block/bcache2/bcache/writeback_rate
>     512
>
>     # cat /sys/block/bcache2/bcache/writeback_rate_debug
>     rate:           512/sec
>     dirty:          161M
>     target:         40.8G
>     proportional:   -35.2M
>     derivative:     0
>     change:         -35.2M/sec
>     next io:        624ms
>
>     This never happened when running 3.12.7. Is there anything I can do
>     about this?
>
>     --Larkin
>
>
>     --
>     To unsubscribe from this list: send the line "unsubscribe
>     linux-bcache" in
>     the body of a message to majordomo@vger.kernel.org
>     <mailto:majordomo@vger.kernel.org>
>     More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

end of thread, other threads:[~2014-03-10 21:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-10 16:34 Slow writing of dirty data (bcache) Larkin Lowrey
2014-03-10 20:56 ` Sitsofe Wheeler
     [not found] ` <CALJ65zm4O8KeA1vjhupAFoqh+07qH5OaLMCbm-fShkZk6nf9MA@mail.gmail.com>
2014-03-10 21:14   ` Larkin Lowrey

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).