Hi
I have enough RAM and systems connected my network are not much. I am trying to remove the swap memory. I tried doing by swapoff -a but after sometime swap memory is on. How do I permanently disable swap memory?
Thanks
Badri M
Hi
I have enough RAM and systems connected my network are not much. I am trying to remove the swap memory. I tried doing by swapoff -a but after sometime swap memory is on. How do I permanently disable swap memory?
Thanks
Badri M
Are you seeing a lot of swapping?
Not wise to do this outside of a VM, and even in a VM I'd argue that's silly.
Rob Sandling, BS:SWE, MCP
NexgenAppliances.com
Phone: 866-794-8879 x201
Email: support@nexgenappliances.com
No, its zero.
I got it. I leave it like that.
I tried to improve latency. For that I tried few settings. One setting gave me huge improvement. I disabled Hyper threading in Bios setting and gave me good improvement.
unused cached files from memory can be moved to swap by Linux, and it's faster to get it from swap rather than the filesystem.
But if you really want to do almost no swap in a hackish way, (which I do for a specific reason.) then run a cron say, every 6 hours or less to be aggressive:
/sbin/swapoff -a && /sbin/swapon -a
This will reset swap to zero if any.
Just let it be. This isn't 2003 anymore. Swap use is a normal and expected part of unix-like kernels now, and they do it to increase performance in certain situations. Disabling swap is likely to make things worse rather than better.
Five time Microsoft ASP.Net MVP managing a Lenovo RD330 / E5-2420 / 16GB with Untangle 16.5 to protect a 1Gbps fiber link for ~450 residential college students and associated staff and faculty
Ahem... my 32GB msata is on it's last legs. hardisk sentinel and smartctl is showing pre-fail or old age all over the place and writes of 9TB in it's lifetime.
a few weak cells are in swap, and therefore hangs horribly if swap is touched.
Need to replace it but in the mean time to mitigate this, did the swapon/swapoff thingy via cron. Also put /var/log to mount in zram, trick i pickup from my rapsberry pi tweaks. Thus writing to backup /var/log in msata disk is done once a day.
The other big writes in untangle is postgres, but nothing i can do about that.