All of lore.kernel.org
 help / color / mirror / Atom feed
* cgroup memory, blkio and the lovely swapping
@ 2011-03-04  7:39 ` Daniel Poelzleithner
  0 siblings, 0 replies; 12+ messages in thread
From: Daniel Poelzleithner @ 2011-03-04  7:39 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-mm, containers

Hi,

currently when one process causes heavy swapping, the responsiveness of
the hole system suffers greatly. With the small memleak [1] test tool I
wrote, the effect can be experienced very easily, depending on the
delay the lag can become quite large. If I ensure that 10% of the RAM
stay free for free memory and cache, the system never swaps to death.
That works very well, but if accesses to the swap are very heavy, the
system still lags on all other processes, not only the swapping one.
Putting the swapping process into a blkio cgroup with little weight does
not affect the io or swap io from other processes with larger weight in
their group.

Maybe I'm mistaken, but wouldn't it be the easiest way to get fair
swapping and control to let the pagein respect the blkio.weight value
or even better add a second weight value for swapping io ?



kind regards
  Daniel


[1] https://github.com/poelzi/ulatencyd/blob/master/tests/memleak.c

^ permalink raw reply	[flat|nested] 12+ messages in thread
* cgroup memory, blkio and the lovely swapping
@ 2011-03-04  7:39 Daniel Poelzleithner
  0 siblings, 0 replies; 12+ messages in thread
From: Daniel Poelzleithner @ 2011-03-04  7:39 UTC (permalink / raw)
  To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
  Cc: linux-mm-Bw31MaZKKs3YtjvyW6yDsg,
	containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA

Hi,

currently when one process causes heavy swapping, the responsiveness of
the hole system suffers greatly. With the small memleak [1] test tool I
wrote, the effect can be experienced very easily, depending on the
delay the lag can become quite large. If I ensure that 10% of the RAM
stay free for free memory and cache, the system never swaps to death.
That works very well, but if accesses to the swap are very heavy, the
system still lags on all other processes, not only the swapping one.
Putting the swapping process into a blkio cgroup with little weight does
not affect the io or swap io from other processes with larger weight in
their group.

Maybe I'm mistaken, but wouldn't it be the easiest way to get fair
swapping and control to let the pagein respect the blkio.weight value
or even better add a second weight value for swapping io ?



kind regards
  Daniel


[1] https://github.com/poelzi/ulatencyd/blob/master/tests/memleak.c

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

end of thread, other threads:[~2011-03-04  8:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-04  7:39 cgroup memory, blkio and the lovely swapping Daniel Poelzleithner
2011-03-04  7:39 ` Daniel Poelzleithner
2011-03-04  7:54 ` KAMEZAWA Hiroyuki
2011-03-04  7:54   ` KAMEZAWA Hiroyuki
     [not found]   ` <20110304165455.d438342a.kamezawa.hiroyu-+CUm20s59erQFUHtdCDX3A@public.gmane.org>
2011-03-04  8:11     ` Daniel Poelzleithner
2011-03-04  8:11   ` Daniel Poelzleithner
2011-03-04  8:11     ` Daniel Poelzleithner
2011-03-04  8:24     ` KAMEZAWA Hiroyuki
2011-03-04  8:24       ` KAMEZAWA Hiroyuki
2011-03-04  8:24     ` KAMEZAWA Hiroyuki
2011-03-04  7:54 ` KAMEZAWA Hiroyuki
  -- strict thread matches above, loose matches on Subject: below --
2011-03-04  7:39 Daniel Poelzleithner

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.