Is -j$(nproc) minus one possible?
So I use a Windows vm with a passed through GPU a lot as it's the best way for me to game on linux. In my /etc/makepkg.conf file I have the MAKEFLAGS value to set -j$(nproc) and the reason for this is that I have it setup so that if I'm not running the VM software packages from the AUR compile with all my available threads but when I run a vm I use dynamic isolation to split my CPU threads.
Anyways does anyone know if it's possible to set up a nproc minus one setup? I would like to have 1 guest thread left over so I can do stuff like watch youtube while software compiles without stuttering. if so how would I go about making that happen?
Thanks.
About this post
- Posted
- Archived
- Score
- 3 · 100% up
- Kind
- Text
- ID
- pxfoex
6 comments
Yes, e.g.:
Thanks. I'll try this.
That is precisely the right answer.
So I tried to add this to my /etc/makepkg.conf file and it didn't seem to work.
Here's what I put.
MAKEFLAGS="-j$(( $(nproc) - 1 ))"
I'm not sure if this is correct or not.
Read about CPU pinning
I have