Indicações de uso de RAM pelo Conky e pelo htop, em 2019 |
- Este registro é um trecho retirado de “Ferramentas mudam cálculo de Memória RAM”, por ser extenso demais.
Conky e htop usavam o mesmo cálculo de uso de Memória RAM, entre 2017 (pelo menos) e 2020 — com pequenas diferenças no openSUSE Leap, em certa época:
Nearly:
Mem used = MemTotal - [MemFree + Active(file) + Inactive(file) + SReclaimable]
from:
$ cat /proc/meminfo | grep 'Mem\|Active\|Inactive\|Reclaimable'
MemTotal: 16222988 kB
MemFree: 10472736 kB
MemAvailable: 12730508 kB
Active: 3229096 kB
Inactive: 1359400 kB
Active(anon): 2327472 kB
Inactive(anon): 0 kB
Active(file): 901624 kB
Inactive(file): 1359400 kB
KReclaimable: 337196 kB
SReclaimable: 337196 kB
Foto (acima) - Uma experiência simples, em Janeiro 2019, mostrava essa paridade de cálculo entre o Conky e o htop — bem como a diferença de cálculo do free e do top (do pacote procps):
RAM Used Free Buffer Cache Buff/Cache Available (used Swap)
Conky 2.4 GiB 828 MiB 101 MiB 794 MiB 1.43 GiB 278 MiB
htop 2.4 GiB 278 MiB
top 2150 MiB 830 MiB 944 MiB 1243 MiB 278 MiB
free 2.1 GiB 829 MiB 943 MiB 1.2 GiB 277 MiB
Mas eu já tinha percebido isso desde 2017 (pelo menos), quando uma série de verificações me mostrou uma convergência quase perfeita entre as medidas do Conky e as do htop — com pequenas diferenças, talvez porque, na época, não lembrei de igualar o ciclo do htop (2 segundos) ao ciclo do Conky (1 segundo).
Ao revisar agora aqueles registros de 2017, vejo que no openSUSE Leap havia uma estranha divergência entre o Conky e o htop:
Date Time Distro Conky htop A-B A/B
2017 Jun. 14 16:11:06 Debian testing 651 636 + 15 + 2.36%
2017 Jun. 14 17:30:52 Debian testing 547 547
2017 Jun. 14 17:34:07 Debian testing 489 487 + 2 + 0.41%
2017 Jun. 16 02:07:16 Debian testing 441 441
2017 Jun. 16 02:07:20 Debian testing 488 486 + 2 + 0.41%
2017 Jun. 16 02:08:08 Debian testing 450 450
2017 Jun. 16 04:41:51 Debian testing 448 448
2017 Jun. 14 17:23:28 Kubuntu 16.04 538 538
2017 Jun. 14 17:26:26 Kubuntu 16.04 479 479
2017 Jun. 14 17:28:21 Kubuntu 16.04 461 461
2017 Jun. 15 14:20:28 Kubuntu 16.04 457 456 + 1 + 0.22%
2017 Jun. 15 14:24:49 Kubuntu 16.04 459 459
2017 Jun. 15 14:26:00 Kubuntu 16.04 435 435
2017 Jun. 16 02:21:56 Kubuntu 16.04 431 431
2017 Jun. 17 16:22:41 Kubuntu 16.04 444 444
2017 Jun. 14 16:22:25 KDE Neon (16.04) 482 482
2017 Jun. 14 17:37:32 KDE Neon (16.04) 487 478 + 9 + 1.88%
2017 Jun. 14 17:40:34 KDE Neon (16.04) 428 420 + 8 + 1.90%
2017 Jun. 16 01:46:54 KDE Neon (16.04) 431 432 - 1 - 0.23%
2017 Jun. 16 01:46:56 KDE Neon (16.04) 436 436
2017 Jun. 16 01:47:47 KDE Neon (16.04) 430 430
2017 Jun. 16 03:00:58 KDE Neon (16.04) 433 433
2017 Jun. 16 05:30:43 KDE Neon (16.04) 420 420
2017 Jun. 14 13:44:11 Mint 18 KDE (16.04) 638 638
2017 Jun. 14 16:53:41 Mint 18 KDE (16.04) 558 558
2017 Jun. 14 17:09:59 Mint 18 KDE (16.04) 510 510
------------------------------------------------------------------------------------
Date Time Distro Conky htop A-B A/B
2017 Jun. 14 13:19:36 Arch 556 552 + 4 + 0.72%
2017 Jun. 14 16:58:18 Arch 549 546 + 3 + 0.55%
2017 Jun. 14 17:00:08 Arch 467 466 + 1 + 0.21%
2017 Jun. 14 18:23:08 Arch 471 474 - 3 - 0.63%
2017 Jun. 15 14:44:56 Arch 475 478 - 3 - 0.63%
2017 Jun. 15 14:46:13 Arch 458 458
2017 Jun. 15 15:01:01 Arch 477 475 + 2 + 0.42%
2017 Jun. 15 15:02:18 Arch 457 457
2017 Jun. 15 19:49:33 Arch 465 465
2017 Jun. 15 19:49:42 Arch 490 490
2017 Jun. 15 19:50:19 Arch 449 449
2017 Jun. 15 19:50:49 Arch 451 451
2017 Jun. 16 05:36:30 Arch 482 482
2017 Jun. 16 05:37:12 Arch 466 466
2017 Jun. 14 18:20:05 Arch (2) 438 439 - 1 - 0.23%
2017 Jun. 14 18:21:36 Arch (2) 436 432 + 4 + 0.93%
2017 Jun. 15 14:47:53 Arch (2) 445 445
2017 Jun. 15 14:49:11 Arch (2) 418 418
2017 Jun. 15 14:51:19 Arch (2) 419 419
2017 Jun. 15 14:52:42 Arch (2) 394 394
2017 Jun. 15 14:56:10 Arch (2) 420 417 + 3 + 0.72%
2017 Jun. 15 14:57:31 Arch (2) 405 405
------------------------------------------------------------------------------------
Date Time Distro Conky htop A-B A/B
2017 Jun. 14 16:32:58 Mageia 6 (sta2) 664 664
2017 Jun. 14 17:43:23 Mageia 6 (sta2) 670 666 + 4 + 0.60%
2017 Jun. 14 17:47:01 Mageia 6 (sta2) 618 618
2017 Jun. 15 22:21:21 Mageia 6 (sta2) 605 584 + 21 + 3.60%
2017 Jun. 15 22:22:04 Mageia 6 (sta2) 596 596
2017 Jun. 15 22:22:34 Mageia 6 (sta2) 599 599
2017 Jun. 15 22:47:51 Mageia 6 (sta2) 583 582 + 1 + 0.17%
2017 Jun. 15 22:48:32 Mageia 6 (sta2) 554 554
2017 Jun. 15 23:19:17 Mageia 6 (sta2) 580 580
2017 Jun. 15 23:20:02 Mageia 6 (sta2) 554 554
2017 Jun. 15 23:20:32 Mageia 6 (sta2) 555 554 + 1 + 0.18%
2017 Jun. 15 23:40:21 Mageia 6 (sta2) 576 574 + 2 + 0.35%
2017 Jun. 15 23:41:10 Mageia 6 (sta2) 550 550
2017 Jun. 16 01:18:54 Mageia 6 (sta2) 582 581 + 1 + 0.17%
2017 Jun. 16 01:19:39 Mageia 6 (sta2) 556 556
2017 Jun. 16 04:56:03 Mageia 6 (sta2) 579 579
2017 Jun. 16 04:56:38 Mageia 6 (sta2) 561 561
------------------------------------------------------------------------------------
Date Time Distro Conky htop A-B A/B
2017 Jun. 14 15:29:53 openSUSE Leap 42.2 590 480 + 110 + 22.92%
2017 Jun. 14 15:33:25 openSUSE Leap 42.2 577 475 + 102 + 21.47%
2017 Jun. 14 17:14:40 openSUSE Leap 42.2 594 481 + 113 + 23.49%
2017 Jun. 14 17:17:36 openSUSE Leap 42.2 528 437 + 91 + 20.82%
2017 Jun. 15 16:32:21 openSUSE Leap 42.2 517 413 + 104 + 25.18%
2017 Jun. 15 16:32:25 openSUSE Leap 42.2 549 448 + 101 + 22.54%
2017 Jun. 15 16:33:43 openSUSE Leap 42.2 528 470 + 58 + 12.34%
2017 Jun. 15 16:34:42 openSUSE Leap 42.2 622 575 + 47 + 8.17%
2017 Jun. 15 16:39:00 openSUSE Leap 42.2 533 449 + 84 + 18.71%
2017 Jun. 15 16:42:32 openSUSE Leap 42.2 537 437 + 100 + 22.88%
2017 Jun. 15 17:13:52 openSUSE Leap 42.2 594 565 + 29 + 5.13%
2017 Jun. 15 17:59:12 openSUSE Leap 42.2 529 434 + 95 + 21.89%
2017 Jun. 15 18:00:47 openSUSE Leap 42.2 516 457 + 59 + 12.91%
2017 Jun. 15 18:01:47 openSUSE Leap 42.2 516 457 + 59 + 12.91%
2017 Jun. 16 05:10:25 openSUSE Leap 42.2 536 432 + 104 + 24.07%
2017 Jun. 16 05:10:53 openSUSE Leap 42.2 527 455 + 72 + 15.82%
openSUSE Average: + 83 + 18.20%
------------------------------------------------------------------------------------
Essa estranheza do Conky no openSUSE Leap ficou mais evidente ao levantar o histórico de atualizações das várias distros, de 2016 até o início de 2020, — e constatar que o Leap, sozinho, teve mais versões e revisões do Conky, do que a soma de todas as outras distros, incluindo as rolling-release. — Muitas vezes, o Conky era o único pacote a ser atualizado no Leap:
Oct 2016 — Jan 2020
---------------------------------------------------------------
Debian testing
2016 Oct 1 00:09:04 installed conky-all 1.9.0-6
2016 Oct 18 00:39:38 upgraded conky-all 1.10.5-1
2016 Dec 20 10:47:58 upgraded conky-all 1.10.6-1
2017 Sep 21 21:37:00 upgraded conky-all 1.10.6-1.1
2018 Mar 6 07:24:12 upgraded conky-all 1.10.8-1
2018 May 16 15:36:34 upgraded conky-all 1.10.8-1+b1
---------------------------------------------------------------
KDE Neon
2017-03-22 21:28:45 installed conky-all 1.10.1-3
---------------------------------------------------------------
Kubuntu 16.04
2016-04-27 18:25:23 installed conky-all 1.10.1-3
2018-11-02 (still) conky-all 1.10.1-3
---------------------------------------------------------------
Mint 18 KDE
2016 Aug 20 11:55:09 installed conky-all 1.10.1-3
---------------------------------------------------------------
Arch (Revenge)
2017-06-03 18:41 installed conky 1.10.6-2
2017-11-24 00:47:59 upgraded conky-1.10.6-3
2018-01-22 07:36:58 upgraded conky-1.10.7-1
2018-01-24 12:47:23 upgraded conky-1.10.7-2
2018-02-15 12:02:50 upgraded conky-1.10.8-1
2018-03-12 17:37:56 upgraded conky-1.10.8-2
2018-12-08 12:50:10 upgraded conky-1.11.0-1
2018-12-23 00:11:19 upgraded conky-1.11.1-1
2019-01-08 22:47:57 upgraded conky-1.11.2-1
2019-03-02 06:49:07 upgraded conky-1.11.3-1
2019-06-29 04:53:28 upgraded conky-1.11.4-1
2019-08-15 10:35:40 upgraded conky-1.11.5-1
2019-08-31 12:51:59 upgraded conky-1.11.5-2
PrtScn 2019-09-07_18-56-41_Arch Conky-MEM-used-negative
---------------------------------------------------------------
Mageia
2018-11-02 (Mageia 6) rpm -qa conky-1.10.6-1
2019-03-17 (Mageia 7) urpmi conky
2019-04-18 07:38:07 upgraded conky 1.11.3
---------------------------------------------------------------
Fedora
2019-07-05 dnf install conky-1.11.3-1.fc30
2019-10-30 system-upgrade conky-1.11.5-1.fc31
PrtScn 2019-10-31 07:48 Conky-MEM-used-negative
---------------------------------------------------------------
PCLinuxOS
2017-12-19 14:41:53 installed conky 1.10.6-5pclos2017
2018-01-29 17:18:58 upgraded conky 1.10.7-1pclos2018
2018-02-26 19:44:21 upgraded conky 1.10.8-1pclos2018
2019-06-29 05:09:05 upgraded conky 1.11.5-2pclos2019
2019-07-10 11:53:24 upgraded conky 1.11.5-3pclos2019
2019-08-14 10:54:30 upgraded conky 1.11.5-4pclos2019
PrtScn 2019-08-16_23-38-53_PCLinuxOS Conky-Mem-used-NEGATIVE
2019-08-20 20:02:00 upgraded conky 1.11.5-5pclos2019
---------------------------------------------------------------
Sabayon
2018-12-01_12-26-26 equo install conky-1.10.8-r3
2019-01-08 21:59:59 upgraded conky-1.10.8-r4
---------------------------------------------------------------
Void
installed conky-1.11.5_1
PrtScn 2019-11-23_21-23-57 Mem-used-very-Low
---------------------------------------------------------------
openSUSE
2017-01-17 03:25:35 | install | conky|1.10.1-7.1
2017-08-03 23:54:51 | install | conky|1.10.6-13.1 | packman.inode.at-suse
(...)
2017-10-28 11:33:13 upgraded conky-1.10.6-13.16 1 package
2017-10-29 13:51:32 upgraded conky-1.10.6-13.18 11 packages
2017-10-31 15:07:06 upgraded conky-1.10.6-13.19 1 package
2017-11-11 01:04:16 upgraded conky 11 packages
2017-11-24 01:31:41 upgraded conky 57 packages
2017-11-29 00:17:24 upgraded conky 11 packages
2017-12-09 09:03:40 upgraded conky 1 package
2017-12-12 22:36:55 upgraded conky 5 packages
2017-12-13 23:25:26 upgraded conky 1 package
2017-12-17 12:58:38 upgraded conky 18 packages
2017-12-22 20:52:16 upgraded conky-1.10.6-15.6 33 packages
2017-12-24 21:59:21 upgraded conky 3 packages
2017-12-30 21:20:02 upgraded conky 12 packages
2018-01-04 19:05:40 upgraded conky 3 packages
2018-01-10 02:24:11 upgraded conky 1 package
2018-01-13 14:49:26 upgraded conky 1 package
2018-01-15 19:40:31 upgraded conky 41 packages
2018-01-16 12:47:29 upgraded conky 3 packages
2018-01-19 07:36:24 upgraded conky 1 package
2018-01-22 07:50:12 upgraded conky 2 packages
2018-01-23 09:08:36 upgraded conky 1 package
2018-01-27 20:32:38 upgraded conky 3 packages
2018-02-01 09:43:37 upgraded conky-1.10.6-16.10 25 packages
2018-02-04 09:37:54 upgraded conky 18 packages
2018-02-05 16:51:49 upgraded conky 4 packages
2018-02-11 21:36:26 upgraded conky 60 packages
2018-02-15 13:00:30 upgraded conky 33 packages
2018-02-25 19:51:36 upgraded conky 85 packages
2018-03-06 01:03:40 upgraded conky 38 packages
2018-03-12 21:05:17 upgraded conky 70 packages
2018-03-16 16:14:30 upgraded conky-1.10.8-8.4 28 packages
2018-03-19 10:14:41 upgraded conky 21 packages
2018-03-24 18:59:51 upgraded conky 102 packages
2018-04-01 18:13:46 upgraded conky 5 packages
2018-04-08 11:33:55 upgraded conky 11 packages
2018-04-16 20:14:43 upgraded conky 10 packages
2018-04-21 15:53:59 upgraded conky 6 packages
2018-04-26 22:02:06 upgraded conky 46 packages
2018-05-11 16:27:33 upgraded conky 32 packages
2018-05-19 12:10:58 upgraded conky 30 packages
2018-05-29 19:13:06 upgraded conky 6 packages
2018-06-10 17:09:43 upgraded conky 11 packages
2018-06-16 19:24:28 upgraded conky 63 packages
2018-06-28 12:50:46 upgraded conky 10 packages
Como se vê (acima), só nos 8 meses que vão de Outubro 2017 até Junho 2018, o openSUSE Leap apresentou nada menos que 44 atualizações ou revisões do Conky, — praticamente 1 a cada 5 dias, — como se houvesse uma tentativa incessante de corrigir alguma coisa, sem sucesso.
Para uma comparação: — Em 2020, no openSUSE Tumbleweed, às vezes passam-se meses sem atualização do Conky.
Nenhum comentário:
Postar um comentário