]> xn--ix-yja.es Git - alex.git/commitdiff
Add memory usage queries
authorAlex <alex.corcoles@veecle.io>
Thu, 21 Aug 2025 10:35:26 +0000 (12:35 +0200)
committeralexpdp7 <alex@corcoles.net>
Thu, 21 Aug 2025 10:36:59 +0000 (12:36 +0200)
linux/misc.md

index 34a8ae075fbaa0561ed658fbf82ecc23f73bd542..4518e9ec7f3dc6b95b578a911f5125ff7d592a9f 100644 (file)
@@ -11,3 +11,23 @@ You need the SFTP server program on your local machine (on Debian, the `openssh-
 ```
 aptitude search '~S ~i !~ODebian'
 ```
+
+## Memory usage queries
+
+### systemd
+
+```
+systemd-cgtop -m
+```
+
+Drill down with:
+
+```
+systemd-cgtop -m user.slice/user-1000.slice
+```
+
+### smem
+
+```
+sudo smem -P beam.smp -kta
+```