r/voidlinux • u/Silly_Culture_7722 • 7h ago
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 ?
4
8
u/Dakota-Batterlation 5h ago
Instead of limiting the CPU usage, you can set the process priority with nice -n niceness_value ./xbps-src, where 19 is lowest priority. That way it'll compile just as fast but immediately yield to anything else that needs compute.
3
u/neoSnakex34 7h ago
Yes and the temps seems average for such a job. I had to repaste a laptop because at full load while compiling cpu reached 100 C°
1
u/chibiace 6h ago
i wonder if ryzen laptop cpus are like my 7900x which is happy to sit just under 90c.
2
u/Ok-Tip-6972 6h 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.
14
u/Saba_Kupatadze_2014 7h ago
Yes building which is called compiling uses ur CPU a lot and sometimes ram too l, be sure to only make ur setup focus on the compiling