Q about swap size

Roberto Ragusa mail at robertoragusa.it
Sun Jul 11 16:23:56 UTC 2010


Robert G. (Doc) Savage wrote:
>     top - 10:43:15 up 2 days, 6 min,  5 users,  load average: 8.62, 6.84, 6.26
>     Tasks: 244 total,   7 running, 237 sleeping,   0 stopped,   0 zombie
>     Cpu(s): 60.7%us, 23.5%sy,  9.2%ni,  0.0%id,  0.0%wa,  5.4%hi,  1.3%si,  0.0%st
>     Mem:    509800k total,   502624k used,     7176k free,    16280k buffers
>     Swap:  1048568k total,   317372k used,   731196k free,   101944k cached
> 
> This indicates only about 30% of my 1GB swap is being used. Would
> increasing that to 2GB have any affect on the load average performance?

I think not.
The machine is probably too memory starved to give you reasonable performance.
Try running
  vmstat 1
for a while and look the si and so (swapin, swapout) columns.
If there is constant swapping activity, the load you are putting on the
machine is too much for the available resources.

Having 1 or 2 GiB of swap will not change anything, as you are
actually using about 300MiB.

Hmmm.....
now that I re-read your top output, the machine appears to have a
busy CPU (0% waiting and around 100% of usage). Maybe it is not
the RAM to slow it down (the kernel manages to have 100MiB used for cache,
so it is not critically desperate for RAM). What is this machine running?

-- 
   Roberto Ragusa    mail at robertoragusa.it


More information about the users mailing list