LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Swap partition always full (https://www.linuxquestions.org/questions/linux-hardware-18/swap-partition-always-full-626502/)

fmpfmp 03-07-2008 06:00 PM

Swap partition always full
 
Hi people,

I administer a Debian server which reports swap always full. It's funny because free output doesn't seem show me that:

Code:

            total      used      free    shared    buffers    cached
Mem:          629        613        16          0        36        332
-/+ buffers/cache:        244        385
Swap:          337        337          0

Anyone can to give me a tip?


Thank you.

Electro 03-07-2008 06:10 PM

Upgrade the RAM to at least 1 GB. If it starts using swap, optimize the services and use sysctl to optimize vm of the kernel.

fmpfmp 03-07-2008 06:21 PM

Thank you for answser. Currently it runs Postfix mail server, Apache web server and share Internet to around 100 computers. I am thinking of separating this server just for email, and keep other one for the web server and sharing using Debian 4 (today runs Debian 3, 2.4.26 kernel). The web server hangs while a big email account is accessed...

lazlow 03-08-2008 12:05 AM

Despite what many say, the old rule of twice as much swap as ram is still a good idea. If you want speed, then adding more ram will help (if any swap is being used). Even after you add the extra ram I would up the swap too.


All times are GMT -5. The time now is 06:33 AM.