Gentoo Archives: gentoo-user

From: Walter Dnes <waltdnes@××××××××.org>
To: Gentoo Users List <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] Any utility to forcibly freeze or swap out a specific pid?
Date: Tue, 03 Jul 2018 04:32:25
Message-Id: 20180703043212.GA3423@waltdnes.org
In Reply to: [gentoo-user] Any utility to forcibly freeze or swap out a specific pid? by Walter Dnes
1 I just noticed something "interesting". I don't know if it's strictly
2 gnumeric under ICEWM, or if it's more generic. Open several gnumeric
3 spreadsheets. Do not minimize, but open one over top of the other. Run
4 "top" in an xterm in that same workspace...
5
6 ==============================================================================
7 top - 00:19:02 up 1:53, 11 users, load average: 2.45, 1.52, 0.85
8 Tasks: 138 total, 5 running, 133 sleeping, 0 stopped, 0 zombie
9 %Cpu(s): 89.0 us, 2.3 sy, 0.0 ni, 8.7 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
10 MiB Mem : 3027.5 total, 1799.7 free, 616.7 used, 611.1 buff/cache
11 MiB Swap: 8971.0 total, 8971.0 free, 0.0 used. 2090.4 avail Mem
12
13 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14 2832 waltdnes 20 0 277520 177068 40224 S 27.9 5.7 14:43.80 gnumeric
15 3023 waltdnes 20 0 275568 177184 38972 R 24.6 5.7 3:56.60 gnumeric
16 2857 waltdnes 20 0 142636 99552 25156 R 21.9 3.2 10:17.00 gnumeric
17 3067 waltdnes 20 0 179712 83760 37612 R 17.6 2.7 2:41.60 gnumeric
18 2997 waltdnes 20 0 85600 42292 24940 S 16.6 1.4 2:59.22 gnumeric
19 3009 waltdnes 20 0 73508 39312 24936 S 16.6 1.3 2:45.92 gnumeric
20 3001 waltdnes 20 0 82096 38696 24940 S 16.3 1.2 2:53.78 gnumeric
21 3005 waltdnes 20 0 81976 38392 24628 S 16.3 1.2 2:48.61 gnumeric
22 2879 waltdnes 20 0 92976 45972 26060 S 12.6 1.5 5:23.20 gnumeric
23 2660 root 20 0 323680 95236 82776 S 12.3 3.1 3:26.55 X
24 ==============================================================================
25
26 ...but switch over to another workspace, and cpu usage plummets...
27
28 ==============================================================================
29 top - 00:23:27 up 1:57, 11 users, load average: 0.11, 0.84, 0.75
30 Tasks: 138 total, 1 running, 137 sleeping, 0 stopped, 0 zombie
31 %Cpu(s): 0.2 us, 0.0 sy, 0.0 ni, 99.8 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
32 MiB Mem : 3027.5 total, 1920.0 free, 616.4 used, 491.1 buff/cache
33 MiB Swap: 8971.0 total, 8971.0 free, 0.0 used. 2210.8 avail Mem
34
35 PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
36 1 root 20 0 2392 1488 1408 S 0.0 0.0 0:00.76 init
37 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd
38 4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0+
39 6 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 mm_percpu+
40 7 root 20 0 0 0 0 S 0.0 0.0 0:00.01 ksoftirqd+
41 8 root 20 0 0 0 0 S 0.0 0.0 0:00.55 rcu_sched
42 9 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh
43 10 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration+
44 11 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
45 ==============================================================================
46
47 Actually, minimizing all the spreadsheets and remaining in the same
48 workspace similarly reduces cpu usage. Why would gnumeric spreadsheets be
49 using cpu just sitting there, visible or behind another program?
50
51 --
52 Walter Dnes <waltdnes@××××××××.org>
53 I don't run "desktop environments"; I run useful applications

Replies

Subject Author
[gentoo-user] Re: Any utility to forcibly freeze or swap out a specific pid? Ian Zimmerman <itz@××××××××××××.org>