linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* Low priority writers make realtime processes thrashing
@ 2010-11-02 16:32 Evgeniy Ivanov
  2010-11-07 10:20 ` Evgeniy Ivanov
  0 siblings, 1 reply; 2+ messages in thread
From: Evgeniy Ivanov @ 2010-11-02 16:32 UTC (permalink / raw)
  To: linux-mm

Hi,

When I run few "hard-writers" I get problems with my 15 realtime
processes (do some very small writes, just 2 pages per-time): they
start thrashing. I thought it's caused by write-back and was waiting
for Greg Tellen's per-cgroup dirty page accounting patch. Before
testing it I tried to change threshold in
page-writeback.c:get_dirty_limits(), I set dirty_ratio for RT process
80% (instead of just extra dirty / 4), but it didn't help me. What
else can cause problems?
I'm linux kernel newbie and will appreciate any addvices.

-- 
Evgeniy Ivanov

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

* Re: Low priority writers make realtime processes thrashing
  2010-11-02 16:32 Low priority writers make realtime processes thrashing Evgeniy Ivanov
@ 2010-11-07 10:20 ` Evgeniy Ivanov
  0 siblings, 0 replies; 2+ messages in thread
From: Evgeniy Ivanov @ 2010-11-07 10:20 UTC (permalink / raw)
  To: linux-mm

Hi again,

I played some more time with writebacks and discovered, that problem
is really not related to the writeback.
What I found is that cache size always changes (min -> + 10mb -> +
10mb -> + 10mb -> min), and it's caused by 3 dd processes, which copy
300 mb in a loop from /dev/zero. It looks like RT process thrashing
when we come to min. In the mailing list I found a presentation, which
points to the page reclaim slow path, which I will try to check
tomorrow. Also I think to try to profile kernel, to see the difference
between normal work and work when RT processes are thrashing.
Filesystem is ext3 with default mount options. But I doubt fs code is
related, since we always write to the same files (append) and hence
it's mostly about getting and dirtying pages.
Any thoughts?

On Tue, Nov 2, 2010 at 7:32 PM, Evgeniy Ivanov <lolkaantimat@gmail.com> wrote:
> Hi,
>
> When I run few "hard-writers" I get problems with my 15 realtime
> processes (do some very small writes, just 2 pages per-time): they
> start thrashing. I thought it's caused by write-back and was waiting
> for Greg Tellen's per-cgroup dirty page accounting patch. Before
> testing it I tried to change threshold in
> page-writeback.c:get_dirty_limits(), I set dirty_ratio for RT process
> 80% (instead of just extra dirty / 4), but it didn't help me. What
> else can cause problems?
> I'm linux kernel newbie and will appreciate any addvices.
>
> --
> Evgeniy Ivanov
>



-- 
Evgeniy Ivanov

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom policy in Canada: sign http://dissolvethecrtc.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

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

end of thread, other threads:[~2010-11-07 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-11-02 16:32 Low priority writers make realtime processes thrashing Evgeniy Ivanov
2010-11-07 10:20 ` Evgeniy Ivanov

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