aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux/misc.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/linux/misc.md b/linux/misc.md
index 34a8ae07..4518e9ec 100644
--- a/linux/misc.md
+++ b/linux/misc.md
@@ -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
+```