Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How can I limit the number of Cores in multi-process programming

by Lennotoecom (Pilgrim)
on Nov 17, 2015 at 09:32 UTC ( [id://1147899]=note: print w/replies, xml ) Need Help??


in reply to How can I limit the number of Cores in multi-process programming

oi mate
look into
taskset -cp 3,4 1234
where processors are 3 and 4
and 1234 is the process id
that's a power to control smp affinity mate

also I believe this will launch your script with the correct affinity
taskset -c 1,2 script.pl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1147899]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (1)
As of 2024-04-24 14:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found