You are not logged in.

#26 2024-01-22 14:16:41

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect good
Bisecting: 142 revisions left to test after this (roughly 7 steps)
[5939a693dc6e6d6f293681017c70ff60c3723d43] Merge tag 'drm-fixes-2024-01-04' of git://anongit.freedesktop.org/drm/drm

https://drive.google.com/file/d/1Sk3hoA … sp=sharing linux-6.7rc8.r35.g5939a693dc6e-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1Y94EK7 … sp=sharing linux-headers-6.7rc8.r35.g5939a693dc6e-1-x86_64.pkg.tar.zst

All good.

Offline

#27 2024-01-22 15:08:12

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect good
Bisecting: 81 revisions left to test after this (roughly 6 steps)
[4c8530dc7d7da4abe97d65e8e038ce9852491369] net/tcp: Only produce AO/MD5 logs if there are any keys

https://drive.google.com/file/d/1kdrlEm … sp=sharing linux-6.7rc6.r218.g4c8530dc7d7d-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/12fycTk … sp=sharing linux-headers-6.7rc6.r218.g4c8530dc7d7d-1-x86_64.pkg.tar.zst

This is getting very close to the 6.7 release.  Another cross check kernel:
https://drive.google.com/file/d/19kYj9o … sp=sharing linux-6.7-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1o1crdi … sp=sharing linux-headers-6.7-1-x86_64.pkg.tar.zst

Offline

#28 2024-01-22 15:20:06

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect good
Bisecting: 81 revisions left to test after this (roughly 6 steps)
[4c8530dc7d7da4abe97d65e8e038ce9852491369] net/tcp: Only produce AO/MD5 logs if there are any keys

https://drive.google.com/file/d/1kdrlEm … sp=sharing linux-6.7rc6.r218.g4c8530dc7d7d-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/12fycTk … sp=sharing linux-headers-6.7rc6.r218.g4c8530dc7d7d-1-x86_64.pkg.tar.zst

This is getting very close to the 6.7 release.  Another cross check kernel:
https://drive.google.com/file/d/19kYj9o … sp=sharing linux-6.7-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1o1crdi … sp=sharing linux-headers-6.7-1-x86_64.pkg.tar.zst

Yeah I was worried for a bit that I actually went back to 6.7.arch3-1 to make sure that the issue still exists and it does when I typed my last reply.

Just tested linux-6.7rc6.r218.g4c8530dc7d7d-1-x86_64.pkg.tar.zst, all good, will be rebooting to do the cross check and update this comment:

~/ uname -a
Linux Arch 6.7.0-rc6-1-00218-g4c8530dc7d7d #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 14:44:18 +0000 x86_64 GNU/Linux
~/ sudo ps_mem
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB + 103.5 KiB = 343.5 KiB	xinit
272.0 KiB +  78.5 KiB = 350.5 KiB	dbus-run-session
448.0 KiB + 377.5 KiB = 825.5 KiB	sh
  1.0 MiB + 174.5 KiB =   1.2 MiB	dbus-broker-launch
876.0 KiB + 448.5 KiB =   1.3 MiB	startx
  1.3 MiB +  55.5 KiB =   1.3 MiB	dbus-broker
  1.1 MiB + 405.5 KiB =   1.5 MiB	at-spi-bus-launcher
  1.3 MiB + 536.5 KiB =   1.8 MiB	login
  1.2 MiB + 632.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.4 MiB + 512.5 KiB =   1.9 MiB	picom
  1.8 MiB + 148.5 KiB =   1.9 MiB	(sd-pam)
  1.1 MiB + 962.5 KiB =   2.0 MiB	systemd-timesyncd
  1.4 MiB + 744.5 KiB =   2.1 MiB	systemd-logind
840.0 KiB +   1.8 MiB =   2.6 MiB	systemd-udevd
  2.0 MiB + 633.5 KiB =   2.6 MiB	systemd-journald
  2.6 MiB + 277.5 KiB =   2.8 MiB	xss-lock
  2.1 MiB + 780.5 KiB =   2.9 MiB	pipewire-pulse
  2.6 MiB + 270.5 KiB =   2.9 MiB	xfconfd
  2.6 MiB + 516.5 KiB =   3.1 MiB	polkitd
  1.1 MiB +   2.2 MiB =   3.2 MiB	sudo (2)
  3.0 MiB + 417.5 KiB =   3.4 MiB	at-spi2-registryd
800.0 KiB +   2.8 MiB =   3.5 MiB	udevadm (2)
  3.7 MiB + 675.5 KiB =   4.3 MiB	dunst
  4.2 MiB + 481.5 KiB =   4.7 MiB	gvfsd
  3.7 MiB +   1.3 MiB =   5.1 MiB	zsh (2)
  4.9 MiB + 366.5 KiB =   5.3 MiB	gvfsd-fuse
  4.7 MiB +   1.4 MiB =   6.1 MiB	pipewire
  5.3 MiB +   4.1 MiB =   9.3 MiB	systemd (2)
 12.6 MiB +   2.6 MiB =  15.1 MiB	NetworkManager
 21.4 MiB +   1.6 MiB =  23.0 MiB	i3
 20.3 MiB +   3.4 MiB =  23.6 MiB	wireplumber
 19.0 MiB +   6.9 MiB =  25.9 MiB	polybar (3)
 20.9 MiB +   5.4 MiB =  26.3 MiB	xfce4-terminal
 17.1 MiB +  12.0 MiB =  29.1 MiB	kdeconnectd
 19.0 MiB +  11.1 MiB =  30.2 MiB	kdeconnect-indicator
 16.7 MiB +  16.3 MiB =  33.0 MiB	xfce-polkit
 21.3 MiB +  17.4 MiB =  38.7 MiB	xfce4-clipman
 66.5 MiB +  15.0 MiB =  81.5 MiB	Xorg
---------------------------------
                        406.9 MiB
=================================

edit: Tested linux-6.7-1-x86_64.pkg.tar.zst the issue is there.

Last edited by Samueru (2024-01-22 15:24:51)

Offline

#29 2024-01-22 15:41:53

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect good
Bisecting: 47 revisions left to test after this (roughly 5 steps)
[6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5] Merge tag 'soc-fixes-6.7-3a' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc

https://drive.google.com/file/d/1RzmbIg … sp=sharing linux-6.7rc8.r130.g6d0dc8559c84-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1A-5kfY … sp=sharing linux-headers-6.7rc8.r130.g6d0dc8559c84-1-x86_64.pkg.tar.zst

Offline

#30 2024-01-22 15:49:08

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect good
Bisecting: 47 revisions left to test after this (roughly 5 steps)
[6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5] Merge tag 'soc-fixes-6.7-3a' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc

https://drive.google.com/file/d/1RzmbIg … sp=sharing linux-6.7rc8.r130.g6d0dc8559c84-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1A-5kfY … sp=sharing linux-headers-6.7rc8.r130.g6d0dc8559c84-1-x86_64.pkg.tar.zst

All good.

Offline

#31 2024-01-22 17:07:31

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect good
Bisecting: 25 revisions left to test after this (roughly 5 steps)
[2b5bd1498da5537e3d130b3862bccdd9aedd6c84] Merge tag 'drm-fixes-2024-01-05' of git://anongit.freedesktop.org/drm/drm

https://drive.google.com/file/d/1SomT6I … sp=sharing linux-6.7rc8.r152.g2b5bd1498da5-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1_z3Pb_ … sp=sharing linux-headers-6.7rc8.r152.g2b5bd1498da5-1-x86_64.pkg.tar.zst

Offline

#32 2024-01-22 17:15:17

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect good
Bisecting: 25 revisions left to test after this (roughly 5 steps)
[2b5bd1498da5537e3d130b3862bccdd9aedd6c84] Merge tag 'drm-fixes-2024-01-05' of git://anongit.freedesktop.org/drm/drm

https://drive.google.com/file/d/1SomT6I … sp=sharing linux-6.7rc8.r152.g2b5bd1498da5-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1_z3Pb_ … sp=sharing linux-headers-6.7rc8.r152.g2b5bd1498da5-1-x86_64.pkg.tar.zst

All good.

Offline

#33 2024-01-22 17:37:55

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect good
Bisecting: 13 revisions left to test after this (roughly 4 steps)
[7fba9420b726561966e1671004df60a08b39beb3] mm: shrinker: use kvzalloc_node() from expand_one_shrinker_info()

https://drive.google.com/file/d/1c6xQLf … sp=sharing linux-6.7rc4.r72.g7fba9420b726-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1X4enlC … sp=sharing linux-headers-6.7rc4.r72.g7fba9420b726-1-x86_64.pkg.tar.zst

Offline

#34 2024-01-22 17:47:28

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect good
Bisecting: 13 revisions left to test after this (roughly 4 steps)
[7fba9420b726561966e1671004df60a08b39beb3] mm: shrinker: use kvzalloc_node() from expand_one_shrinker_info()

https://drive.google.com/file/d/1c6xQLf … sp=sharing linux-6.7rc4.r72.g7fba9420b726-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1X4enlC … sp=sharing linux-headers-6.7rc4.r72.g7fba9420b726-1-x86_64.pkg.tar.zst

Bingo, this is the one with the issue.

