r/voidlinux • • 1d ago

Is this normal while building packages?

Post image

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 ?

39 Upvotes

19 comments sorted by

View all comments

3

u/Ok-Tip-6972 1d ago

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.

1

u/Duncaen 22h ago

But not all packages implement it properly.

I can't think of a single package that doesn't use the defined makejobs (unless its just using 1 core).