[wxPython-users] Can you limit CPU resources for the running app ?

Chris Mellon arkanes at gmail.com
Thu Jan 17 10:12:31 PST 2008


On Jan 17, 2008 12:07 PM, Christopher Barker <Chris.Barker at noaa.gov> wrote:
> Chris Mellon wrote:
> > The description and the problem are consistent with XPs behavior when
> > a process uses gobs and gobs of memory, sending XP into a terrible
> > swapping-loop.
>
> Just as a note, given some of the comments in this thread: I'm a major
> Linux fan, but honestly, the same thing happens under Linux when an app
> consumes monstrous amounts of memory -- it doesn't bring the whole
> system to a halt, but it does bring X pretty much to its knees, which is
> almost the same thing to most people these days.
>
> -Chris
>
>

It depends on exactly what happens, but yes, this sort of resource
starvation can affect linux also. In general, I find the problem to be
worse under XP because:
1) XP seems more susceptible to it - I suspect it's because of the way
it aggressively swaps non-focussed applications out
2) You don't have tools like ulimit to prevent it
3) You can't switch to a console or hard kill X, and in most cases you
can't log in from another machine to fix the problem.

I wasn't trying to contribute to the XP vs Linux punchup though, just
point out that this is consistent with known behavior in XP under
certain kinds of load, with the intention of helping the OP prevent
that kind of load.




More information about the wxpython-users mailing list