Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can basic CPU load be done without installing sysstat package? #3

Open
sberl opened this issue May 14, 2022 · 2 comments
Open

Can basic CPU load be done without installing sysstat package? #3

sberl opened this issue May 14, 2022 · 2 comments

Comments

@sberl
Copy link
Owner

sberl commented May 14, 2022

Can we get basic CPU utilization without needing to install an additional package?
Better instructions in README and in UI on how to install sysstat.

@JonyIvy
Copy link

JonyIvy commented Mar 21, 2023

'top' should be on most systems by default. It shows CPU load, memory utilisation

top -b1 -n 1 -w 150

-b: batch mode, non-interactive
-1: show individual CPU (core) load
-n 1: output status once
-w 150: width of output 150 columns

Optionally, if you don't want to see/parse/discard the list of processes, set a user whose processes are shown and pick a user that usually has no processes running, e.g. '-u sys'

@sberl
Copy link
Owner Author

sberl commented Mar 30, 2023

Seems this can work without the sysstat package.
See https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk65143

Explains how to interpret the output from /proc/stat

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants