ThothK

Memory Consumption on a Pine64 Quartz64B running Plebian.

Jun 16th, 2023 (edited)
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.60 KB | None | 0 0
  1. I am running Plebian on a Pine64 Quart64B.
  2. About every three days it runs out of memory and has to be restarted.
  3. The heartbeat LED indicates a trouble state by flashing about twice a second.
  4. The Device does not get an IP Address from the router for the ethernet interface.
  5. troubleshooting the memory issue:
  6.  
  7. pleb@Quartz64B1:~$ find /usr/lib/systemd /etc/systemd /run/systemd -type l \( -ipath "*target.wants*timer" -o -ipath "*target.wants*service" \) -printf '%f\n' | sort -t. -k2 | uniq
  8. find: '/run/systemd/resolve/netif': Permission denied
  9. find: '/run/systemd/propagate': Permission denied
  10. find: '/run/systemd/unit-root': Permission denied
  11. find: '/run/systemd/inaccessible/dir': Permission denied
  12. ModemManager.service
  13. NetworkManager-wait-online.service
  14. NetworkManager.service
  15. alsa-restore.service
  16. alsa-state.service
  17. apparmor.service
  18. bluetooth.service
  19. console-setup.service
  20. cron.service
  21. dbus.service
  22. e2scrub_reap.service
  23. getty-static.service
  24. keyboard-setup.service
  25. kmod-static-nodes.service
  26. networking.service
  27. regen-openssh-keys.service
  28. ssh-agent.service
  29. ssh.service
  30. systemd-binfmt.service
  31. systemd-firstboot.service
  32. systemd-fsck-root.service
  33. systemd-journal-flush.service
  34. systemd-journald.service
  35. systemd-logind.service
  36. systemd-machine-id-commit.service
  37. systemd-modules-load.service
  38. systemd-pcrphase-initrd.service
  39. systemd-pcrphase-sysinit.service
  40. systemd-pcrphase.service
  41. systemd-pstore.service
  42. systemd-random-seed.service
  43. systemd-remount-fs.service
  44. systemd-repart.service
  45. systemd-resolved.service
  46. systemd-sysctl.service
  47. systemd-sysusers.service
  48. systemd-timesyncd.service
  49. systemd-tmpfiles-setup-dev.service
  50. systemd-tmpfiles-setup.service
  51. systemd-udev-trigger.service
  52. systemd-udevd.service
  53. systemd-update-utmp-runlevel.service
  54. systemd-update-utmp.service
  55. systemd-user-sessions.service
  56. wpa_supplicant.service
  57. apt-daily-upgrade.timer
  58. apt-daily.timer
  59. dpkg-db-backup.timer
  60. e2scrub_all.timer
  61. fstrim.timer
  62. logrotate.timer
  63. man-db.timer
  64. systemd-tmpfiles-clean.timer
  65.  
  66.  
  67. pleb@Quartz64B1:~$ uname -a
  68. Linux Quartz64B1 6.1.0-9-arm64 #1 SMP Debian 6.1.27-1 (2023-05-08) aarch64 GNU/Linux
  69. pleb@Quartz64B1:~$ date; uptime; uname -a; ip -br address;
  70. Fri Jun 16 17:39:10 UTC 2023
  71. 17:39:10 up 1 day, 1:38, 1 user, load average: 0.00, 0.00, 0.00
  72. Linux Quartz64B1 6.1.0-9-arm64 #1 SMP Debian 6.1.27-1 (2023-05-08) aarch64 GNU/Linux
  73. lo UNKNOWN 127.0.0.1/8 ::1/128
  74. end0 DOWN
  75. wlan0 UP 192.168.125.143/24 fe80::dfdb:c3ec:ee4f:891/64
  76.  
  77.  
  78. nmtui:
  79. Could not activate connection:
  80. Activation failed: The device could
  81. not be readied for configuration
  82.  
  83.  
  84. DMesg:
  85. [ 5.739822] rk_gmac-dwmac fe010000.ethernet: IRQ eth_lpi not found
  86. ...
  87. [ 5.741635] rk_gmac-dwmac fe010000.ethernet: phy regulator is not available yet, deferred probing
  88. ...
  89. [ 29.430111] rk_gmac-dwmac fe010000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
  90. [ 29.432291] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  91. [ 29.433942] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  92. ...
  93. [ 30.065007] rk_gmac-dwmac fe010000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
  94. ... sequence repeats four times ...
  95. [ 30.147359] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  96.  
  97.  
  98. pleb@Quartz64B1:~$ lsinitramfs -l /boot/initrd.img-6.1.0-9-arm64 | grep -iE 'fixed|mmioreg'
  99. -rw-r--r-- 1 root root 14939 May 8 20:16 usr/lib/modules/6.1.0-9-arm64/kernel/drivers/net/mdio/mdio-mux-mmioreg.ko
  100. -rw-r--r-- 1 root root 18011 May 8 20:16 usr/lib/modules/6.1.0-9-arm64/kernel/drivers/net/phy/fixed_phy.ko
  101. -rw-r--r-- 1 root root 16843 May 8 20:16 usr/lib/modules/6.1.0-9-arm64/kernel/drivers/regulator/fixed.ko
  102.  
  103.  
  104. pleb@Quartz64B1:~$ sudo dmesg --level err,warn
  105. [87627.446961] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  106. [87627.448724] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  107. [87627.465688] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  108. [87627.467138] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  109. [87627.482714] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  110. [87627.484384] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  111. [87627.500401] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  112. [87627.501935] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  113.  
  114. 300 Seconds Later
  115. [87927.437689] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  116. [87927.439463] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  117. [87927.459278] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  118. [87927.460743] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  119. [87927.475062] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  120. [87927.476612] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  121. [87927.491711] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  122. [87927.493162] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  123.  
  124. 300 Seconds Later
  125. [88227.429480] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  126. [88227.431234] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  127. [88227.452670] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  128. [88227.454119] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  129. [88227.469443] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  130. [88227.470945] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  131. [88227.486382] rk_gmac-dwmac fe010000.ethernet end0: validation of with support 00000000,00000000,00006000 and advertisement 00000000,00000000,00000000 failed: -EINVAL
  132. [88227.488044] rk_gmac-dwmac fe010000.ethernet end0: __stmmac_open: Cannot attach to PHY (error: -22)
  133.  
  134. The above repeats every 300 seconds.
  135.  
  136.  
  137. pleb@Quartz64B1:~$ lsmod
  138. Module Size Used by
  139. qrtr 40960 4
  140. algif_hash 16384 1
  141. algif_skcipher 16384 1
  142. af_alg 24576 6 algif_hash,algif_skcipher
  143. bnep 28672 2
  144. hci_uart 139264 0
  145. btqca 24576 1 hci_uart
  146. btrtl 24576 1 hci_uart
  147. btbcm 24576 1 hci_uart
  148. btintel 40960 1 hci_uart
  149. btsdio 20480 0
  150. bluetooth 745472 30 btrtl,btqca,btsdio,btintel,hci_uart,btbcm,bnep
  151. jitterentropy_rng 20480 1
  152. sha512_generic 16384 0
  153. sha512_arm64 20480 1
  154. aes_neon_bs 24576 0
  155. aes_neon_blk 28672 1 aes_neon_bs
  156. evdev 28672 2
  157. aes_ce_blk 32768 4
  158. snd_soc_hdmi_codec 24576 1
  159. aes_ce_cipher 16384 1 aes_ce_blk
  160. drbg 40960 1
  161. polyval_ce 16384 0
  162. polyval_generic 16384 1 polyval_ce
  163. ansi_cprng 16384 0
  164. ghash_ce 20480 0
  165. gf128mul 16384 2 polyval_generic,ghash_ce
  166. sha2_ce 16384 0
  167. rockchip_saradc 24576 0
  168. industrialio_triggered_buffer 16384 1 rockchip_saradc
  169. brcmfmac 299008 0
  170. kfifo_buf 16384 1 industrialio_triggered_buffer
  171. ofpart 20480 0
  172. sha256_arm64 24576 1 sha2_ce
  173. sha1_ce 16384 0
  174. industrialio 77824 3 industrialio_triggered_buffer,kfifo_buf,rockchip_saradc
  175. ecdh_generic 16384 2 bluetooth
  176. brcmutil 16384 1 brcmfmac
  177. ecc 32768 1 ecdh_generic
  178. snd_soc_simple_card 24576 0
  179. cfg80211 782336 1 brcmfmac
  180. snd_soc_simple_card_utils 24576 1 snd_soc_simple_card
  181. display_connector 20480 0
  182. rockchip_thermal 28672 0
  183. leds_gpio 16384 0
  184. spi_nor 94208 0
  185. snd_soc_rk817 45056 1
  186. snd_soc_rockchip_i2s_tdm 32768 4
  187. rfkill 36864 6 bluetooth,cfg80211
  188. hantro_vpu 139264 0
  189. v4l2_vp9 24576 1 hantro_vpu
  190. governor_simpleondemand 16384 0
  191. mtd 69632 3 spi_nor,ofpart
  192. snd_soc_core 208896 5 snd_soc_rockchip_i2s_tdm,snd_soc_hdmi_codec,snd_soc_rk817,snd_soc_simple_card_utils,snd_soc_simple_card
  193. v4l2_h264 20480 1 hantro_vpu
  194. videobuf2_dma_contig 24576 1 hantro_vpu
  195. snd_pcm_dmaengine 16384 1 snd_soc_core
  196. v4l2_mem2mem 36864 1 hantro_vpu
  197. snd_pcm 114688 4 snd_soc_hdmi_codec,snd_soc_simple_card_utils,snd_soc_core,snd_pcm_dmaengine
  198. videobuf2_memops 20480 1 videobuf2_dma_contig
  199. videobuf2_v4l2 24576 2 hantro_vpu,v4l2_mem2mem
  200. snd_timer 40960 1 snd_pcm
  201. rk805_pwrkey 16384 0
  202. snd 98304 4 snd_soc_hdmi_codec,snd_timer,snd_soc_core,snd_pcm
  203. dw_wdt 16384 0
  204. videobuf2_common 53248 5 videobuf2_dma_contig,videobuf2_v4l2,hantro_vpu,v4l2_mem2mem,videobuf2_memops
  205. soundcore 16384 1 snd
  206. panfrost 69632 0
  207. dw_hdmi_cec 16384 0
  208. dw_hdmi_i2s_audio 16384 0
  209. videodev 225280 4 videobuf2_v4l2,hantro_vpu,videobuf2_common,v4l2_mem2mem
  210. gpu_sched 36864 1 panfrost
  211. drm_shmem_helper 20480 1 panfrost
  212. mc 57344 5 videodev,videobuf2_v4l2,hantro_vpu,videobuf2_common,v4l2_mem2mem
  213. cpufreq_dt 20480 0
  214. loop 36864 0
  215. fuse 135168 1
  216. efi_pstore 16384 0
  217. dm_mod 139264 0
  218. dax 32768 1 dm_mod
  219. configfs 49152 1
  220. ip_tables 32768 0
  221. x_tables 36864 1 ip_tables
  222. autofs4 45056 2
  223. ext4 765952 1
  224. crc16 16384 2 bluetooth,ext4
  225. mbcache 20480 1 ext4
  226. jbd2 139264 1 ext4
  227. crc32c_generic 16384 2
  228. dwmac_rk 28672 0
  229. xhci_plat_hcd 24576 0
  230. stmmac_platform 24576 1 dwmac_rk
  231. xhci_hcd 258048 1 xhci_plat_hcd
  232. stmmac 237568 2 stmmac_platform,dwmac_rk
  233. rk808_regulator 40960 21
  234. pcs_xpcs 20480 1 stmmac
  235. fan53555 16384 1
  236. phylink 45056 2 stmmac,pcs_xpcs
  237. rockchipdrm 147456 0
  238. crct10dif_ce 16384 0
  239. dw_hdmi 49152 2 dw_hdmi_i2s_audio,rockchipdrm
  240. of_mdio 20480 2 stmmac_platform,stmmac
  241. crct10dif_common 16384 1 crct10dif_ce
  242. cec 45056 2 dw_hdmi_cec,dw_hdmi
  243. pl330 36864 3
  244. sdhci_of_dwcmshc 20480 0
  245. fixed 20480 27
  246. sdhci_pltfm 16384 1 sdhci_of_dwcmshc
  247. ohci_platform 16384 0
  248. rc_core 53248 2 cec
  249. dw_mmc_rockchip 20480 0
  250. fixed_phy 16384 1 of_mdio
  251. dw_mmc_pltfm 16384 1 dw_mmc_rockchip
  252. ohci_hcd 53248 1 ohci_platform
  253. dw_mmc 45056 2 dw_mmc_pltfm,dw_mmc_rockchip
  254. dw_mipi_dsi 20480 1 rockchipdrm
  255. fwnode_mdio 20480 1 of_mdio
  256. sdhci 69632 2 sdhci_pltfm,sdhci_of_dwcmshc
  257. phy_rockchip_naneng_combphy 20480 3
  258. spi_rockchip_sfc 20480 0
  259. phy_rockchip_inno_usb2 45056 6
  260. analogix_dp 49152 1 rockchipdrm
  261. ehci_platform 20480 0
  262. libphy 98304 6 fwnode_mdio,of_mdio,stmmac,fixed_phy,phylink,pcs_xpcs
  263. ehci_hcd 90112 1 ehci_platform
  264. drm_display_helper 118784 3 rockchipdrm,dw_hdmi,analogix_dp
  265. ptp 32768 1 stmmac
  266. usbcore 266240 7 ohci_platform,xhci_hcd,ohci_hcd,ehci_platform,ehci_hcd,brcmfmac,xhci_plat_hcd
  267. pps_core 24576 1 ptp
  268. drm_dma_helper 16384 1 rockchipdrm
  269. i2c_rk3x 24576 0
  270. drm_kms_helper 139264 8 dw_mipi_dsi,drm_dma_helper,display_connector,drm_display_helper,rockchipdrm,dw_hdmi,analogix_dp
  271. dwc3 159744 0
  272. drm 442368 12 gpu_sched,drm_kms_helper,dw_mipi_dsi,drm_dma_helper,display_connector,drm_shmem_helper,drm_display_helper,rockchipdrm,dw_hdmi,panfrost,analogix_dp
  273. io_domain 24576 0
  274. udc_core 57344 1 dwc3
  275. roles 16384 1 dwc3
  276. ulpi 20480 1 dwc3
  277. usb_common 16384 10 ohci_platform,xhci_hcd,ohci_hcd,ehci_platform,phy_rockchip_inno_usb2,usbcore,ehci_hcd,xhci_plat_hcd,dwc3,udc_core
  278.  
  279.  
Advertisement
Add Comment
Please, Sign In to add comment