| ▲ | man8alexd 12 hours ago | |||||||
Swap is not a replacement for RAM. It is not just slow. It is very-very-very slow. Even SSDs are 10^3 slower at random access with small 4K blocks. Swap is for allocated but unused memory. If the system tries to use swap as active memory, it is going to become unresponsive very quickly - 0.1% memory excess causes a 2x degradation, 1% - 10x degradation, 10% - 100x degradation. | ||||||||
| ▲ | AtlasBarfed 8 hours ago | parent [-] | |||||||
What is allocated but unused memory? That sounds like memory that will be used in the near future and we are scheduling in an annoying disk load when it is needed You are of course highlighting the problem that virtual addressing was intended to over abstract memory resource usage, but it provides poor facilities for power users to finely prioritize memory usage. The example of this is game consoles, which didn't have this layer. Game writers had to reserve parts of ram fur specific uses. You can't do this easily in Linux afaik, because it is forcing the model upon you. | ||||||||
| ||||||||