View Full Version : high Swap 87.85 % and memory 66.3%
cafdesigner
04-01-2006, 01:58 PM
I have noticed that swap of the server is being very high, around 87.96 % this is normal? how I make to reduce this?
PS: See file Attachment.
Mr.Loge
04-01-2006, 03:37 PM
You must log through ssh, and check exact memory usage. For example you can use this command:
ps --sort=-rss -eo pid,user,rss,vsz,cmd
In ps output you must pay attention to RSS and VSZ columns. VSZ is a current size(in kiloBytes) allocated memory by process(it can be real memmory or swap). RSS is the size of not swapped memory. Determinate current swap usage by process u can just simple subtract RSS from VSZ. But you must keep in mind that it is not so currect - VSZ can be for example 100mb, RSS - 50m, but in swap will be only 32m because process allocated but used only 82m.
Overall swap usage you can see with "free" command.
cafdesigner
04-01-2006, 04:54 PM
And as I liberate the space in swap?
Mr.Loge
04-01-2006, 05:19 PM
Yes and no. You cant reduce swap space by any command because swap is allocated by applications. For first you must find each application using much memory. This can be done by command that I post below. Next step will be killing this process, or determinating why it uses so much and reconfigure app params, or adding more memory if app require it.
p.s. In your situation it is really nothing worry about.
cafdesigner
04-01-2006, 06:27 PM
I am trying to create an archive for swap but this being given error, I see as I am making:
# mkdir /var/swap_area
# dd if=/dev/zero of=/var/swap_area/swap bs=1024 count=1024000
# ls -lh /var/swap_area
# mkswap /var/swap_area/swap
# swapon /var/swap_area/swap (erro on this command see:)
swapon: /var/swap_area/swap: Operation not permitted
What it is this error?
Mr.Loge
04-01-2006, 07:35 PM
This is because of virtual environment. Possibly some modifications needed on host or virtuozzo dont allow this at all, anyway you can contact support, maybe they can help..
Mr.Loge
04-01-2006, 07:46 PM
I'll test it on XEN, it can be done on this kind of vps.
bpotter
04-04-2006, 07:20 AM
I am finding that my swap usage is high too: 93.80 %
it's making my VPS run very slow, yet I don't think I am using high CPU programs.
cafdesigner
04-04-2006, 11:48 AM
I am finding that my swap usage is high too: 93.80 %
it's making my VPS run very slow, yet I don't think I am using high CPU programs.
The support said that is normal...
I have a 10 VPS with this question...
Ciberlex, LLC
04-04-2006, 11:24 PM
I have noticed swap also high, and I donīt know exactly what Rick does, but he has fixed it for me.
Kongyang
04-14-2006, 02:50 PM
is the screenshot from cPanel??
I'll stay away from cPanel for a while, eat too much server resource
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.