[Tmem-devel] tmem how to get current usage in megabytes?
Dan Magenheimer
dan.magenheimer at oracle.com
Wed Aug 18 10:27:13 PDT 2010
Hmmm.... it appears to me that your 2GB swapdisk is
already full. I think the self-ballooning IS working
but is targeting a memory size which is too small
which results in swapping. Then frontswap gets
filled up (limited to sum of sizes of your swapdisks).
Do I remember from an earlier email that you have
"noselfshrink" in your guest grub.conf? If so, then
frontswap will remain full.
I would first try increasing the size of your guest
swap disk (or, if easier, adding a second much larger
swap disk) to see if it helps.
There are also a number of "tunables" for selfballooning
and frontswap-selfshrinking that can be adjusted in
/sys/devices/system/xen_memory/xen_memory0/*
including a min_target_kb that will limit the lower
limit that selfballooning will target.
I have a script which runs inside the guest to measure
certain important memory activity. I usually launch it
in /etc/rc.local, though by the time /etc/rc.local
starts, self-ballooning has already started. See
attached script.
Hope that helps!
Dan
> -----Original Message-----
> From: Vasiliy G Tolstov [mailto:v.tolstov at selfip.ru]
> Sent: Wednesday, August 18, 2010 10:42 AM
> To: Dan Magenheimer
> Cc: tmem-devel at oss.oracle.com
> Subject: RE: [Tmem-devel] tmem how to get current usage in megabytes?
>
> В Срд, 18/08/2010 в 09:34 -0700, Dan Magenheimer пишет:
>
> Ok. I'm try to adopt patch 2.6.32 to 2.6.34 opensuse kernel (in attach)
>
> I see that i have mistake somewhere and memory not ballon up and not
> shrinking. Can You helps me?
>
> linux:~ # dmesg | grep Tran
> [ 0.569749] frontswap enabled, RAM provided by Xen Transcendent
> Memory
> [ 0.569752] cleancache enabled, RAM provided by Xen Transcendent
> Memory
>
> linux:~ # cat /sys/kernel/mm/frontswap/*
> 6306
> 0
> 472631
> 531
> 478937
>
> linux:~ # cat /sys/kernel/mm/cleancache/*
> 8829
> 67
> 5039
> 1369
>
>
> kernel loaded with tmem command line
>
> --
> Vasiliy G Tolstov <v.tolstov at selfip.ru>
> Selfip.Ru
-------------- next part --------------
A non-text attachment was scrubbed...
Name: memtracker_client.sh
Type: application/octet-stream
Size: 454 bytes
Desc: not available
Url : http://oss.oracle.com/pipermail/tmem-devel/attachments/20100818/99c8e059/attachment.obj
More information about the Tmem-devel
mailing list