~/ uname -a   
Linux Arch 6.7.0-rc4-1-00072-g7fba9420b726 #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 17:17:20 +0000 x86_64 GNU/Linux
~/ free -h    
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       959Mi       537Mi        20Mi       591Mi       886Mi
Swap:          5.4Gi          0B       5.4Gi
~/ sudo ps_mem
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB + 101.5 KiB = 341.5 KiB	xinit
272.0 KiB +  73.5 KiB = 345.5 KiB	dbus-run-session
456.0 KiB + 315.5 KiB = 771.5 KiB	startx
428.0 KiB + 399.5 KiB = 827.5 KiB	sh
  1.0 MiB + 175.5 KiB =   1.2 MiB	dbus-broker-launch
  1.3 MiB +  53.5 KiB =   1.3 MiB	dbus-broker
  1.2 MiB + 621.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 540.5 KiB =   1.8 MiB	login
  1.4 MiB + 505.5 KiB =   1.9 MiB	picom
  1.8 MiB + 141.5 KiB =   1.9 MiB	(sd-pam)
  1.4 MiB + 740.5 KiB =   2.2 MiB	systemd-logind
  2.1 MiB + 632.5 KiB =   2.7 MiB	systemd-journald
908.0 KiB +   1.8 MiB =   2.7 MiB	systemd-udevd
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
736.0 KiB +   2.8 MiB =   3.5 MiB	udevadm (2)
  3.0 MiB + 962.5 KiB =   4.0 MiB	systemd-timesyncd
  3.8 MiB +   1.3 MiB =   5.0 MiB	zsh (2)
  6.6 MiB + 249.5 KiB =   6.8 MiB	xss-lock
  6.1 MiB + 766.5 KiB =   6.9 MiB	pipewire-pulse
  6.6 MiB + 281.5 KiB =   6.9 MiB	xfconfd
  7.0 MiB + 430.5 KiB =   7.4 MiB	at-spi2-registryd
  7.7 MiB + 695.5 KiB =   8.4 MiB	dunst
  8.2 MiB + 470.5 KiB =   8.6 MiB	gvfsd
  8.6 MiB + 518.5 KiB =   9.1 MiB	polkitd
  5.3 MiB +   4.0 MiB =   9.3 MiB	systemd (2)
  9.1 MiB + 394.5 KiB =   9.5 MiB	at-spi-bus-launcher
 10.7 MiB +   1.4 MiB =  12.0 MiB	pipewire
 13.0 MiB + 370.5 KiB =  13.3 MiB	gvfsd-fuse
 14.5 MiB +   2.6 MiB =  17.1 MiB	NetworkManager
 21.4 MiB +   1.6 MiB =  23.1 MiB	i3
 23.2 MiB +   5.4 MiB =  28.5 MiB	xfce4-terminal
 19.3 MiB +  11.9 MiB =  31.2 MiB	kdeconnectd
 30.2 MiB +   3.4 MiB =  33.6 MiB	wireplumber
 22.9 MiB +  11.1 MiB =  34.0 MiB	kdeconnect-indicator
 30.7 MiB +  16.3 MiB =  47.0 MiB	xfce-polkit
 33.2 MiB +  17.2 MiB =  50.5 MiB	xfce4-clipman
 46.9 MiB +   6.8 MiB =  53.7 MiB	polybar (3)
 82.7 MiB +  15.0 MiB =  97.7 MiB	Xorg
---------------------------------
                        550.1 MiB
=================================

Offline

#35 2024-01-22 18:08:10

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect bad
Bisecting: 5 revisions left to test after this (roughly 3 steps)
[140a923bc18e5355ddc54fbe70c0ee0ac23a9616] MAINTAINERS: remove hugetlb maintainer Mike Kravetz

https://drive.google.com/file/d/1gI8Npv … sp=sharing linux-6.7rc4.r66.g140a923bc18e-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1Y3sYEo … sp=sharing linux-headers-6.7rc4.r66.g140a923bc18e-1-x86_64.pkg.tar.zst

Possibly https://git.kernel.org/pub/scm/linux/ke … 32a37fba47

Offline

#36 2024-01-22 18:14:05

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect bad
Bisecting: 5 revisions left to test after this (roughly 3 steps)
[140a923bc18e5355ddc54fbe70c0ee0ac23a9616] MAINTAINERS: remove hugetlb maintainer Mike Kravetz

https://drive.google.com/file/d/1gI8Npv … sp=sharing linux-6.7rc4.r66.g140a923bc18e-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1Y3sYEo … sp=sharing linux-headers-6.7rc4.r66.g140a923bc18e-1-x86_64.pkg.tar.zst

Possibly https://git.kernel.org/pub/scm/linux/ke … 32a37fba47


Bad, issue is present.


