Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Give htop a try - it shows services and memory used on my box. Can't speak for whether it shows this data in distros using systemd because I use runit.
Please note that for samba systemd-cgtop show memory usage of 1.7mb, whereas ps show the usage of nearly 30mb. Also, both systemd-cgtop and pidof smbd shows same 4 tasks. But in pf command, only 3 tasks are shown, PID 971, in this case, is missing.
How come there is a difference. Appreciate if someone explains why.
I don't know the answer to your last question about the missing pid (although I note that the -C wants process names, not pids, so I don't understand how it works at all... -p wants a pidlist), but isn't the ps total shown nearly 30Kb -- not 30Mb???
I don't know the answer to your last question about the missing pid (although I note that the -C wants process names, not pids, so I don't understand how it works at all... -p wants a pidlist), but isn't the ps total shown nearly 30Kb -- not 30Mb???
You're right I should have used -p. For some good reason, Its now showing correctly. And I think its mb not kb.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.