All of lore.kernel.org
 help / color / mirror / Atom feed
* Interesting observation on Reiser4 flush delays and IO scheduler
@ 2007-08-02 20:28 Zan Lynx
  2007-08-07 17:40 ` Zan Lynx
  0 siblings, 1 reply; 2+ messages in thread
From: Zan Lynx @ 2007-08-02 20:28 UTC (permalink / raw)
  To: ReiserFS Mailing List

[-- Attachment #1: Type: text/plain, Size: 515 bytes --]

On my laptop while running heavy disk read/write loads, I have
discovered that the deadline IO scheduler gives me a much better "feel"
and much shorter (and fewer) system freezes.  This is as compared to the
CFQ scheduler.

I'm not sure why this is yet.  A rough guess is that Reiser4's atom
merging, etc, is not preserving the data CFQ needs to time slice and
prioritize disk IO.  But I don't have any evidence for this guess.  Is
it plausible?

Something to think about.
-- 
Zan Lynx <zlynx@acm.org>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: Interesting observation on Reiser4 flush delays and IO scheduler
  2007-08-02 20:28 Interesting observation on Reiser4 flush delays and IO scheduler Zan Lynx
@ 2007-08-07 17:40 ` Zan Lynx
  0 siblings, 0 replies; 2+ messages in thread
From: Zan Lynx @ 2007-08-07 17:40 UTC (permalink / raw)
  To: ReiserFS Mailing List

[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]

On Thu, 2007-08-02 at 14:28 -0600, Zan Lynx wrote:
> On my laptop while running heavy disk read/write loads, I have
> discovered that the deadline IO scheduler gives me a much better "feel"
> and much shorter (and fewer) system freezes.  This is as compared to the
> CFQ scheduler.

Something else I found today.  I'm back to the CFQ scheduler.  Deadline
was better in the heavy write-out situation, but not so good at reading.

It appears nr_requests was too low at the default of 128.  I have bumped
it to 1024.  Watching iostat's avgqu-sz field during writeout, I see it
hit over 450 now.  Pauses in things like music playback are much
reduced.

My theory is that an atom writeout stalls and blocks read requests if it
can't stuff the whole thing into the disk queue.

If that's true, it'd almost be nice to have a printk "stall warning" or
just have Reiser4 shove nr_requests up automatically until the queue can
hold a complete atom write.

I'm probably wrong with my theory, but I hope the nr_requests suggestion
can help other's with lag problems.
-- 
Zan Lynx <zlynx@acm.org>

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2007-08-07 17:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-02 20:28 Interesting observation on Reiser4 flush delays and IO scheduler Zan Lynx
2007-08-07 17:40 ` Zan Lynx

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.