1 |
If you run the command... |
2 |
|
3 |
ps axo %cpu,%mem,pid,cmd | grep -v "^.CPU" | sort -nr | head -n 10 |
4 |
|
5 |
...you'll get a list of processes sorted by cpu and memory consumption. |
6 |
In my case, I get... |
7 |
|
8 |
[d531][waltdnes][~] ps axo %cpu,%mem,pid,cmd | grep -v "^.CPU" | sort -nr | head -n 10 |
9 |
43.6 12.4 13976 /home/waltdnes/pm/palemoon/palemoon -new-instance -p slashdot |
10 |
1.0 4.2 2650 /usr/bin/X :0 -nosilk -config xorg.conf -auth /home/waltdnes/.serverauth.2629 |
11 |
0.9 6.8 5278 /home/waltdnes/pm/palemoon/palemoon -new-instance -p palemoon |
12 |
0.8 7.0 7127 /home/waltdnes/pm/palemoon/palemoon -new-instance -p dslr |
13 |
0.4 5.4 13912 /home/waltdnes/pm/palemoon/palemoon -new-instance -p graphs |
14 |
0.1 30.2 4981 /usr/bin/gnumeric worldtemps/netair/danomnick1000.gnumeric |
15 |
0.1 4.8 5383 /home/waltdnes/pm/palemoon/palemoon -new-instance -p puppy |
16 |
0.0 5.2 6765 /usr/bin/gnumeric /home/waltdnes/worldtemps/solarflux/solarflux.gnumeric |
17 |
0.0 2.5 5106 /usr/bin/gnumeric worldtemps/netair/monuah.gnumeric |
18 |
0.0 2.5 5075 /usr/bin/gnumeric worldtemps/netair/monrss4.gnumeric |
19 |
|
20 |
There are some programs that I would much rather keep open, versus |
21 |
shutting down and restarting all over again. But keeping them all open |
22 |
uses resources, especially on a 10-year-old CORE2 with 3 gigabytes of |
23 |
RAM (The thing refuses to die). Is there a way to forcibly swap out or |
24 |
freeze a specific PID, until I need to get back to it again? |
25 |
|
26 |
-- |
27 |
Walter Dnes <waltdnes@××××××××.org> |
28 |
I don't run "desktop environments"; I run useful applications |