On 12/12/2018 15.21, Anton Aylward wrote:
On 2018-12-12 7:21 a.m., Carlos E. R. wrote:
top - 21:48:19 up 1 day, 19:46, 5 users, load average: 9.18, 11.24, 14.59
Yikes, look at those load averages. WHY? You've got plenty of free swap even if something is using memory. Well, the machine was responding very slowly that moment, it was unresponsive. Sorting by CPU load revealed:
PID USER PR NI VIRT RES SHR SWAP S %CPU %MEM TIME+ COMMAND 38 root 20 0 0 0 0 0 S 25.39 0.000 20:48.33 kswapd0 <=== It was trashing, not swapping. What nobody knows is why.
What are things waiting on
On memory to be freed by swaping out, but what was swapped out was also needed, so undo, in a death cycle.
There's another tool to look at the CPU/wait queues, but I forget what it is.
htop?
Tasks: 291 total, 4 running, 287 sleeping, 0 stopped, 0 zombie %Cpu(s): 2.4 us, 18.4 sy, 0.0 ni, 9.9 id, 68.1 wa, 0.0 hi, 1.1 si, 0.0 st KiB Mem : 3934240 total, 106132 free, 3417824 used, 410284 buff/cache KiB Swap: 6289412 total, 4956028 free, 1333384 used. 56300 avail Mem
htop this instant, when sorted by RES, displays dozens of firefox processes. I have never seen so many: PID USER PRI NI VIRT RES SHR S CPU% MEM% TIME+ Command 3259 cer 22 2 2341M 677M 27600 S 0.0 17.6 0:12.65 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3260 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3261 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3262 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.14 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3263 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:09.71 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3264 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:12.86 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3265 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.01 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3266 cer 21 1 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3267 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.44 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3271 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.07 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3272 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3274 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3275 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3276 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3277 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3323 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.01 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3453 cer 20 0 2341M 677M 27600 S 0.0 17.6 0:00.00 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3256 cer 20 0 2341M 677M 27600 S 0.0 17.6 3:08.21 /usr/lib64/firefox/firefox -contentproc -childID 1 -isForBrowser -intPrefs 42:0|44:0| -boolPrefs 183:1|301:0|311:0| -stringPrefs 287:36;a2d293ec-4210-449d-8816-ae6626534d3f| 3205 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:00.00 /usr/lib64/firefox/firefox 3206 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:00.21 /usr/lib64/firefox/firefox 3207 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:26.40 /usr/lib64/firefox/firefox 3208 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:08.23 /usr/lib64/firefox/firefox 3209 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:00.04 /usr/lib64/firefox/firefox 3210 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:07.09 /usr/lib64/firefox/firefox 3211 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:09.82 /usr/lib64/firefox/firefox 3212 cer 20 0 9718M 432M 60768 S 0.0 11.3 0:10.50 /usr/lib64/firefox/firefox ... and there are more. "ps afxu | grep firefox" does not display them. They must be threads, not processes. I suppose they share the RES memory chunk. -- Cheers / Saludos, Carlos E. R. (from 42.3 x86_64 "Malachite" at Telcontar)