[IPython-dev] Memory consumption of running notebook

Max Linke max_linke at gmx.de
Thu Jul 10 08:19:24 EDT 2014


On Thu, 2014-07-10 at 10:42 +0100, Ingolf Becker wrote:
> Which OS are you using? On unix based systems, the one liner
> `!cat /proc/{os.getpid()}/status | grep VmSize`

Yeah that works and helps already thanks.

best Max

> will give you the memory occupied by the current ipython process. You can
> of course run that command in parallel on all nodes. If you want more
> functionality, or you are on Windows, I suppose you could do something like
> [1].
> 
> I hope this helps!
> 
> [1]
> https://stackoverflow.com/questions/938733/total-memory-used-by-python-process
> 
> 
> 
> 
> On 10 July 2014 10:19, Max Linke <max_linke at gmx.de> wrote:
> 
> > Hi
> >
> > I often have 10 and more notebooks running at the same time. It can
> > happen that one or two of them contain large arrays that fill up my memory
> > and it is not obvious from the cell-content which notebook consumes the
> > most memory.
> > Is there a way to see how much memory each notebook is roughly using?
> > If I understand the notebooks correct a new python process is started
> > for each running notebook, then I would already be happy with a way to
> > see which process is running which notebook.
> >
> > best Max
> >
> >
> > _______________________________________________
> > IPython-dev mailing list
> > IPython-dev at scipy.org
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> >
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev





More information about the IPython-dev mailing list