Looked at that before. psutil doesn't do children.
--mihai
On Tue, Feb 28, 2012 at 4:35 PM, Chris Rebert wrote:
> On Tue, Feb 28, 2012 at 10:33 AM, Mihai Badoiu wrote:
> > I'm trying to compute the total CPU load of an external process and it's
> &g
I'm trying to compute the total CPU load of an external process and it's
children. (so I cannot use resource.getrusage) For the load of the
process I can just grab it from /proc/X/stat. How do I get the CPU load of
the children processes? Is there an easy way to get a list of the children
proce
is there a way to pipe directly into a preallocated buffer?
(subprocessing.pipe.stdout)
thanks,
--mihai
--
http://mail.python.org/mailman/listinfo/python-list
I like 2) the most. I do have access to the child. The child is a process
started with multiprocessing.Process(function). How do I _not_ set an SID?
thanks,
--mihai
On Wed, Dec 7, 2011 at 2:50 PM, Dan Stromberg wrote:
> On 12/7/11, Mihai Badoiu wrote:
> > ok, so the code is somet
ok, so the code is something like
#process A
p = Process(...)
p.daemon = 1
p.start() # starts process B
...
If process A dies (say error, or ctrl-c), or finishes, then process B also
dies. But if process A is killed with the "kill" command, then process B
soldiers on...
Any idea on how t
In the multiprocessing module, on a Process p, by just doing p.daemon=1
before p.start(), we can make the child die when the parent exits.
However, the child does not die if the parent gets killed.
How can I make sure the child die when the parent gets killed?
thanks,
--mihai
--
http://mail.py
How do I get the resources consumed by the parent process?
getrusage() in the resource module seems to work only for self or the
children processes.
thanks,
--mihai
--
http://mail.python.org/mailman/listinfo/python-list
How do I do interactive plots in python? Say I have to plot f(x) and g(x)
and I want in the plot to be able to click on f and make it disappear. Any
python library that does this?
thanks,
--mihai
--
http://mail.python.org/mailman/listinfo/python-list
x27;s have different results for exactly the same asm code.
--mihai
On Tue, Apr 26, 2011 at 11:06 PM, David Cournapeau wrote:
> On Wed, Apr 27, 2011 at 4:14 AM, Dan Goodman
> wrote:
> > Hi,
> >
> > On 26/04/2011 15:40, Mihai Badoiu wrote:
> >> I have terrible per
Yes, running on pure python has the same issue (but overall only a factor 3
away):
i = 0
x = 1.0
while i < 1000:
x *= 0.8
#x += 0.01
i += 1
print x
On Tue, Apr 26, 2011 at 1:44 PM, Philip Semanchuk wrote:
>
> On Apr 26, 2011, at 1:34 PM, Mihai Badoiu wrote:
>
>
Already did. They suggested the python list, because the asm generated code
is really correct and the problem might be with the python running on top.
On Tue, Apr 26, 2011 at 1:04 PM, Chris Colbert wrote:
>
>
> On Tue, Apr 26, 2011 at 8:40 AM, Mihai Badoiu wrote:
>
>>
Hi,
I have terrible performance for multiplication when one number gets very
close to zero. I'm using cython by writing the following code:
cdef int i
cdef double x = 1.0
for 0 <= i < 1000:
x *= 0.8
#x += 0.01
print x
This code runs much much slower (20+ time
12 matches
Mail list logo