Edit: Here is more data that includes the last 3 kernel versions tested, LTS and 6.7.0-arch3-1. (I've added meminfo as well)

6.6.13-1-lts

~/ uname -a                                                        
Linux Arch 6.6.13-1-lts #1 SMP PREEMPT_DYNAMIC Sat, 20 Jan 2024 14:48:01 +0000 x86_64 GNU/Linux
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       712Mi       680Mi        19Mi       610Mi       1.1Gi
Swap:          5.3Gi          0B       5.3Gi
~/ sudo ps_mem                                                       
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB +  94.5 KiB = 334.5 KiB	xinit
276.0 KiB +  73.5 KiB = 349.5 KiB	dbus-run-session
424.0 KiB + 369.5 KiB = 793.5 KiB	sh
  1.0 MiB + 172.5 KiB =   1.2 MiB	dbus-broker-launch
  1.2 MiB +  55.5 KiB =   1.3 MiB	dbus-broker
928.0 KiB + 441.5 KiB =   1.3 MiB	startx
  1.0 MiB + 409.5 KiB =   1.4 MiB	at-spi2-registryd
  1.2 MiB + 391.5 KiB =   1.5 MiB	at-spi-bus-launcher
  1.2 MiB + 614.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 539.5 KiB =   1.8 MiB	login
  1.8 MiB + 147.5 KiB =   1.9 MiB	(sd-pam)
  1.4 MiB + 534.5 KiB =   1.9 MiB	picom
  1.4 MiB + 745.5 KiB =   2.2 MiB	systemd-logind
860.0 KiB +   1.6 MiB =   2.4 MiB	systemd-udevd
  2.1 MiB + 634.5 KiB =   2.7 MiB	systemd-journald
  2.6 MiB + 269.5 KiB =   2.8 MiB	xss-lock
  2.1 MiB + 780.5 KiB =   2.9 MiB	pipewire-pulse
796.0 KiB +   2.3 MiB =   3.1 MiB	udevadm (2)
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
  3.1 MiB + 960.5 KiB =   4.0 MiB	systemd-timesyncd
  3.7 MiB + 694.5 KiB =   4.4 MiB	dunst
  4.2 MiB + 486.5 KiB =   4.7 MiB	gvfsd
  4.6 MiB + 276.5 KiB =   4.9 MiB	xfconfd
  3.8 MiB +   1.2 MiB =   5.1 MiB	zsh (2)
  4.6 MiB + 518.5 KiB =   5.1 MiB	polkitd
  5.0 MiB + 375.5 KiB =   5.3 MiB	gvfsd-fuse
  4.7 MiB +   1.4 MiB =   6.2 MiB	pipewire
  5.2 MiB +   4.1 MiB =   9.3 MiB	systemd (2)
 10.6 MiB +   2.6 MiB =  13.2 MiB	NetworkManager
 21.1 MiB +   1.5 MiB =  22.6 MiB	i3
 16.9 MiB +   6.8 MiB =  23.8 MiB	polybar (3)
 19.4 MiB +   5.2 MiB =  24.6 MiB	xfce4-terminal
 22.3 MiB +   3.4 MiB =  25.7 MiB	wireplumber
 15.1 MiB +  12.0 MiB =  27.0 MiB	kdeconnectd
 20.8 MiB +  11.2 MiB =  31.9 MiB	kdeconnect-indicator
 16.7 MiB +  16.3 MiB =  33.0 MiB	xfce-polkit
 19.3 MiB +  17.2 MiB =  36.5 MiB	xfce4-clipman
 64.6 MiB +  15.0 MiB =  79.6 MiB	Xorg
---------------------------------
                        401.7 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1847248 kB
MemFree:          683352 kB
MemAvailable:    1116932 kB
Buffers:            3172 kB
Cached:           600792 kB
SwapCached:            0 kB
Active:           691384 kB
Inactive:         123848 kB
Active(anon):     231632 kB
Inactive(anon):        0 kB
Active(file):     459752 kB
Inactive(file):   123848 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5538812 kB
SwapFree:        5538812 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               416 kB
Writeback:             0 kB
AnonPages:        203284 kB
Mapped:           206920 kB
Shmem:             20364 kB
KReclaimable:      33072 kB
Slab:             129488 kB
SReclaimable:      33072 kB
SUnreclaim:        96416 kB
KernelStack:        7780 kB
PageTables:         5640 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6462436 kB
Committed_AS:    1303040 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       91068 kB
VmallocChunk:          0 kB
Percpu:            10080 kB
HardwareCorrupted:     0 kB
AnonHugePages:     47104 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      224032 kB
DirectMap2M:     1773568 kB
DirectMap1G:           0 kB

6.7.0-rc8-1-00152-g2b5bd1498da5

~/ uname -a
Linux Arch 6.7.0-rc8-1-00152-g2b5bd1498da5 #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 16:47:21 +0000 x86_64 GNU/Linux
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       787Mi       693Mi        20Mi       610Mi       1.0Gi
Swap:          5.4Gi          0B       5.4Gi
~/ sudo ps_mem                                                        
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB +  87.5 KiB = 327.5 KiB	xinit
272.0 KiB +  73.5 KiB = 345.5 KiB	dbus-run-session
448.0 KiB + 260.5 KiB = 708.5 KiB	sh
540.0 KiB + 586.5 KiB =   1.1 MiB	startx
  1.0 MiB + 179.5 KiB =   1.2 MiB	dbus-broker-launch
  1.2 MiB +  60.5 KiB =   1.3 MiB	dbus-broker
  1.0 MiB + 413.5 KiB =   1.4 MiB	at-spi2-registryd
  1.1 MiB + 395.5 KiB =   1.5 MiB	at-spi-bus-launcher
  1.0 MiB + 572.5 KiB =   1.6 MiB	systemd-hostnamed
  1.2 MiB + 631.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 540.5 KiB =   1.8 MiB	login
  1.4 MiB + 509.5 KiB =   1.9 MiB	picom
  1.8 MiB + 140.5 KiB =   1.9 MiB	(sd-pam)
  1.1 MiB + 907.5 KiB =   2.0 MiB	systemd-timesyncd
  1.4 MiB + 673.5 KiB =   2.1 MiB	systemd-logind
860.0 KiB +   1.8 MiB =   2.6 MiB	systemd-udevd
  2.1 MiB + 582.5 KiB =   2.6 MiB	systemd-journald
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
  3.0 MiB + 355.5 KiB =   3.4 MiB	gvfsd-fuse
812.0 KiB +   2.8 MiB =   3.6 MiB	udevadm (2)
  3.7 MiB + 671.5 KiB =   4.3 MiB	dunst
  4.5 MiB + 254.5 KiB =   4.8 MiB	xss-lock
  4.6 MiB + 251.5 KiB =   4.9 MiB	xfconfd
  4.1 MiB + 778.5 KiB =   4.9 MiB	pipewire-pulse
  3.8 MiB +   1.2 MiB =   5.0 MiB	zsh (2)
  4.6 MiB + 507.5 KiB =   5.1 MiB	polkitd
  4.7 MiB +   1.4 MiB =   6.2 MiB	pipewire
  6.2 MiB + 468.5 KiB =   6.6 MiB	gvfsd
  5.2 MiB +   3.9 MiB =   9.1 MiB	systemd (2)
 10.5 MiB +   2.6 MiB =  13.1 MiB	NetworkManager
 21.5 MiB +   1.6 MiB =  23.1 MiB	i3
 20.2 MiB +   3.4 MiB =  23.6 MiB	wireplumber
 19.0 MiB +   6.8 MiB =  25.8 MiB	polybar (3)
 21.2 MiB +   5.3 MiB =  26.6 MiB	xfce4-terminal
 15.2 MiB +  11.9 MiB =  27.1 MiB	kdeconnectd
 19.0 MiB +  11.1 MiB =  30.1 MiB	kdeconnect-indicator
 16.7 MiB +  16.2 MiB =  33.0 MiB	xfce-polkit
 21.2 MiB +  17.3 MiB =  38.5 MiB	xfce4-clipman
 64.6 MiB +  15.0 MiB =  79.7 MiB	Xorg
---------------------------------
                        407.7 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1890156 kB
MemFree:          707036 kB
MemAvailable:    1091312 kB
Buffers:            3172 kB
Cached:           598644 kB
SwapCached:            0 kB
Active:           691920 kB
Inactive:         121428 kB
Active(anon):     232328 kB
Inactive(anon):        0 kB
Active(file):     459592 kB
Inactive(file):   121428 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5667836 kB
SwapFree:        5667836 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               952 kB
Writeback:             0 kB
AnonPages:        207344 kB
Mapped:           207020 kB
Shmem:             20796 kB
KReclaimable:      33064 kB
Slab:             127640 kB
SReclaimable:      33064 kB
SUnreclaim:        94576 kB
KernelStack:        7784 kB
PageTables:         6876 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6612912 kB
Committed_AS:    1315320 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       92680 kB
VmallocChunk:          0 kB
Percpu:            10176 kB
HardwareCorrupted:     0 kB
AnonHugePages:     38912 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      277472 kB
DirectMap2M:     1765376 kB
DirectMap1G:           0 kB

6.7.0-rc4-1-00072-g7fba9420b726

~/ uname -a
Linux Arch 6.7.0-rc4-1-00072-g7fba9420b726 #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 17:17:20 +0000 x86_64 GNU/Linux
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       907Mi       502Mi        19Mi       590Mi       896Mi
Swap:          5.3Gi          0B       5.3Gi
~/ sudo ps_mem
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

244.0 KiB +  86.5 KiB = 330.5 KiB	xinit
276.0 KiB +  70.5 KiB = 346.5 KiB	dbus-run-session
428.0 KiB + 369.5 KiB = 797.5 KiB	sh
  1.1 MiB + 163.5 KiB =   1.2 MiB	dbus-broker-launch
892.0 KiB + 439.5 KiB =   1.3 MiB	startx
  1.2 MiB +  59.5 KiB =   1.3 MiB	dbus-broker
  1.0 MiB + 572.5 KiB =   1.6 MiB	systemd-hostnamed
  1.1 MiB + 626.0 KiB =   1.7 MiB	dbus-daemon (2)
  1.3 MiB + 552.5 KiB =   1.8 MiB	login
  1.4 MiB + 500.5 KiB =   1.9 MiB	picom
  1.8 MiB + 140.5 KiB =   1.9 MiB	(sd-pam)
  1.4 MiB + 671.5 KiB =   2.1 MiB	systemd-logind
944.0 KiB +   1.6 MiB =   2.6 MiB	systemd-udevd
  2.0 MiB + 579.5 KiB =   2.6 MiB	systemd-journald
  1.1 MiB +   2.2 MiB =   3.2 MiB	sudo (2)
868.0 KiB +   2.6 MiB =   3.4 MiB	udevadm (2)
  3.1 MiB + 896.5 KiB =   3.9 MiB	systemd-timesyncd
  3.8 MiB +   1.3 MiB =   5.1 MiB	zsh (2)
  6.6 MiB + 268.5 KiB =   6.8 MiB	xss-lock
  6.1 MiB + 775.5 KiB =   6.9 MiB	pipewire-pulse
  6.6 MiB + 273.5 KiB =   6.9 MiB	xfconfd
  7.0 MiB + 416.5 KiB =   7.4 MiB	at-spi2-registryd
  7.7 MiB + 695.5 KiB =   8.4 MiB	dunst
  8.2 MiB + 474.5 KiB =   8.7 MiB	gvfsd
  8.6 MiB + 507.5 KiB =   9.1 MiB	polkitd
  5.3 MiB +   3.9 MiB =   9.2 MiB	systemd (2)
  9.1 MiB + 403.5 KiB =   9.5 MiB	at-spi-bus-launcher
 10.7 MiB +   1.4 MiB =  12.1 MiB	pipewire
 12.9 MiB + 367.5 KiB =  13.3 MiB	gvfsd-fuse
 14.6 MiB +   2.6 MiB =  17.1 MiB	NetworkManager
 21.1 MiB +   1.6 MiB =  22.7 MiB	i3
 25.1 MiB +   5.3 MiB =  30.4 MiB	xfce4-terminal
 19.1 MiB +  12.0 MiB =  31.1 MiB	kdeconnectd
 30.1 MiB +   3.4 MiB =  33.5 MiB	wireplumber
 22.8 MiB +  11.2 MiB =  34.0 MiB	kdeconnect-indicator
 30.7 MiB +  16.3 MiB =  47.0 MiB	xfce-polkit
 33.2 MiB +  17.2 MiB =  50.4 MiB	xfce4-clipman
 46.9 MiB +   6.9 MiB =  53.7 MiB	polybar (3)
 85.3 MiB +  15.0 MiB = 100.3 MiB	Xorg
---------------------------------
                        555.5 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1847124 kB
MemFree:          506196 kB
MemAvailable:     920516 kB
Buffers:            3168 kB
Cached:           583480 kB
SwapCached:            0 kB
Active:           871052 kB
Inactive:         107040 kB
Active(anon):     411808 kB
Inactive(anon):        0 kB
Active(file):     459244 kB
Inactive(file):   107040 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5538812 kB
SwapFree:        5538812 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               296 kB
Writeback:             0 kB
AnonPages:        358584 kB
Mapped:           206436 kB
Shmem:             20364 kB
KReclaimable:      28960 kB
Slab:             123892 kB
SReclaimable:      28960 kB
SUnreclaim:        94932 kB
KernelStack:        7824 kB
PageTables:         6812 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6462372 kB
Committed_AS:    1322240 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       92096 kB
VmallocChunk:          0 kB
Percpu:            10080 kB
HardwareCorrupted:     0 kB
AnonHugePages:    174080 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      273184 kB
DirectMap2M:     1724416 kB
DirectMap1G:           0 kB

6.7.0-rc4-1-00066-g140a923bc18e

~/ uname -a
Linux Arch 6.7.0-rc4-1-00066-g140a923bc18e #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 17:49:28 +0000 x86_64 GNU/Linux
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       946Mi       533Mi        20Mi       609Mi       899Mi
Swap:          5.4Gi          0B       5.4Gi
~/ sudo ps_mem                                                       
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB +  92.5 KiB = 332.5 KiB	xinit
272.0 KiB +  66.5 KiB = 338.5 KiB	dbus-run-session
448.0 KiB + 379.5 KiB = 827.5 KiB	sh
  1.0 MiB + 175.5 KiB =   1.2 MiB	dbus-broker-launch
868.0 KiB + 452.5 KiB =   1.3 MiB	startx
  1.3 MiB +  55.5 KiB =   1.3 MiB	dbus-broker
  1.0 MiB + 571.5 KiB =   1.6 MiB	systemd-hostnamed
  1.2 MiB + 623.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 538.5 KiB =   1.8 MiB	login
  1.4 MiB + 508.5 KiB =   1.9 MiB	picom
  1.8 MiB + 135.5 KiB =   1.9 MiB	(sd-pam)
  1.4 MiB + 665.5 KiB =   2.1 MiB	systemd-logind
852.0 KiB +   1.7 MiB =   2.6 MiB	systemd-udevd
  2.1 MiB + 576.5 KiB =   2.6 MiB	systemd-journald
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
752.0 KiB +   2.8 MiB =   3.5 MiB	udevadm (2)
  3.1 MiB + 893.5 KiB =   3.9 MiB	systemd-timesyncd
  3.8 MiB +   1.3 MiB =   5.1 MiB	zsh (2)
  6.6 MiB + 263.5 KiB =   6.8 MiB	xss-lock
  6.1 MiB + 783.5 KiB =   6.9 MiB	pipewire-pulse
  6.6 MiB + 274.5 KiB =   6.9 MiB	xfconfd
  7.0 MiB + 411.5 KiB =   7.4 MiB	at-spi2-registryd
  7.7 MiB + 682.5 KiB =   8.4 MiB	dunst
  8.2 MiB + 463.5 KiB =   8.6 MiB	gvfsd
  8.6 MiB + 513.5 KiB =   9.1 MiB	polkitd
  5.3 MiB +   3.9 MiB =   9.2 MiB	systemd (2)
  9.1 MiB + 397.5 KiB =   9.5 MiB	at-spi-bus-launcher
 10.7 MiB +   1.4 MiB =  12.0 MiB	pipewire
 13.0 MiB + 370.5 KiB =  13.3 MiB	gvfsd-fuse
 14.6 MiB +   2.5 MiB =  17.1 MiB	NetworkManager
 21.5 MiB +   1.6 MiB =  23.1 MiB	i3
 25.0 MiB +   5.3 MiB =  30.4 MiB	xfce4-terminal
 19.3 MiB +  11.9 MiB =  31.2 MiB	kdeconnectd
 30.3 MiB +   3.3 MiB =  33.6 MiB	wireplumber
 22.9 MiB +  11.1 MiB =  34.0 MiB	kdeconnect-indicator
 30.7 MiB +  16.2 MiB =  46.9 MiB	xfce-polkit
 33.2 MiB +  17.2 MiB =  50.4 MiB	xfce4-clipman
 46.9 MiB +   6.9 MiB =  53.8 MiB	polybar (3)
 82.6 MiB +  15.2 MiB =  97.8 MiB	Xorg
---------------------------------
                        553.7 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1890316 kB
MemFree:          534732 kB
MemAvailable:     920780 kB
Buffers:            3172 kB
Cached:           600376 kB
SwapCached:            0 kB
Active:           868840 kB
Inactive:         123084 kB
Active(anon):     409168 kB
Inactive(anon):        0 kB
Active(file):     459672 kB
Inactive(file):   123084 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5670908 kB
SwapFree:        5670908 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               180 kB
Writeback:             0 kB
AnonPages:        355676 kB
Mapped:           206932 kB
Shmem:             20792 kB
KReclaimable:      33144 kB
Slab:             126928 kB
SReclaimable:      33144 kB
SUnreclaim:        93784 kB
KernelStack:        7744 kB
PageTables:         6612 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6616064 kB
Committed_AS:    1313252 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       92320 kB
VmallocChunk:          0 kB
Percpu:            10176 kB
HardwareCorrupted:     0 kB
AnonHugePages:    180224 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      254944 kB
DirectMap2M:     1787904 kB
DirectMap1G:           0 kB

6.7.0-arch3-1

~/ uname -a            
Linux Arch 6.7.0-arch3-1 #1 SMP PREEMPT_DYNAMIC Sat, 13 Jan 2024 14:37:14 +0000 x86_64 GNU/Linux
~/ free -h             
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       953Mi       526Mi        20Mi       610Mi       892Mi
Swap:          5.4Gi          0B       5.4Gi
~/ sudo ps_mem                                                     
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB +  97.5 KiB = 337.5 KiB	xinit
272.0 KiB +  77.5 KiB = 349.5 KiB	dbus-run-session
428.0 KiB + 386.5 KiB = 814.5 KiB	sh
  1.0 MiB + 175.5 KiB =   1.2 MiB	dbus-broker-launch
  1.3 MiB +  59.5 KiB =   1.3 MiB	dbus-broker
892.0 KiB + 455.5 KiB =   1.3 MiB	startx
  1.0 MiB + 573.5 KiB =   1.6 MiB	systemd-hostnamed
  1.2 MiB + 629.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 540.5 KiB =   1.8 MiB	login
  1.8 MiB + 137.5 KiB =   1.9 MiB	(sd-pam)
  1.4 MiB + 542.5 KiB =   1.9 MiB	picom
  1.4 MiB + 672.5 KiB =   2.1 MiB	systemd-logind
880.0 KiB +   1.7 MiB =   2.5 MiB	systemd-udevd
  2.1 MiB + 581.5 KiB =   2.6 MiB	systemd-journald
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
776.0 KiB +   2.6 MiB =   3.4 MiB	udevadm (2)
  3.0 MiB + 904.5 KiB =   3.9 MiB	systemd-timesyncd
  3.7 MiB +   1.3 MiB =   5.0 MiB	zsh (2)
  6.6 MiB + 263.5 KiB =   6.8 MiB	xss-lock
  6.1 MiB + 774.5 KiB =   6.9 MiB	pipewire-pulse
  6.6 MiB + 278.5 KiB =   6.9 MiB	xfconfd
  7.0 MiB + 402.5 KiB =   7.4 MiB	at-spi2-registryd
  7.7 MiB + 668.5 KiB =   8.4 MiB	dunst
  8.2 MiB + 486.5 KiB =   8.7 MiB	gvfsd
  8.6 MiB + 505.5 KiB =   9.1 MiB	polkitd
  5.2 MiB +   3.9 MiB =   9.1 MiB	systemd (2)
  9.1 MiB + 395.5 KiB =   9.5 MiB	at-spi-bus-launcher
 10.6 MiB +   1.4 MiB =  12.0 MiB	pipewire
 13.0 MiB + 367.5 KiB =  13.3 MiB	gvfsd-fuse
 14.6 MiB +   2.5 MiB =  17.1 MiB	NetworkManager
 21.4 MiB +   1.6 MiB =  23.0 MiB	i3
 23.5 MiB +   5.3 MiB =  28.8 MiB	xfce4-terminal
 19.3 MiB +  11.9 MiB =  31.2 MiB	kdeconnectd
 30.2 MiB +   3.4 MiB =  33.5 MiB	wireplumber
 22.9 MiB +  11.2 MiB =  34.0 MiB	kdeconnect-indicator
 30.7 MiB +  16.3 MiB =  47.0 MiB	xfce-polkit
 33.3 MiB +  17.3 MiB =  50.5 MiB	xfce4-clipman
 46.9 MiB +   6.9 MiB =  53.8 MiB	polybar (3)
 82.9 MiB +  15.0 MiB =  97.9 MiB	Xorg
---------------------------------
                        552.0 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1890148 kB
MemFree:          523160 kB
MemAvailable:     909660 kB
Buffers:            3172 kB
Cached:           600740 kB
SwapCached:            0 kB
Active:           868116 kB
Inactive:         123412 kB
Active(anon):     408412 kB
Inactive(anon):        0 kB
Active(file):     459704 kB
Inactive(file):   123412 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5667836 kB
SwapFree:        5667836 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               416 kB
Writeback:             0 kB
AnonPages:        355176 kB
Mapped:           207048 kB
Shmem:             20792 kB
KReclaimable:      33312 kB
Slab:             128184 kB
SReclaimable:      33312 kB
SUnreclaim:        94872 kB
KernelStack:        7808 kB
PageTables:         6664 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6612908 kB
Committed_AS:    1313032 kB
VmallocTotal:   34359738367 kB
VmallocUsed:      103640 kB
VmallocChunk:          0 kB
Percpu:            10080 kB
HardwareCorrupted:     0 kB
AnonHugePages:    174080 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      273376 kB
DirectMap2M:     1769472 kB
DirectMap1G:           0 kB

Last edited by Samueru (2024-01-22 18:59:51)

Offline

#37 2024-01-22 18:58:34

frostschutz
Member
Registered: 2013-11-15
Posts: 1,425

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

Not sure if it's in the same context but this one is already on the regression tracker https://lore.kernel.org/all/17058505950 … huis.info/

Offline

#38 2024-01-22 19:18:14

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

 git bisect bad
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[fa151a39a6879144b587f35c0dfcc15e1be9450f] mm: fix arithmetic for max_prop_frac when setting max_ratio

https://drive.google.com/file/d/1jIcFFE … sp=sharing linux-6.7rc4.r63.gfa151a39a687-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1ji-PAz … sp=sharing linux-headers-6.7rc4.r63.gfa151a39a687-1-x86_64.pkg.tar.zst

If this next kernel is bad please try booting it with the kernel parameter transparent_hugepage=off

Offline

#39 2024-01-22 19:25:40

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
 git bisect bad
Bisecting: 2 revisions left to test after this (roughly 2 steps)
[fa151a39a6879144b587f35c0dfcc15e1be9450f] mm: fix arithmetic for max_prop_frac when setting max_ratio

https://drive.google.com/file/d/1jIcFFE … sp=sharing linux-6.7rc4.r63.gfa151a39a687-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1ji-PAz … sp=sharing linux-headers-6.7rc4.r63.gfa151a39a687-1-x86_64.pkg.tar.zst

If this next kernel is bad please try booting it with the kernel parameter transparent_hugepage=off

It is bad and it is also bad when booting with transparent_hugepage=off

Offline

#40 2024-01-22 19:52:23

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 1 step)
[e0646b7590084a5bf3b056d3ad871d9379d2c25a] mm: fix arithmetic for bdi min_ratio

