1 |
> Is there a way to find out what is using swap? Maybe something related |
2 |
> to the video is on swap which at times can be slow, certainly slower |
3 |
> than ram. |
4 |
> |
5 |
> I have always wondered how to find this out myself. |
6 |
|
7 |
Well the OS uses swap, i dont know if its possible to then tie that |
8 |
directly to a process. You can find out if swap is being at all using |
9 |
with vmstat; so= swap out, si=swap in. |
10 |
|
11 |
For example, watch the following when you view the video |
12 |
|
13 |
adam@proxy ~ $ vmstat -S M 3 |
14 |
procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu---- |
15 |
r b swpd free buff cache si so bi bo in cs us sy id wa |
16 |
0 0 0 1290 379 6617 0 0 26 56 108 107 2 3 93 2 |
17 |
0 0 0 1290 379 6617 0 0 1 15 87 91 0 0 100 0 |
18 |
0 0 0 1290 379 6617 0 0 0 0 59 54 0 0 100 0 |
19 |
0 0 0 1290 379 6617 0 0 0 7 72 73 0 0 100 0 |