Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSet vm.swappiness=0 #1520
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
pqg
Dec 16, 2015
This is not my strong suite, so sorry if this is a silly question, but what's wrong with that example memory distribution? To push much of that swapped memory into RAM, the kernel would need to evict quite a bit of its buffers and caches. It's not clear to me, just from the output of free -m, that this would be an advantageous decision. Are you sure the kernel is getting it wrong and swapping out memory pages that are more heavily accessed than the cache?
pqg
commented
Dec 16, 2015
|
This is not my strong suite, so sorry if this is a silly question, but what's wrong with that example memory distribution? To push much of that swapped memory into RAM, the kernel would need to evict quite a bit of its buffers and caches. It's not clear to me, just from the output of |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kirill9000
Dec 16, 2015
Hmm. I figured that SysVM which is used just for routing doesn't need that much cache anyway. But maybe you're right. Let's see what the developers will say about this suggestion.
kirill9000
commented
Dec 16, 2015
|
Hmm. I figured that SysVM which is used just for routing doesn't need that much cache anyway. But maybe you're right. Let's see what the developers will say about this suggestion. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Dec 16, 2015
Member
IMO using some swap is not bad, unless the system is heavily swapping.
For example every VM is running X server with a bunch of GUI services
(gnome keyring etc). If those services aren't used, there is nothing
wrong with having them in swap. Generally Linux is quite good on
deciding what should be in RAM and what can be swapped to disk.
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
|
IMO using some swap is not bad, unless the system is heavily swapping. Best Regards, |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kirill9000
commented
Dec 16, 2015
|
OK, I'll close it then. |
kirill9000
closed this
Dec 16, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adrelanos
Dec 16, 2015
Member
|
We set it in Whonix for a long time now, and it has decreased
performance complaints a lot. Good idea.
|
kirill9000 commentedDec 16, 2015
I think it should be done for SysVMs at least. With default value (60) they start swapping way too early: