How do I force matlab to run on a certain processor other than the first one under Linux?
2 views (last 30 days)
Show older comments
Aloha Folks, sometimes I have Matlab running doing some crunch work and its taking over resources from other programs, making it sometimes hard to do any sort of work.
I am wondering if there is a way to assign a worker other than the primary to be used for matlab. This is not a parallel question, though I am aware that I may need parallel/distributive toolboxes.I am using Linux, so perhaps a combination with PBS or similar might be an option?
FYI, under windows, you can use Affinity in the task manager.
I am very thankful for anyone who could help me with this,
Thank you!
0 Comments
Answers (1)
Jason Ross
on 4 Oct 2012
Take a look at the "taskset" command.
I will say that most modern OS's do a pretty decent job of balancing processes -- so the slowdown might be coming from the exhaustion of another resource, like memory or disk I/O -- especially if you are using enough memory to be using a swap file heavily.
0 Comments
See Also
Categories
Find more on Startup and Shutdown in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!