https://drive.google.com/file/d/1za5LeT … sp=sharing linux-6.7rc4.r62.ge0646b759008-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1yMwvzV … sp=sharing linux-headers-6.7rc4.r62.ge0646b759008-1-x86_64.pkg.tar.zst

Offline

#41 2024-01-22 20:02:40

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 1 step)
[e0646b7590084a5bf3b056d3ad871d9379d2c25a] mm: fix arithmetic for bdi min_ratio

https://drive.google.com/file/d/1za5LeT … sp=sharing linux-6.7rc4.r62.ge0646b759008-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1yMwvzV … sp=sharing linux-headers-6.7rc4.r62.ge0646b759008-1-x86_64.pkg.tar.zst

It is bad. I also tested it with transparent_hugepage=off and still bad.

Offline

#42 2024-01-22 20:46:39

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[efa7df3e3bb5da8e6abbe37727417f32a37fba47] mm: align larger anonymous mappings on THP boundaries

https://drive.google.com/file/d/1W14sX9 … sp=sharing linux-6.7rc4.r61.gefa7df3e3bb5-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1pb_JQS … sp=sharing linux-headers-6.7rc4.r61.gefa7df3e3bb5-1-x86_64.pkg.tar.zst

Offline

#43 2024-01-22 20:51:42

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect bad
Bisecting: 0 revisions left to test after this (roughly 0 steps)
[efa7df3e3bb5da8e6abbe37727417f32a37fba47] mm: align larger anonymous mappings on THP boundaries

