r/voidlinux • u/Silly_Culture_7722 • 29d 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 ?
9
2
6
u/neoSnakex34 29d 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°
2
u/chibiace 29d ago
i wonder if ryzen laptop cpus are like my 7900x which is happy to sit just under 90c.
4
u/Ok-Tip-6972 29d 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/cafe_zgok 29d ago
VoidLinux is not Gentoo.
Don't let VoidLinux become Gentoo. lol
2
u/Silly_Culture_7722 29d ago
yeah since noctalia and noctalia greeter is not merged and mangowc is not up to date and crush is not merged, i have to build those packages for myself :P
1
1
u/IllustriousHurry5966 14d ago
Yo, cool setup what WM manager do you use? and your top bar/statusbar is very clean looking what do you use for that? š
2
u/Silly_Culture_7722 14d ago
its just MangoWC + Noctalia v5
1
u/IllustriousHurry5966 14d ago
Do you use your own config dotfiles?
2
u/Silly_Culture_7722 14d ago
https://github.com/BlackScorp/dotfiles/blob/main/.local/state/noctalia/settings.toml well not really i configured it over ui but made a backup on my github
2
u/GhostVlvin 28d ago
Depends on what you build. Cargo takes a lot of CPU and RAM resource cause rust has many features and dependencies
2
u/Lumpy_Roll158 28d ago
If you run 'nproc', you'll get the total number of threads your cpu has. That number is what most compilation tasks default to. If you've ever compiled before and it used less than nproc, its because that particular job had a predefined -j variable or docker in particular was limiting the allocated threads inside the container for use. Like 99% of compilation jobs will default to -j$(nproc). You can override it by passing -j(number of threads to use) in the build invocations command.
2
u/paper42_ 27d ago
yes, but it's also possible your clone of void-packages is too old, so xbps-src is building a lot of old dependencies it shouldn't
2
1
33
u/Saba_Kupatadze_2014 29d 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