From: Alex Date: Thu, 21 Aug 2025 10:35:26 +0000 (+0200) Subject: Add memory usage queries X-Git-Url: https://xn--ix-yja.es/gitweb/?a=commitdiff_plain;h=45072b9f987d91cda4ea1ea3eb710509edf1a2ca;p=alex.git Add memory usage queries --- 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 +```