https://drive.google.com/file/d/1W14sX9 … sp=sharing linux-6.7rc4.r61.gefa7df3e3bb5-1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1pb_JQS … sp=sharing linux-headers-6.7rc4.r61.gefa7df3e3bb5-1-x86_64.pkg.tar.zst

bad sad

~/ uname -a
Linux Arch 6.7.0-rc4-1-00061-gefa7df3e3bb5 #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 20:04:50 +0000 x86_64 GNU/Linux
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       958Mi       521Mi        20Mi       610Mi       887Mi
Swap:          5.4Gi          0B       5.4Gi
~/ sudo ps_mem                                                       
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

268.0 KiB +  77.5 KiB = 345.5 KiB	dbus-run-session
244.0 KiB + 102.5 KiB = 346.5 KiB	xinit
432.0 KiB + 362.5 KiB = 794.5 KiB	sh
  1.0 MiB + 176.5 KiB =   1.2 MiB	dbus-broker-launch
  1.2 MiB +  58.5 KiB =   1.3 MiB	dbus-broker
908.0 KiB + 433.5 KiB =   1.3 MiB	startx
  1.2 MiB + 629.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 547.5 KiB =   1.8 MiB	login
  1.4 MiB + 498.5 KiB =   1.9 MiB	picom
  1.8 MiB + 143.5 KiB =   1.9 MiB	(sd-pam)
  1.4 MiB + 744.5 KiB =   2.2 MiB	systemd-logind
940.0 KiB +   1.7 MiB =   2.6 MiB	systemd-udevd
  1.0 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
872.0 KiB +   2.6 MiB =   3.4 MiB	udevadm (2)
  3.1 MiB + 957.5 KiB =   4.0 MiB	systemd-timesyncd
  4.0 MiB + 635.5 KiB =   4.7 MiB	systemd-journald
  3.8 MiB +   1.3 MiB =   5.1 MiB	zsh (2)
  6.6 MiB + 263.5 KiB =   6.8 MiB	xss-lock
  6.1 MiB + 787.5 KiB =   6.9 MiB	pipewire-pulse
  6.6 MiB + 279.5 KiB =   6.9 MiB	xfconfd
  7.0 MiB + 412.5 KiB =   7.4 MiB	at-spi2-registryd
  7.7 MiB + 680.5 KiB =   8.4 MiB	dunst
  8.2 MiB + 491.5 KiB =   8.7 MiB	gvfsd
  8.6 MiB + 512.5 KiB =   9.1 MiB	polkitd
  5.2 MiB +   4.0 MiB =   9.3 MiB	systemd (2)
  9.1 MiB + 400.5 KiB =   9.5 MiB	at-spi-bus-launcher
 10.7 MiB +   1.4 MiB =  12.1 MiB	pipewire
 13.0 MiB + 370.5 KiB =  13.3 MiB	gvfsd-fuse
 14.6 MiB +   2.5 MiB =  17.1 MiB	NetworkManager
 21.4 MiB +   1.6 MiB =  23.1 MiB	i3
 23.2 MiB +   5.3 MiB =  28.5 MiB	xfce4-terminal
 19.3 MiB +  11.9 MiB =  31.2 MiB	kdeconnectd
 30.2 MiB +   3.4 MiB =  33.5 MiB	wireplumber
 22.9 MiB +  11.1 MiB =  34.1 MiB	kdeconnect-indicator
 30.7 MiB +  16.3 MiB =  47.0 MiB	xfce-polkit
 33.2 MiB +  17.2 MiB =  50.4 MiB	xfce4-clipman
 46.9 MiB +   7.0 MiB =  53.8 MiB	polybar (3)
 82.9 MiB +  15.0 MiB =  97.9 MiB	Xorg
---------------------------------
                        552.9 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1890316 kB
MemFree:          529328 kB
MemAvailable:     916768 kB
Buffers:            3172 kB
Cached:           601648 kB
SwapCached:            0 kB
Active:           870424 kB
Inactive:         124164 kB
Active(anon):     410592 kB
Inactive(anon):        0 kB
Active(file):     459832 kB
Inactive(file):   124164 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5670908 kB
SwapFree:        5670908 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               192 kB
Writeback:             0 kB
AnonPages:        357252 kB
Mapped:           206816 kB
Shmem:             20792 kB
KReclaimable:      33444 kB
Slab:             128832 kB
SReclaimable:      33444 kB
SUnreclaim:        95388 kB
KernelStack:        7824 kB
PageTables:         6556 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6616064 kB
Committed_AS:    1321648 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       92416 kB
VmallocChunk:          0 kB
Percpu:            10080 kB
HardwareCorrupted:     0 kB
AnonHugePages:    180224 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      269280 kB
DirectMap2M:     1773568 kB
DirectMap1G:           0 kB

Offline

#44 2024-01-22 21:08:23

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

$ git bisect bad
efa7df3e3bb5da8e6abbe37727417f32a37fba47 is the first bad commit
commit efa7df3e3bb5da8e6abbe37727417f32a37fba47
Author: Rik van Riel <riel@surriel.com>
Date:   Thu Dec 14 14:34:23 2023 -0800

    mm: align larger anonymous mappings on THP boundaries
    
    Align larger anonymous memory mappings on THP boundaries by going through
    thp_get_unmapped_area if THPs are enabled for the current process.
    
    With this patch, larger anonymous mappings are now THP aligned.  When a
    malloc library allocates a 2MB or larger arena, that arena can now be
    mapped with THPs right from the start, which can result in better TLB hit
    rates and execution time.
    
    Link: https://lkml.kernel.org/r/20220809142457.4751229f@imladris.surriel.com
    Link: https://lkml.kernel.org/r/20231214223423.1133074-1-yang@os.amperecomputing.com
    Signed-off-by: Rik van Riel <riel@surriel.com>
    Reviewed-by: Yang Shi <shy828301@gmail.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Christopher Lameter <cl@linux.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

 mm/mmap.c | 3 +++
 1 file changed, 3 insertions(+)
$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [0dd3ee31125508cd67f7e7172247f05b7fd1753a] Linux 6.7
git bisect bad 0dd3ee31125508cd67f7e7172247f05b7fd1753a
# status: waiting for good commit(s), bad commit known
# good: [b85ea95d086471afb4ad062012a4d73cd328fa86] Linux 6.7-rc1
git bisect good b85ea95d086471afb4ad062012a4d73cd328fa86
# good: [17894c2a7aa60a6da7495cc8500a53523e64c4b1] Merge tag 'trace-v6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
git bisect good 17894c2a7aa60a6da7495cc8500a53523e64c4b1
# good: [6d04b70ea48b2d84ebf6cd9ad9b01ba50a58542e] Merge tag 'dmaengine-fix-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine
git bisect good 6d04b70ea48b2d84ebf6cd9ad9b01ba50a58542e
# good: [fa655abe42c65e7e4ad52baf280dadfb571c110e] Merge tag 'input-for-v6.7-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
git bisect good fa655abe42c65e7e4ad52baf280dadfb571c110e
# good: [5939a693dc6e6d6f293681017c70ff60c3723d43] Merge tag 'drm-fixes-2024-01-04' of git://anongit.freedesktop.org/drm/drm
git bisect good 5939a693dc6e6d6f293681017c70ff60c3723d43
# good: [4c8530dc7d7da4abe97d65e8e038ce9852491369] net/tcp: Only produce AO/MD5 logs if there are any keys
git bisect good 4c8530dc7d7da4abe97d65e8e038ce9852491369
# good: [6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5] Merge tag 'soc-fixes-6.7-3a' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5
# good: [2b5bd1498da5537e3d130b3862bccdd9aedd6c84] Merge tag 'drm-fixes-2024-01-05' of git://anongit.freedesktop.org/drm/drm
git bisect good 2b5bd1498da5537e3d130b3862bccdd9aedd6c84
# bad: [7fba9420b726561966e1671004df60a08b39beb3] mm: shrinker: use kvzalloc_node() from expand_one_shrinker_info()
git bisect bad 7fba9420b726561966e1671004df60a08b39beb3
# bad: [140a923bc18e5355ddc54fbe70c0ee0ac23a9616] MAINTAINERS: remove hugetlb maintainer Mike Kravetz
git bisect bad 140a923bc18e5355ddc54fbe70c0ee0ac23a9616
# bad: [fa151a39a6879144b587f35c0dfcc15e1be9450f] mm: fix arithmetic for max_prop_frac when setting max_ratio
git bisect bad fa151a39a6879144b587f35c0dfcc15e1be9450f
# bad: [e0646b7590084a5bf3b056d3ad871d9379d2c25a] mm: fix arithmetic for bdi min_ratio
git bisect bad e0646b7590084a5bf3b056d3ad871d9379d2c25a
# bad: [efa7df3e3bb5da8e6abbe37727417f32a37fba47] mm: align larger anonymous mappings on THP boundaries
git bisect bad efa7df3e3bb5da8e6abbe37727417f32a37fba47
# first bad commit: [efa7df3e3bb5da8e6abbe37727417f32a37fba47] mm: align larger anonymous mappings on THP boundaries

