@wilfredh I wish multi-tasking worked well enough under high load that such an option wouldn't be necessary
Harold Aptroot@harold@mastodon.gamedev.place
And there should be a reasonable cap, say 8 or 16 or something, so you don't get 256 threads just because you happen to run it on a server (which is probably doing Other Stuff Too™, with that number of cores)...
Adam Sjøgren@asjo@illuminant.asjo.org
@harold @wilfredh It mostly does with an adequate scheduler. My Linux desktop became way more responsive under load since I've switched to sched-ext with scx_bpfland.
https://github.com/sched-ext/scx/tree/main/scheds/rust/scx_bpflandNiklas Korz@niklaskorz@rheinneckar.social
@wilfredh This is why I've started wrapping build/IDE tooling in `nice`. It works okay!
Julia Pitts@jewelpit@me.thecloudtender.com
@jewelpit Ooh, that's a neat idea!
(Hope you're doing well! Long time no speak.)
Wilfred Hughes
@wilfredh Doing as well as I can! I work on a desktop app now, and I had no idea how much I'd enjoy it. How have you been?
Julia Pitts@jewelpit@me.thecloudtender.com
@jewelpit Pretty good! I have a ~3 year old son now, it's amazing how fast he learns. I'm trying to expose him to as many different technology input types as I can :)
Wilfred Hughes
@wilfredh Wow! Congratulations! Time to dust off one of those "QBasic for Kids" books from the 80s, huh?
Julia Pitts@jewelpit@me.thecloudtender.com
@wilfredh To leave you two cores out of however many are reported by /proc/cpuinfo (on linux):
$ make -j $(expr $(grep '^processor' /proc/cpuinfo | wc -l) - 2)
Robert Thau@rst@mastodon.social
@rst @wilfredh `nproc --ignore=N` to “leave” N cores alone, if you have nproc available.
Jevin Sweval@jevinskie@mastodon.social