| ▲ | man8alexd 12 hours ago | |||||||||||||||||||
You are right, it is not a rule of thumb, and you can't determine optimal swap size right away. But you don't need "extensive runtime analysis". Start with a small swap - a few hundred megabytes (assuming the system has GBs of RAM). Check its utilization periodically. If it is full, add a few hundred megabytes more. That's all. | ||||||||||||||||||||
| ▲ | ZoomZoomZoom 11 hours ago | parent [-] | |||||||||||||||||||
It's not like it's easy to shuffle partitions around. Swap files are a pain, so you need to reserve space at the end of the table. By the time you need to increase swap the previous partition is going to be full. Better overcommit right away and live with the feeling you're wasting space. | ||||||||||||||||||||
| ||||||||||||||||||||