Michael Mol writes:

> On Sat, May 12, 2012 at 8:34 PM, Alex Schuster <wo...@wonkology.org>
> wrote:
> > Dale writes:
> >
> >> Is there a way to find out what is using swap?  Maybe something
> >> related to the video is on swap which at times can be slow,
> >> certainly slower than ram.
> >>
> >> I have always wondered how to find this out myself.
> >
> > Me too, so when I had this sudden swap problem for the first time, I
> > searched for a method to do this and found a script here:
> > http://northernmost.org/blog/find-out-what-is-using-your-swap/
> >
> > There's lots of information for all processes in /proc/<pid>/. Trying
> > to read /proc/<pid>/mem (I think it was this file) in mc was not such
> > a good idea, the system froze with lots of HD activity, and after
> > half an hour I rebooted with Alt-SysRq-{K,E,I,S,U,B}.
> >
> > I improved the script a little, it allows sorting by PID, size and
> > name, and can restrict the output to specific processes or show only
> > those using more swap than specified. If interested you can download
> > it here: http://www.wonkology.org/utils/getswap
> > You need to be root to see processes you do not own.
> >
> > But of course, I forgot to run it after the sudden swap problem
> > happened lately. So I still do not know what was going on there. I'll
> > wait for the next time it happens.
> >
> >        Wonko
> >
> 
> sys-process/htop

Huh? I only see the total amount of swap being used, but no entry per
process.

        Wonko

Reply via email to