Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] I want to play movies without hangs
Date: Thu, 10 May 2012 07:55:33
Message-Id: 4FAB73F9.4000201@gmail.com
In Reply to: Re: [gentoo-user] I want to play movies without hangs by Adam Carter
1 Adam Carter wrote:
2 >> Is there a way to find out what is using swap? Maybe something related
3 >> to the video is on swap which at times can be slow, certainly slower
4 >> than ram.
5 >>
6 >> I have always wondered how to find this out myself.
7 >
8 > Well the OS uses swap, i dont know if its possible to then tie that
9 > directly to a process. You can find out if swap is being at all using
10 > with vmstat; so= swap out, si=swap in.
11 >
12 > For example, watch the following when you view the video
13 >
14 > adam@proxy ~ $ vmstat -S M 3
15 > procs -----------memory---------- ---swap-- -----io---- -system-- ----cpu----
16 > r b swpd free buff cache si so bi bo in cs us sy id wa
17 > 0 0 0 1290 379 6617 0 0 26 56 108 107 2 3 93 2
18 > 0 0 0 1290 379 6617 0 0 1 15 87 91 0 0 100 0
19 > 0 0 0 1290 379 6617 0 0 0 0 59 54 0 0 100 0
20 > 0 0 0 1290 379 6617 0 0 0 7 72 73 0 0 100 0
21 >
22 >
23
24
25 I'm not the OP but posted a two part post that didn't quite come out
26 like I expected. One for the OP to try to find out what was using swap,
27 just in case it mattered. Two to ask how that is done in case he didn't
28 know and for me since I don't know either. lol
29
30 I was hoping for a command that says program foo is using X amount of
31 swap but I guess not.
32
33 Interesting that there isn't a real good tool for this.
34
35 Dale
36
37 :-) :-)
38
39 --
40 I am only responsible for what I said ... Not for what you understood or
41 how you interpreted my words!
42
43 Miss the compile output? Hint:
44 EMERGE_DEFAULT_OPTS="--quiet-build=n"