Offline

#45 2024-01-22 21:26:39

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:
$ git bisect bad
efa7df3e3bb5da8e6abbe37727417f32a37fba47 is the first bad commit
commit efa7df3e3bb5da8e6abbe37727417f32a37fba47
Author: Rik van Riel <riel@surriel.com>
Date:   Thu Dec 14 14:34:23 2023 -0800

    mm: align larger anonymous mappings on THP boundaries
    
    Align larger anonymous memory mappings on THP boundaries by going through
    thp_get_unmapped_area if THPs are enabled for the current process.
    
    With this patch, larger anonymous mappings are now THP aligned.  When a
    malloc library allocates a 2MB or larger arena, that arena can now be
    mapped with THPs right from the start, which can result in better TLB hit
    rates and execution time.
    
    Link: https://lkml.kernel.org/r/20220809142457.4751229f@imladris.surriel.com
    Link: https://lkml.kernel.org/r/20231214223423.1133074-1-yang@os.amperecomputing.com
    Signed-off-by: Rik van Riel <riel@surriel.com>
    Reviewed-by: Yang Shi <shy828301@gmail.com>
    Cc: Matthew Wilcox <willy@infradead.org>
    Cc: Christopher Lameter <cl@linux.com>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

 mm/mmap.c | 3 +++
 1 file changed, 3 insertions(+)
$ git bisect log
git bisect start
# status: waiting for both good and bad commits
# bad: [0dd3ee31125508cd67f7e7172247f05b7fd1753a] Linux 6.7
git bisect bad 0dd3ee31125508cd67f7e7172247f05b7fd1753a
# status: waiting for good commit(s), bad commit known
# good: [b85ea95d086471afb4ad062012a4d73cd328fa86] Linux 6.7-rc1
git bisect good b85ea95d086471afb4ad062012a4d73cd328fa86
# good: [17894c2a7aa60a6da7495cc8500a53523e64c4b1] Merge tag 'trace-v6.7-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
git bisect good 17894c2a7aa60a6da7495cc8500a53523e64c4b1
# good: [6d04b70ea48b2d84ebf6cd9ad9b01ba50a58542e] Merge tag 'dmaengine-fix-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine
git bisect good 6d04b70ea48b2d84ebf6cd9ad9b01ba50a58542e
# good: [fa655abe42c65e7e4ad52baf280dadfb571c110e] Merge tag 'input-for-v6.7-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input
git bisect good fa655abe42c65e7e4ad52baf280dadfb571c110e
# good: [5939a693dc6e6d6f293681017c70ff60c3723d43] Merge tag 'drm-fixes-2024-01-04' of git://anongit.freedesktop.org/drm/drm
git bisect good 5939a693dc6e6d6f293681017c70ff60c3723d43
# good: [4c8530dc7d7da4abe97d65e8e038ce9852491369] net/tcp: Only produce AO/MD5 logs if there are any keys
git bisect good 4c8530dc7d7da4abe97d65e8e038ce9852491369
# good: [6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5] Merge tag 'soc-fixes-6.7-3a' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc
git bisect good 6d0dc8559c847e2dcd66c5dd93dbab3d3d887ff5
# good: [2b5bd1498da5537e3d130b3862bccdd9aedd6c84] Merge tag 'drm-fixes-2024-01-05' of git://anongit.freedesktop.org/drm/drm
git bisect good 2b5bd1498da5537e3d130b3862bccdd9aedd6c84
# bad: [7fba9420b726561966e1671004df60a08b39beb3] mm: shrinker: use kvzalloc_node() from expand_one_shrinker_info()
git bisect bad 7fba9420b726561966e1671004df60a08b39beb3
# bad: [140a923bc18e5355ddc54fbe70c0ee0ac23a9616] MAINTAINERS: remove hugetlb maintainer Mike Kravetz
git bisect bad 140a923bc18e5355ddc54fbe70c0ee0ac23a9616
# bad: [fa151a39a6879144b587f35c0dfcc15e1be9450f] mm: fix arithmetic for max_prop_frac when setting max_ratio
git bisect bad fa151a39a6879144b587f35c0dfcc15e1be9450f
# bad: [e0646b7590084a5bf3b056d3ad871d9379d2c25a] mm: fix arithmetic for bdi min_ratio
git bisect bad e0646b7590084a5bf3b056d3ad871d9379d2c25a
# bad: [efa7df3e3bb5da8e6abbe37727417f32a37fba47] mm: align larger anonymous mappings on THP boundaries
git bisect bad efa7df3e3bb5da8e6abbe37727417f32a37fba47
# first bad commit: [efa7df3e3bb5da8e6abbe37727417f32a37fba47] mm: align larger anonymous mappings on THP boundaries

Thanks for all the help loqs, it ended up being the issue that was already reported right? looks like a kWh of electricity or so went away compiling the 18 kernel versions haha.

Offline

#46 2024-01-22 21:30:22

seth
Member
Registered: 2012-09-03
Posts: 52,276

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

It is bad and it is also bad when booting with transparent_hugepage=off

transparent_hugepage=never

Offline

#47 2024-01-22 21:40:54

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

6.7 with efa7df3e3bb5da8e6abbe37727417f32a37fba47 reverted:
https://drive.google.com/file/d/1VZPg-9 … sp=sharing linux-6.7-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1kxjflh … sp=sharing linux-headers-6.7-1.1-x86_64.pkg.tar.zst

Will build with proposed fix frostschutz linked next.
Edit:
@seth good catch.
Edit2:
6.7 with https://lore.kernel.org/all/20240118133 … gmail.com/
https://drive.google.com/file/d/1sItbTQ … sp=sharing linux-6.7-1.2-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1apbCMF … sp=sharing linux-headers-6.7-1.2-x86_64.pkg.tar.zst

Last edited by loqs (2024-01-22 22:07:56)

Offline

#48 2024-01-22 23:02:49

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:

6.7 with efa7df3e3bb5da8e6abbe37727417f32a37fba47 reverted:
https://drive.google.com/file/d/1VZPg-9 … sp=sharing linux-6.7-1.1-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1kxjflh … sp=sharing linux-headers-6.7-1.1-x86_64.pkg.tar.zst

Will build with proposed fix frostschutz linked next.
Edit:
@seth good catch.
Edit2:
6.7 with https://lore.kernel.org/all/20240118133 … gmail.com/
https://drive.google.com/file/d/1sItbTQ … sp=sharing linux-6.7-1.2-x86_64.pkg.tar.zst
https://drive.google.com/file/d/1apbCMF … sp=sharing linux-headers-6.7-1.2-x86_64.pkg.tar.zst

linux-6.7-1.1-x86_64.pkg.tar.zst is good, however linux-6.7-1.2-x86_64.pkg.tar.zst is bad!

linux-6.7-1.1-x86_64.pkg.tar.zst

~/ uname -a
Linux Arch 6.7.0-1.1 #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 21:10:14 +0000 x86_64 GNU/Linux
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       727Mi       664Mi        19Mi       610Mi       1.1Gi
Swap:          5.3Gi          0B       5.3Gi
~/ sudo ps_mem                                    
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB +  92.5 KiB = 332.5 KiB	xinit
268.0 KiB +  69.5 KiB = 337.5 KiB	dbus-run-session
428.0 KiB + 367.5 KiB = 795.5 KiB	sh
  1.0 MiB + 179.5 KiB =   1.2 MiB	dbus-broker-launch
  1.3 MiB +  59.5 KiB =   1.3 MiB	dbus-broker
912.0 KiB + 440.5 KiB =   1.3 MiB	startx
  1.0 MiB + 404.5 KiB =   1.4 MiB	at-spi2-registryd
  1.0 MiB + 572.5 KiB =   1.6 MiB	systemd-hostnamed
  1.2 MiB + 622.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 538.5 KiB =   1.9 MiB	login
  1.4 MiB + 495.5 KiB =   1.9 MiB	picom
  1.8 MiB + 138.5 KiB =   1.9 MiB	(sd-pam)
  1.1 MiB + 893.5 KiB =   2.0 MiB	systemd-timesyncd
  1.4 MiB + 671.5 KiB =   2.1 MiB	systemd-logind
  1.7 MiB + 670.5 KiB =   2.4 MiB	dunst
  2.0 MiB + 581.5 KiB =   2.6 MiB	systemd-journald
