I have a Windows OS, with a WSL installed. I am running some computation heavy processes in WSL, written in Fortran, submit using nohup
, which usually takes 10 hours to complete a task.
I wanted to simultaneously submit, say 30 tasks. But I want to leave at least one core (or thread) free for my windows processes (like my browser and OriginPro).
Is there a way to submit jobs in WSL that limit to only n-1 number of cores/threads?
Or even better, prioritize windows tasks so that my WSL processes gets the lowest priority (similar to nice
).
Thanks
2023-03-15: Post forwared from AskUbuntu.
The problem is, I only have one computer. Sometimes I submit a whole bunch of jobs at once in WSL and let it run non-stop for a few weeks. And during this time, I want to use Windows to do something else during the day, but it is extremely slow, and I want to prioritize those Windows apps to run faster. But at the same time, I want the PC to run at full power on those WSL jobs when I go home at night.
.exe
?