From 45072b9f987d91cda4ea1ea3eb710509edf1a2ca Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 21 Aug 2025 12:35:26 +0200 Subject: [PATCH] Add memory usage queries --- linux/misc.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/linux/misc.md b/linux/misc.md index 34a8ae0..4518e9e 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 +``` -- 2.47.3