From 8fb8aca8fa89a88c48f75addae7b2722f675671d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Fri, 12 Jun 2020 17:17:08 +0300 Subject: [PATCH] Feat: Add `cgmem_which` Show in what memory control group the current shell is. --- bin/cgmem_which | 2 ++ 1 file changed, 2 insertions(+) create mode 100755 bin/cgmem_which diff --git a/bin/cgmem_which b/bin/cgmem_which new file mode 100755 index 0000000..81ef03f --- /dev/null +++ b/bin/cgmem_which @@ -0,0 +1,2 @@ +#! /bin/sh +grep -Flw $$ /sys/fs/cgroup/*/tasks | cut -d/ -f5 -- 2.39.5