Closed Googulator closed 6 months ago
Hmm, codewise looks good, but generally I think swapping during build is bad for performance. I usually find that reducing number of threads to avoid swapping is more helpful. Or did you observe different behaviour in live-bootstrap?
In the case of live-bootstrap, when going from 4 to 8 threads, the slight performance hit from occasionally hitting swap in GCC13 (the only place where 8 threads would otherwise go OOM) is far outweighed by the speed gain in Guile, especially on SSDs or other Flash storage. Haven't tested on an HDD though, results might be different there.
Also, Linux 4.9.10 is AFAIK already new enough to use swap in conjunction with disk caching even when there's no direct memory pressure, to increase performance.
This can help alleviate memory pressure when bootstrapping with high core counts.