Re: How to limit CPU usage in Python

2012-09-27 Thread Jerry Hill
On Thu, Sep 27, 2012 at 12:58 PM, Prasad, Ramit wrote: > On *nix you should just set the appropriate nice-ness and then > let the OS handle CPU scheduling. Not sure what you would do > for Windows--I assume OS X is the same as *nix for this context. On windows, you can also set the priority of a

RE: How to limit CPU usage in Python

2012-09-27 Thread Prasad, Ramit
Paul Rubin wrote: > Rolando Cañer Roblejo writes: > > Is it possible for me to put a limit in the amount of processor usage > > (% CPU) that my current python script is using? Is there any module > > useful for this task? > > One way is check your cpu usage once in a while, compare with elapsed >

Re: How to limit CPU usage in Python

2012-09-25 Thread 88888 Dihedral
DPalao於 2012年9月25日星期二UTC+8下午11時13分54秒寫道: > On Jueves septiembre 20 2012 11:12:44 Rolando Cañer Roblejo escribió: > > > Hi all, > > > > > > Is it possible for me to put a limit in the amount of processor usage (% > > > CPU) that my current python script is using? Is there any module useful > >

Re: How to limit CPU usage in Python

2012-09-25 Thread DPalao
On Jueves septiembre 20 2012 11:12:44 Rolando Cañer Roblejo escribió: > Hi all, > > Is it possible for me to put a limit in the amount of processor usage (% > CPU) that my current python script is using? Is there any module useful > for this task? I saw Resource module but I think it is not the mo

Re: How to limit CPU usage in Python

2012-09-24 Thread Tim Roberts
Paul Rubin wrote: > >Tim Roberts: reasons to want to do this might involve a shared host >where excessive cpu usage affects other users; That's what priorities are for. >...or a computer with >limited power consumption, where prolonged high cpu activity causes >thermal or other problems. OK, I

Re: How to limit CPU usage in Python

2012-09-22 Thread Dwight Hutto
Now also, just thinking theoretically with the knowledge I have, you could underclock(as opposed to overclocking, which is what gamers do), but have never seen that option in BIOS. And maybe there is an option in your OS, google search term 'limiting processes activity cpu usage': https://www.goo

Re: How to limit CPU usage in Python

2012-09-22 Thread Dwight Hutto
rites: >> Is it possible for me to put a limit in the amount of processor usage >> (% CPU) that my current python script is using? Is there any module >> useful for this task? > > One way is check your cpu usage once in a while, compare with elapsed > time, and if your % usage is above what you wan

Re: How to limit CPU usage in Python

2012-09-22 Thread Paul Rubin
Rolando Cañer Roblejo writes: > Is it possible for me to put a limit in the amount of processor usage > (% CPU) that my current python script is using? Is there any module > useful for this task? One way is check your cpu usage once in a while, compare with elapsed time, and if your % usage is a

Re: How to limit CPU usage in Python

2012-09-22 Thread Tim Roberts
Rolando Cañer Roblejo wrote: > >Is it possible for me to put a limit in the amount of processor usage (% >CPU) that my current python script is using? Why? That's an odd request. It's natural to want to reduce your priority if you want other processes handled first, but an idle CPU is a wasted

Re: How to limit CPU usage in Python

2012-09-21 Thread Ramchandra Apte
you On Saturday, 22 September 2012 05:14:15 UTC+5:30, Cameron Simpson wrote: > On 20Sep2012 12:53, Terry Reedy wrote: > > | On 9/20/2012 12:46 PM, Terry Reedy wrote: > > | > On 9/20/2012 11:12 AM, Rolando Cañer Roblejo wrote: > > | >> Is it possible for me to put a limit in the amount of proc

Re: How to limit CPU usage in Python

2012-09-21 Thread Cameron Simpson
On 20Sep2012 12:53, Terry Reedy wrote: | On 9/20/2012 12:46 PM, Terry Reedy wrote: | > On 9/20/2012 11:12 AM, Rolando Cañer Roblejo wrote: | >> Is it possible for me to put a limit in the amount of processor usage (% | >> CPU) that my current python script is using? Is there any module useful | >>

Re: How to limit CPU usage in Python

2012-09-20 Thread Christian Heimes
Am 20.09.2012 17:12, schrieb Rolando Cañer Roblejo: > Hi all, > > Is it possible for me to put a limit in the amount of processor usage (% > CPU) that my current python script is using? Is there any module useful > for this task? I saw Resource module but I think it is not the module I > am lookin

Re: How to limit CPU usage in Python

2012-09-20 Thread Jerry Hill
On Thu, Sep 20, 2012 at 11:12 AM, Rolando Cañer Roblejo wrote: > Hi all, > > Is it possible for me to put a limit in the amount of processor usage (% > CPU) that my current python script is using? Is there any module useful for > this task? I saw Resource module but I think it is not the module I

Re: How to limit CPU usage in Python

2012-09-20 Thread Terry Reedy
On 9/20/2012 12:46 PM, Terry Reedy wrote: On 9/20/2012 11:12 AM, Rolando Cañer Roblejo wrote: Hi all, Is it possible for me to put a limit in the amount of processor usage (% CPU) that my current python script is using? Is there any module useful for this task? I saw Resource module but I think

Re: How to limit CPU usage in Python

2012-09-20 Thread Terry Reedy
On 9/20/2012 11:12 AM, Rolando Cañer Roblejo wrote: Hi all, Is it possible for me to put a limit in the amount of processor usage (% CPU) that my current python script is using? Is there any module useful for this task? I saw Resource module but I think it is not the module I am looking for. Som

How to limit CPU usage in Python

2012-09-20 Thread Rolando Cañer Roblejo
Hi all, Is it possible for me to put a limit in the amount of processor usage (% CPU) that my current python script is using? Is there any module useful for this task? I saw Resource module but I think it is not the module I am looking for. Some people recommend to use nice and cpulimit unix