os.system("taskset -p 0xffffffff %d"% os.getpid())

Is your Python script refusing to use all CPU scores on your server,
and just using 1 CPU core out of the 16 CPU cores?


http://www.chioka.in/python-doesnt-use-all-cpu-cores/


-- 

Thanks
Arshpreet Singh
http://arshpreetsingh.wordpress.com/
It’s not that I’m so smart, it’s just that I stay with problems longer.
-Albert Einstein
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/

-- 
-- 
Mailing list guidelines and other related articles: http://lug-iitd.org/Footer

--- 
You received this message because you are subscribed to the Google Groups 
"Linux User Group @ IIT Delhi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to