r/voidlinux • u/Silly_Culture_7722 • Oct 25 '26
Is this normal while building packages?
Iam building some packages from Source, all my CPU is used. Is it possible to setup that not everything should be used for building in xbps ?
55
Upvotes
View all comments
4
u/Ok-Tip-6972 Oct 25 '26
You can limit the number of processes given to the build system in https://github.com/void-linux/void-packages/blob/e96572b8c66da1c669b6ed167260e5fd2b32b6f1/etc/defaults.conf#L65-L70. But not all packages implement it properly.
Other than that, I think you should be able to use generic tools to limit CPU usage of xbps-src, like cpulimit or cgroups. But I don't know whether they would work without intervention, since there's isolation involved. I have never tried it.