OpenVZ Forum


Home » Mailing lists » Devel » [RFC][PATCH] another swap controller for cgroup
Re: [RFC][PATCH] another swap controller for cgroup [message #29171 is a reply to message #28766] Tue, 08 April 2008 03:29 Go to previous messageGo to previous message
yamamoto is currently offline  yamamoto
Messages: 97
Registered: July 2007
Member
> YAMAMOTO Takashi wrote:
> > hi,
> > 
> > i tried to reproduce the large swap cache issue, but no luck.
> > can you provide a little more detailed instruction?
> > 
> This issue also happens on generic 2.6.25-rc3-mm1
> (with limitting only memory), so I think this issue is not
> related to your patch.
> I'm investigating this issue too.
> 
> Below is my environment and how to reproduce.
> 
> - System
>   full virtualized xen guest based on RHEL5.1(x86_64).
>     CPU: 2
>     memory: 2GB
>     swap: 1GB
>   A config of the running kernel(2.6.25-rc3-mm1 with your patch)
>   is attached.
> 
> - how to reproduce
>   - change swappines to 100
> 
>     echo 100 >/proc/sys/vm/swappiness
> 
>   - mount cgroup fs
> 
>     # mount -t cgroup -o memory,swap none /cgroup
> 
>   - make cgroup for test
> 
>     # mkdir /cgroup/02
>     # echo -n 64M >/cgroup/02/memory.limit_in_bytes
>     # echo -n `expr 128 \* 1024 \* 1024` >/cgroup/02/swap.limit_in_bytes
> 
>   - run test
> 
>     # echo $$ >/cgropu/02/tasks
>     # while true; do make clean; make -j2; done
> 
>   In other terminals, I run some monitoring processes, top,
>   "tail -f /var/log/messages", and displaying *.usage_in_bytes
>   every seconds.
> 
> 
> Thanks,
> Daisuke Nishimura.

what i tried was essentially same.
for me, once vm_swap_full() got true, swap cache stopped growing as expected.

	http://people.valinux.co.jp/~yamamoto/swap.png

it was taken by running
	while :;do swapon -s|tail -1;sleep 1;done > foo
in an unlimited cgroup, and then plotted by gnuplot.
	plot "foo" u 4

as my system has 1GB swap configured, the vm_swap_full() threshold is
around 500MB.

YAMAMOTO Takashi
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: extradite oracle into a VE, can we?
Next Topic: [PATCH -mm] remove node_ prefix_from ns subsystem
Goto Forum:
  


Current Time: Wed Sep 18 02:31:13 GMT 2024

Total time taken to generate the page: 0.04856 seconds