912.0 KiB +   1.7 MiB =   2.6 MiB	systemd-udevd
  2.6 MiB + 252.5 KiB =   2.8 MiB	xss-lock
  2.6 MiB + 265.5 KiB =   2.9 MiB	xfconfd
  2.1 MiB + 779.5 KiB =   2.9 MiB	pipewire-pulse
  2.6 MiB + 518.5 KiB =   3.1 MiB	polkitd
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
  3.1 MiB + 393.5 KiB =   3.5 MiB	at-spi-bus-launcher
848.0 KiB +   2.7 MiB =   3.5 MiB	udevadm (2)
  4.2 MiB + 456.5 KiB =   4.6 MiB	gvfsd
  3.8 MiB +   1.3 MiB =   5.1 MiB	zsh (2)
  4.9 MiB + 373.5 KiB =   5.3 MiB	gvfsd-fuse
  4.6 MiB +   1.4 MiB =   6.1 MiB	pipewire
  5.2 MiB +   3.9 MiB =   9.1 MiB	systemd (2)
 10.7 MiB +   2.6 MiB =  13.3 MiB	NetworkManager
 15.2 MiB +   7.0 MiB =  22.1 MiB	polybar (3)
 21.1 MiB +   1.6 MiB =  22.7 MiB	i3
 20.2 MiB +   3.4 MiB =  23.6 MiB	wireplumber
 20.8 MiB +   5.4 MiB =  26.2 MiB	xfce4-terminal
 15.1 MiB +  12.0 MiB =  27.1 MiB	kdeconnectd
 20.8 MiB +  11.1 MiB =  31.9 MiB	kdeconnect-indicator
 16.8 MiB +  16.2 MiB =  33.0 MiB	xfce-polkit
 21.9 MiB +  17.3 MiB =  39.2 MiB	xfce4-clipman
 67.1 MiB +  15.2 MiB =  82.3 MiB	Xorg
---------------------------------
                        400.5 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1846980 kB
MemFree:          663812 kB
MemAvailable:    1095404 kB
Buffers:            3172 kB
Cached:           598692 kB
SwapCached:            0 kB
Active:           689660 kB
Inactive:         121788 kB
Active(anon):     229952 kB
Inactive(anon):        0 kB
Active(file):     459708 kB
Inactive(file):   121788 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5538812 kB
SwapFree:        5538812 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               852 kB
Writeback:             0 kB
AnonPages:        201488 kB
Mapped:           206192 kB
Shmem:             20368 kB
KReclaimable:      33052 kB
Slab:             126196 kB
SReclaimable:      33052 kB
SUnreclaim:        93144 kB
KernelStack:        7712 kB
PageTables:         6196 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6462300 kB
Committed_AS:    1314576 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       91972 kB
VmallocChunk:          0 kB
Percpu:            10080 kB
HardwareCorrupted:     0 kB
AnonHugePages:     49152 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      279328 kB
DirectMap2M:     1718272 kB
DirectMap1G:           0 kB

linux-6.7-1.2-x86_64.pkg.tar.zst

~/ uname -a   
Linux Arch 6.7.0-1.2 #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 21:47:50 +0000 x86_64 GNU/Linux
~/ free -h                                        
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       954Mi       520Mi        20Mi       612Mi       889Mi
Swap:          5.4Gi          0B       5.4Gi
~/ sudo ps_mem                                    
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

244.0 KiB +  87.5 KiB = 331.5 KiB	xinit
272.0 KiB +  79.5 KiB = 351.5 KiB	dbus-run-session
428.0 KiB + 399.5 KiB = 827.5 KiB	sh
  1.1 MiB + 162.5 KiB =   1.2 MiB	dbus-broker-launch
848.0 KiB + 467.5 KiB =   1.3 MiB	startx
  1.3 MiB +  61.5 KiB =   1.3 MiB	dbus-broker
  1.2 MiB + 619.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 532.5 KiB =   1.8 MiB	login
  1.4 MiB + 512.5 KiB =   1.9 MiB	picom
  1.8 MiB + 146.5 KiB =   1.9 MiB	(sd-pam)
  1.4 MiB + 747.5 KiB =   2.2 MiB	systemd-logind
928.0 KiB +   1.7 MiB =   2.6 MiB	systemd-udevd
  2.1 MiB + 636.5 KiB =   2.7 MiB	systemd-journald
  1.1 MiB +   2.1 MiB =   3.3 MiB	sudo (2)
852.0 KiB +   2.6 MiB =   3.5 MiB	udevadm (2)
  3.1 MiB + 963.5 KiB =   4.0 MiB	systemd-timesyncd
  3.7 MiB +   1.3 MiB =   5.0 MiB	zsh (2)
  6.6 MiB + 271.5 KiB =   6.8 MiB	xss-lock
  6.1 MiB + 777.5 KiB =   6.9 MiB	pipewire-pulse
  6.7 MiB + 274.5 KiB =   6.9 MiB	xfconfd
  7.0 MiB + 411.5 KiB =   7.4 MiB	at-spi2-registryd
  7.7 MiB + 688.5 KiB =   8.4 MiB	dunst
  8.2 MiB + 486.5 KiB =   8.6 MiB	gvfsd
  8.6 MiB + 516.5 KiB =   9.1 MiB	polkitd
  5.3 MiB +   4.0 MiB =   9.3 MiB	systemd (2)
  9.1 MiB + 401.5 KiB =   9.5 MiB	at-spi-bus-launcher
 10.7 MiB +   1.4 MiB =  12.1 MiB	pipewire
 13.0 MiB + 369.5 KiB =  13.3 MiB	gvfsd-fuse
 14.5 MiB +   2.6 MiB =  17.1 MiB	NetworkManager
 21.5 MiB +   1.6 MiB =  23.0 MiB	i3
 25.0 MiB +   5.2 MiB =  30.3 MiB	xfce4-terminal
 19.4 MiB +  11.9 MiB =  31.3 MiB	kdeconnectd
 30.2 MiB +   3.3 MiB =  33.6 MiB	wireplumber
 22.9 MiB +  11.2 MiB =  34.0 MiB	kdeconnect-indicator
 30.7 MiB +  16.1 MiB =  46.8 MiB	xfce-polkit
 33.3 MiB +  17.1 MiB =  50.4 MiB	xfce4-clipman
 47.1 MiB +   6.8 MiB =  53.9 MiB	polybar (3)
 83.2 MiB +  15.3 MiB =  98.5 MiB	Xorg
---------------------------------
                        553.3 MiB
=================================
~/ cat /proc/meminfo
MemTotal:        1888112 kB
MemFree:          524012 kB
MemAvailable:     911028 kB
Buffers:            3172 kB
Cached:           601284 kB
SwapCached:            0 kB
Active:           868824 kB
Inactive:         123900 kB
Active(anon):     409044 kB
Inactive(anon):        0 kB
Active(file):     459780 kB
Inactive(file):   123900 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5661692 kB
SwapFree:        5661692 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               444 kB
Writeback:             0 kB
AnonPages:        355592 kB
Mapped:           207140 kB
Shmem:             20776 kB
KReclaimable:      33040 kB
Slab:             125752 kB
SReclaimable:      33040 kB
SUnreclaim:        92712 kB
KernelStack:        7728 kB
PageTables:         6696 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6605748 kB
Committed_AS:    1312124 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       92316 kB
VmallocChunk:          0 kB
Percpu:            10176 kB
HardwareCorrupted:     0 kB
AnonHugePages:    172032 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      256992 kB
DirectMap2M:     1785856 kB
DirectMap1G:           0 kB

Last edited by Samueru (2024-01-22 23:05:36)

Offline

#49 2024-01-22 23:17:28

loqs
Member
Registered: 2014-03-06
Posts: 17,581

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

Please try transparent_hugepage=never instead of transparent_hugepage=off with any of the kernels with the issue.  If that still produces the issue please post the output of /proc/meminfo and /proc/cmdline from that boot.
Edit:
https://www.kernel.org/doc/html/latest/ … huge.htmll

Last edited by loqs (2024-01-22 23:20:17)

Offline

#50 2024-01-22 23:29:21

Samueru
Member
Registered: 2023-07-03
Posts: 29

Re: Kernel 6.7 Increased the idle ram usage from 500 to 700 MiB

loqs wrote:

Please try transparent_hugepage=never instead of transparent_hugepage=off with any of the kernels with the issue.  If that still produces the issue please post the output of /proc/meminfo and /proc/cmdline from that boot.
Edit:
https://www.kernel.org/doc/html/latest/ … huge.htmll

It was fixed by using that kernel parameter:

~/ uname -a
Linux Arch 6.7.0-1.2 #1 SMP PREEMPT_DYNAMIC Mon, 22 Jan 2024 21:47:50 +0000 x86_64 GNU/Linux
~/ cat /proc/cmdline
initrd=\intel-ucode.img initrd=\initramfs-linux-fallback.img root=PARTUUID=8033de8f-15af-49ec-938c-90e4b219e2c5 zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs mitigations=off quiet loglevel=2 nowatchdog ipv6.disable=1 mem=4G transparent_hugepage=never
~/ cat /proc/meminfo
MemTotal:        1890156 kB
MemFree:          818696 kB
MemAvailable:    1301028 kB
Buffers:            3168 kB
Cached:           574488 kB
SwapCached:            0 kB
Active:           627788 kB
Inactive:         104108 kB
Active(anon):     175048 kB
Inactive(anon):        0 kB
Active(file):     452740 kB
Inactive(file):   104108 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5667836 kB
SwapFree:        5667836 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               184 kB
Writeback:             0 kB
AnonPages:        154276 kB
Mapped:           207444 kB
Shmem:             20808 kB
KReclaimable:      28796 kB
Slab:             122172 kB
SReclaimable:      28796 kB
SUnreclaim:        93376 kB
KernelStack:        7712 kB
PageTables:         6600 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6612912 kB
Committed_AS:    1331400 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       92356 kB
VmallocChunk:          0 kB
Percpu:            10080 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      248800 kB
DirectMap2M:     1794048 kB
DirectMap1G:           0 kB
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       583Mi       791Mi        20Mi       592Mi       1.2Gi
Swap:          5.4Gi          0B       5.4Gi
~/ sudo ps_mem
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

