Mailing List Archive

Odd swap behavior
Hi,
I'm using XEN with gentoo base systems. Both the domain-0's and the
domain-X's are gentoo.

I build my gentoo systems according to a script, and they are all
identical, save for things like hostname, IP, user content, etc.

So here's my question/problem:

I have some 10 "Regular" or conventional gentoo servers.

Then I have around 8 Xen based servers most of which have 4 domain x's
on them. These machine are all the same - dual pentium 4's, 2G ram,
intel 865g chipset, big drives.

Okay, so the regular or conventional servers use ram and swap as
expected - they allocate and deallocate swap as needed and I have
uptimes on the order of 185day avg before I do a kernel rebuild or
something.

On the xen machines, i HAVE TO reboot every 25 - 30 days because they
NEVER deallocate swap usage and eventuall use 100% of the swap and also
ram and then lock up hard if I don't reboot the machine before it gets
there.

I can't use swapoff and swapon again - here's the error I get:
server1 / # swapoff -a
swapoff: /dev/sda2: Cannot allocate memory



this machine, server1 has been up some 25 days now:
server1 / # w
15:25:41 up 25 days, 3:36, 1 user, load average: 0.16, 0.13, 0.09
USER TTY LOGIN@ IDLE JCPU PCPU WHAT
root vc/1 22Jun05 1.00s 0.04s 0.00s w

and our memory allocation is getting high:
server1 / # free -m
total used free shared buffers cached
Mem: 441 433 7 0 13 159
-/+ buffers/cache: 260 180
Swap: 964 582 382



I'm using xen-2.0.4 with kernel 2.6.10

Does anyone else have this issue, and what have you done to resolve it?

Thanks,
Jack


_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users
RE: Odd swap behavior [ In reply to ]
> I'm using xen-2.0.4 with kernel 2.6.10
>
> Does anyone else have this issue, and what have you done to
> resolve it?

I haven't seen anything like this, but that's an old version of Xen...

Ian

_______________________________________________
Xen-users mailing list
Xen-users@lists.xensource.com
http://lists.xensource.com/xen-users