1 |
Michael Mol writes: |
2 |
|
3 |
> On Sat, May 12, 2012 at 8:34 PM, Alex Schuster <wonko@×××××××××.org> |
4 |
> wrote: |
5 |
> > Dale writes: |
6 |
> > |
7 |
> >> Is there a way to find out what is using swap? Maybe something |
8 |
> >> related to the video is on swap which at times can be slow, |
9 |
> >> certainly slower than ram. |
10 |
> >> |
11 |
> >> I have always wondered how to find this out myself. |
12 |
> > |
13 |
> > Me too, so when I had this sudden swap problem for the first time, I |
14 |
> > searched for a method to do this and found a script here: |
15 |
> > http://northernmost.org/blog/find-out-what-is-using-your-swap/ |
16 |
> > |
17 |
> > There's lots of information for all processes in /proc/<pid>/. Trying |
18 |
> > to read /proc/<pid>/mem (I think it was this file) in mc was not such |
19 |
> > a good idea, the system froze with lots of HD activity, and after |
20 |
> > half an hour I rebooted with Alt-SysRq-{K,E,I,S,U,B}. |
21 |
> > |
22 |
> > I improved the script a little, it allows sorting by PID, size and |
23 |
> > name, and can restrict the output to specific processes or show only |
24 |
> > those using more swap than specified. If interested you can download |
25 |
> > it here: http://www.wonkology.org/utils/getswap |
26 |
> > You need to be root to see processes you do not own. |
27 |
> > |
28 |
> > But of course, I forgot to run it after the sudden swap problem |
29 |
> > happened lately. So I still do not know what was going on there. I'll |
30 |
> > wait for the next time it happens. |
31 |
> > |
32 |
> > Wonko |
33 |
> > |
34 |
> |
35 |
> sys-process/htop |
36 |
|
37 |
Huh? I only see the total amount of swap being used, but no entry per |
38 |
process. |
39 |
|
40 |
Wonko |