244.0 KiB +  99.5 KiB = 343.5 KiB	xinit
272.0 KiB +  76.5 KiB = 348.5 KiB	dbus-run-session
436.0 KiB + 363.5 KiB = 799.5 KiB	sh
580.0 KiB + 260.5 KiB = 840.5 KiB	xss-lock
644.0 KiB + 273.5 KiB = 917.5 KiB	xfconfd
  1.0 MiB + 177.5 KiB =   1.2 MiB	dbus-broker-launch
908.0 KiB + 433.5 KiB =   1.3 MiB	startx
  1.3 MiB +  61.5 KiB =   1.3 MiB	dbus-broker
  1.0 MiB + 371.5 KiB =   1.4 MiB	gvfsd-fuse
  1.1 MiB + 420.5 KiB =   1.5 MiB	at-spi2-registryd
  1.2 MiB + 395.5 KiB =   1.5 MiB	at-spi-bus-launcher
  1.2 MiB + 638.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.3 MiB + 544.5 KiB =   1.9 MiB	login
  1.4 MiB + 498.5 KiB =   1.9 MiB	picom
  1.8 MiB + 145.5 KiB =   1.9 MiB	(sd-pam)
  1.1 MiB + 970.5 KiB =   2.0 MiB	systemd-timesyncd
  1.4 MiB + 745.5 KiB =   2.2 MiB	systemd-logind
868.0 KiB +   1.8 MiB =   2.6 MiB	systemd-udevd
  2.2 MiB + 490.5 KiB =   2.7 MiB	gvfsd
  2.1 MiB + 636.5 KiB =   2.7 MiB	systemd-journald
  2.1 MiB + 775.5 KiB =   2.9 MiB	pipewire-pulse
  2.6 MiB + 516.5 KiB =   3.1 MiB	polkitd
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
836.0 KiB +   2.8 MiB =   3.6 MiB	udevadm (2)
  2.8 MiB +   1.5 MiB =   4.3 MiB	dunst
  3.9 MiB +   1.3 MiB =   5.1 MiB	zsh (2)
  4.7 MiB +   1.4 MiB =   6.1 MiB	pipewire
  5.3 MiB +   4.1 MiB =   9.3 MiB	systemd (2)
  8.5 MiB +   2.6 MiB =  11.1 MiB	NetworkManager
  9.2 MiB +   6.8 MiB =  16.0 MiB	polybar (3)
 18.1 MiB +   3.4 MiB =  21.5 MiB	wireplumber
 17.0 MiB +   5.1 MiB =  22.0 MiB	xfce4-terminal
 21.4 MiB +   1.4 MiB =  22.8 MiB	i3
 13.3 MiB +  11.9 MiB =  25.3 MiB	kdeconnectd
 12.7 MiB +  16.3 MiB =  29.0 MiB	xfce-polkit
 18.9 MiB +  11.2 MiB =  30.1 MiB	kdeconnect-indicator
 15.3 MiB +  17.2 MiB =  32.5 MiB	xfce4-clipman
 61.1 MiB +  15.1 MiB =  76.2 MiB	Xorg
---------------------------------
                        355.2 MiB
=================================

If you wonder why I have the mem=4G kernel parameter it is something I did to test the issue originally by creating a lot of memory pressure with the lts kernel vs 6.7 to see if the pc would trash earlier with 6.7 given the increased usage.

Wait, I will test the same hugepage kernel parameter in 6.6 to see if there is a big difference between the two!

Edit: Usage is the same with lts using the same parameters:

~/ uname -a
Linux Arch 6.6.13-1-lts #1 SMP PREEMPT_DYNAMIC Sat, 20 Jan 2024 14:48:01 +0000 x86_64 GNU/Linux
~/ cat /proc/cmdline
initrd=\intel-ucode.img initrd=\initramfs-linux-lts.img root=PARTUUID=8033de8f-15af-49ec-938c-90e4b219e2c5 zswap.enabled=0 rootflags=subvol=@ rw rootfstype=btrfs mitigations=off quiet loglevel=2 nowatchdog ipv6.disable=1 mem=4G transparent_hugepage=never
~/ cat /proc/meminfo
MemTotal:        1847248 kB
MemFree:          787704 kB
MemAvailable:    1273864 kB
Buffers:            3168 kB
Cached:           576212 kB
SwapCached:            0 kB
Active:           629744 kB
Inactive:         104448 kB
Active(anon):     175188 kB
Inactive(anon):        0 kB
Active(file):     454556 kB
Inactive(file):   104448 kB
Unevictable:           0 kB
Mlocked:               0 kB
SwapTotal:       5538812 kB
SwapFree:        5538812 kB
Zswap:                 0 kB
Zswapped:              0 kB
Dirty:               340 kB
Writeback:             0 kB
AnonPages:        155080 kB
Mapped:           207648 kB
Shmem:             20360 kB
KReclaimable:      28732 kB
Slab:             123176 kB
SReclaimable:      28732 kB
SUnreclaim:        94444 kB
KernelStack:        7844 kB
PageTables:         5484 kB
SecPageTables:         0 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     6462436 kB
Committed_AS:    1332588 kB
VmallocTotal:   34359738367 kB
VmallocUsed:       91132 kB
VmallocChunk:          0 kB
Percpu:             9792 kB
HardwareCorrupted:     0 kB
AnonHugePages:         0 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
FileHugePages:         0 kB
FilePmdMapped:         0 kB
CmaTotal:              0 kB
CmaFree:               0 kB
Unaccepted:            0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      224032 kB
DirectMap2M:     1773568 kB
DirectMap1G:           0 kB
~/ free -h
               total        used        free      shared  buff/cache   available
Mem:           1.8Gi       557Mi       773Mi        19Mi       592Mi       1.2Gi
Swap:          5.3Gi          0B       5.3Gi
~/ sudo ps_mem
[sudo] password for samuel: 
 Private  +   Shared  =  RAM used	Program

240.0 KiB +  94.5 KiB = 334.5 KiB	xinit
276.0 KiB +  77.5 KiB = 353.5 KiB	dbus-run-session
424.0 KiB + 366.5 KiB = 790.5 KiB	sh
580.0 KiB + 275.5 KiB = 855.5 KiB	xss-lock
648.0 KiB + 269.5 KiB = 917.5 KiB	xfconfd
  1.0 MiB + 177.5 KiB =   1.2 MiB	dbus-broker-launch
  1.3 MiB +  62.5 KiB =   1.3 MiB	dbus-broker
984.0 KiB + 365.5 KiB =   1.3 MiB	gvfsd-fuse
916.0 KiB + 437.5 KiB =   1.3 MiB	startx
  1.0 MiB + 418.5 KiB =   1.4 MiB	at-spi2-registryd
  1.1 MiB + 396.5 KiB =   1.5 MiB	at-spi-bus-launcher
  1.3 MiB + 537.5 KiB =   1.8 MiB	login
  1.2 MiB + 633.0 KiB =   1.8 MiB	dbus-daemon (2)
  1.4 MiB + 506.5 KiB =   1.9 MiB	picom
  1.8 MiB + 145.5 KiB =   1.9 MiB	(sd-pam)
  1.1 MiB + 967.5 KiB =   2.0 MiB	systemd-timesyncd
  1.4 MiB + 744.5 KiB =   2.1 MiB	systemd-logind
  1.7 MiB + 684.5 KiB =   2.4 MiB	dunst
960.0 KiB +   1.6 MiB =   2.6 MiB	systemd-udevd
  2.2 MiB + 484.5 KiB =   2.7 MiB	gvfsd
  2.1 MiB + 634.5 KiB =   2.7 MiB	systemd-journald
  2.1 MiB + 769.5 KiB =   2.9 MiB	pipewire-pulse
  2.6 MiB + 516.5 KiB =   3.1 MiB	polkitd
  1.1 MiB +   2.1 MiB =   3.2 MiB	sudo (2)
932.0 KiB +   2.4 MiB =   3.3 MiB	udevadm (2)
  3.8 MiB +   1.3 MiB =   5.1 MiB	zsh (2)
  4.7 MiB +   1.4 MiB =   6.1 MiB	pipewire
  5.3 MiB +   4.0 MiB =   9.3 MiB	systemd (2)
  8.5 MiB +   2.6 MiB =  11.1 MiB	NetworkManager
  9.1 MiB +   6.8 MiB =  15.9 MiB	polybar (3)
 18.3 MiB +   3.3 MiB =  21.6 MiB	wireplumber
 21.1 MiB +   1.6 MiB =  22.7 MiB	i3
 17.5 MiB +   5.3 MiB =  22.7 MiB	xfce4-terminal
 13.3 MiB +  11.9 MiB =  25.2 MiB	kdeconnectd
 12.7 MiB +  16.3 MiB =  29.0 MiB	xfce-polkit
 18.9 MiB +  11.2 MiB =  30.1 MiB	kdeconnect-indicator
 15.3 MiB +  17.2 MiB =  32.5 MiB	xfce4-clipman
 61.4 MiB +  15.0 MiB =  76.4 MiB	Xorg
---------------------------------
                        353.4 MiB
=================================

Last edited by Samueru (2024-01-22 23:50:02)

Offline

Board footer

Powered by FluxBB