Sometime the swap memory hit 100% and the running script (PHP) is considerably slower. I'd like to ask in which scenario it is okay to run the command swapoff -a ; swapon -a
to clear up the swap memory so that the running script is not affected, and in which scenario is it affected?
Asked
Active
Viewed 409 times
0

Paulo Boaventura
- 1,365
- 1
- 9
- 29

aye
- 301
- 2
- 16
-
6Never. Just don't do that. – Mat Aug 10 '13 at 07:10
-
`swapon/swapoff` = root access so don't do that – Aug 10 '13 at 07:12
-
@RC why you mentioned about the root access? I'm running the application in my personal computer so there is no security concern. – aye Aug 10 '13 at 07:18