Filter löschen
Filter löschen

How do I force matlab to run on a certain processor other than the first one under Linux?

2 Ansichten (letzte 30 Tage)
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!

Antworten (1)

Jason Ross
Jason Ross am 4 Okt. 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.

Kategorien

Mehr zu Startup and Shutdown finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by