[Tmem-devel] tmem how to get current usage in megabytes?
Vasiliy G Tolstov
v.tolstov at selfip.ru
Wed Aug 18 14:38:34 PDT 2010
On Wed, 2010-08-18 at 10:27 -0700, Dan Magenheimer wrote:
> 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
I think we use various versions of patches becouse i do not have
min_target_kb , but have target_kb, if i try to write small value -
memory is shrinking. But You say, that the current version of patch do
the shrinking automatik in kernel, where i can find this version of
patch?
--
Vasiliy G Tolstov <v.tolstov at selfip.ru>
Selfip.Ru
More information about the Tmem-devel
mailing list