How do I find username that in total (i.e sum for all processes) uses the most CPU time?
Also I want to find the total amount of memory consumed by running processes of that user and output processes of that user which use > 50
percent of CPU time.
I don't really know how to parse ps
in order to be able to maintain the sum for each user.
DefaultCPUAccounting=yes
in/etc/systemd/system.conf
, thensystemd-cgtop
should do it. Quite a lot of assumptions, so not really an answer...