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.
That is interesting. I have never heard about that. But probably it is my own problem. And I have never needed that. You can simply calculate it using top (for example). Why do you need it at all?
Keep looking - I see a reference to vtop that seems to do the CPU as aggregated. Lots of other longer established options as well.
Given that they all likely get their data from /proc/stat (I haven't looked at any of the code), should be pretty easy to add/amend the code to suit.
The beauty of open source versus proprietary.
My server has 8 cores with 16GB RAM. I'm looking for command or tool which will provide output similar to windows Task Manager.
I found commands gtop, gotop for RAM, but for CPU usage it is segregated for each core. Is it possible to get a total CPU average.
Thanks for your time.
Windows task manager is a GUI interface. There are plenty of those in the GNU/Linux world. Ksysguard is one example mentioned, there are many others as well. Personally I prefer KDE widgets for the purpose. But that may not be appropriate for a server.
Question is. Do your server have a GUI? And which one?
As above, if you want a gui, it depends a bit on which distro you have, but there are plenty of options.
Search your repos for '*system-monitor*' - prob first part of the name will inc the name of your desktop SW (in my case gnome or mate)
My server has 8 cores with 16GB RAM. I'm looking for command or tool which will provide output similar to windows Task Manager.
I found commands gtop, gotop for RAM, but for CPU usage it is segregated for each core. Is it possible to get a total CPU average.
I have no idea how does Windows Task Manager work, but here are three options to consider for getting a total CPU average for a multicore system:
1. conky
Quote from its manpage:
Quote:
cpu (cpuN)
CPU usage in percents. For SMP machines, the CPU number can be
provided as an argument. ${cpu cpu0} is the total usage, and
${cpu cpuX} (X >= 1) are individual CPUs.
You will have to fiddle with its config a bit and either run conky in GUI mode so it paints on your desktop, or make it produce text output that you can pipe to another GUI tool
2. gkrellm
Perhaps not trendy anymore, but I've used it for many years and it served me well.
F1 to open settings, then Builtins -> CPU, and under the SMP Charts Select tick the Composite CPU checkbox. I believe you can even collect such kind of data on the server using gkrellmd and have it displayed on your remote workstation by grellm that connects to the server, if you need that.
3. htop
By default htop will show CPU load per core. After you run it for the first time, it creates a default config file in ~/.config/htop/htoprc
Open that file in a text editor and find the line
Code:
left_meters=AllCPUs Memory Swap
If you don't need the per-core load graphs, you can replace "AllCPUs" there with "CPU"
If you'd like to keep the per-core load graphs as well, but also want to see a total CPU average load, you could go with a setting like
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.