Re: Getting the memory used by a process

2010-12-08 Thread John Hasler
Mathieu Malaterre wrote: > I am trying to find out the memory used by a process (peak memory > actually). [...] I cannot find a way to > retrieve the PID of a process when execution time is really short. Run your process in the background and then do "echo $!". -- John Hasler -- To UNSUBSCRI

Re: Getting the memory used by a process

2010-12-08 Thread Mike
Mathieu Malaterre wrote: > I am trying to find out the memory used by a process (peak memory > actually). [...] I cannot find a way to > retrieve the PID of a process when execution time is really short. Use ulimit to set the allowed memory progressively lower? -- To UNSUBSCRIBE, email to deb

Re: Getting the memory used by a process

2010-12-08 Thread Sascha Silbe
Excerpts from Mathieu Malaterre's message of Wed Dec 08 11:59:32 +0100 2010: [memory usage of short-lived process] > Any other tool, other than pmap to do find that information ? I > would also like to avoid something as heady as valgrind --tool=massif. If it's only a single process you're inte

Re: Getting the memory used by a process

2010-12-08 Thread Jochen Schulz
Mathieu Malaterre: > > I am trying to find out the memory used by a process (peak memory > actually). I found the command 'pmap', howeverI cannot find a way to > retrieve the PID of a process when execution time is really short. For > instance, this does not work: > > /bin/ls && (ps ax | grep l

Re: Getting the memory used by a process

2010-12-08 Thread Juha Tuuna
On 8.12.2010 12:59, Mathieu Malaterre wrote: > Hi there, > > I am trying to find out the memory used by a process (peak memory > actually). I found the command 'pmap', howeverI cannot find a way to > retrieve the PID of a process when execution time is really short. For > instance, this does not

Getting the memory used by a process

2010-12-08 Thread Mathieu Malaterre
Hi there, I am trying to find out the memory used by a process (peak memory actually). I found the command 'pmap', howeverI cannot find a way to retrieve the PID of a process when execution time is really short. For instance, this does not work: /bin/ls && (ps ax | grep ls) Any other tool, o