Page 1 of 1

Swap Space Used Up and Caused the System to Slow Down.

Posted: 16 Aug 2012, 05:18
by cttan
I am using Porteus with copytoram option and have created some swap space. I am using ZRAM as well.

I have noticed that after I have open a lot of the programs and eventually closed them after using, the swap used space remained high. The system will become unstable and taking a long time to process any click or action.

After searching through Google, I found that we need to clean the swap using

swapoff -a && swapon -a

Hope this will help you.

Re: Swap Space Used Up and Caused the System to Slow Down.

Posted: 16 Aug 2012, 05:57
by fanthom
hi cttan,

it may be worth trying to experiment with 'swappiness' kernel parameter:
link
to avoid running swapoff/swapon commands manually.

btw: slackware does not have /etc/sysctl.conf so you must create it by yourself.