Percental CPU scaled load average

alias sysload='printf "System load (1m/5m/15m): "; for l in 1 2 3 ; do printf "%.1f%s" "$(( $(cat /proc/loadavg | cut -f $l -d " ") * 100 / $(nproc) ))" "% "; done; printf "\n"'
This “sysload” alias converts the load average to percentages and divides them by the number of CPUs/cores. It may provide a more intuitive guesstimate of how much work the server is doing.
Sample Output
$ sysload

System load (1m/5m/15m): 31,5% 30,0% 29,8%

What Others Think

Thanks for the blog loaded with so many information. Stopping by your blog helped me to get what I was looking for. 123 movies
hiknigarde · 3 weeks and 4 days ago
Too complicated. This should be much easier: awk -v N="$( nproc )" '{ printf "System load (1m/5m/15m): "; for ( p = 1; p < 4; p++ ) { printf " %.1f%%", $p * 100 / N } }' /proc/loadavg
siberian · 3 weeks and 3 days ago
I am sorry for doubling my comment. I decided to extend the it with the more intuitive awk -v N="$( nproc )" '{ printf "System load (1m/5m/15m):"; for ( p = 1; p <= 3; p++ ) { printf " %.1f%%", $p * 100 / N } print "" }' /proc/loadavg
siberian · 3 weeks and 3 days ago
Useless use of §cat§.
rautamiekka · 3 weeks and 3 days ago
I¡¦ve read several just right stuff here. Certainly price bookmarking for revisiting. I surprise how much attempt you place to create the sort of wonderful informative web site. healthcare products
muneerahmed · 3 weeks and 2 days ago
This article is really amazing thanks for posting this content, Keep sharing this kind of post. targetehr
Rodriguez556 · 3 weeks and 1 day ago
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. https://surveyornewcastle.com.au/
johnlead · 3 weeks ago
I definitely enjoying every little bit of it. It is a great website and nice share. I want to thank you. Good job! You guys do a great blog, and have some great contents. Keep up the good work. https://buildinginspectorsnewcastle.com.au/
johnlead · 3 weeks ago
thanks for share.
bailey23 · 2 weeks and 6 days ago
This could be a good reference. https://www.svgchevy.com/
brielleluna · 2 weeks and 6 days ago
This could be a good reference. https://www.svgchevy.com/
brielleluna · 2 weeks and 6 days ago
Great content! Check out the best http://www.randwickbricklayers.com/">bricklayers in Randwick where they provide the best bricklaying solutions in Sydney's Eastern Suburbs!
ElDoradeRodrigo · 2 weeks and 5 days ago
Whoa! I just can't believe I found this site hearing aids rochester ny
aegyjingoo · 2 weeks and 5 days ago
https://www.quickpayportal.xyz/ pay medical bills here.
kabirsingh · 2 weeks and 3 days ago
Super Bazar Online Shopping in Pakistan Best Deals available at discounted rates Cah on delivery Service in Karachi, Lahore, Rawalpindi, across Pakistan Online Shopping in Pakistan
KayGasaway · 2 weeks and 3 days ago
I am attempting to find things to enhance my web site!I suppose its ok to use a few of your commands!! Costco Eureka
muneerahmed · 2 weeks and 2 days ago
[url=https://www.greensocialteam.com/voipphone]virtual phone[/url] on the thought of his buddy zhuge qing, zhang chulan and feng baobao came to resolve the case with the help of "anywhere" business enterprise. how does zhang chulan display his competencies to assist the king trap the black hand backstage? what wonderful overall performance will zhuge qing, wang ye and others have? who're the people who covet the "8 wonders"? "under one guy-becoming a member of the world" may be introducedsoon!
yamax21 · 2 weeks and 1 day ago
man ls
RainPage · 1 week and 6 days ago
Click
janejones4237 · 1 week and 6 days ago
Want to get the best academic grade and also want to get the no.1 position in your class? If yes so you are at the right place because we have experience of years and also known through academic queries of [url=https://instaresearch.co.uk/services/tefl-assignment-help/]tefl assignment help[/url]. In this way, we have completed 1000+ orders to our valuable students also win the hearts of our clients. Likewise, we also give them happiness by providing the best discount offers which they deserve.
Dolept · 1 week ago
Want to get the best academic grade and also want to get the no.1 position in your class? If yes so you are at the right place because we have experience of years and also known through academic queries of tefl assignment help. In this way, we have completed 1000+ orders to our valuable students also win the hearts of our clients. Likewise, we also give them happiness by providing the best discount offers which they deserve.
Dolept · 1 week ago
Thanks for the command! I really am looking for this command and this will help me. Thank you! concrete driveway contractors little rock ar
johnrico022117 · 1 week ago
Hey! I was just exploring and came across your site. The articles and blogs were quite interesting to read. I am from technological field. If someone is interested to read about Antivirus software, then do visit my site mcafee.com/activate
alicemartin · 6 days ago
Wow, I love your post! This is just the perfect time to share this https://oregonizedaccounts.com. Thanks a bunch!
jackslesly19 · 5 days ago
Nice command! I am thanking you for this is a great help for us who don't know the command. Thank you for sharing this! https://www.concretecontractorscincinnati.com
chrisjohn2211 · 5 days ago
This is a great post - clear and easy to understand. I am also catching a shark which has given me a new paleo. We would like to share something with you with some new information like this. http://fakeinstadm.iwopop.com">how to spot fake or real Instagram DMs .
VeronicaGaul · 21 hours ago
This is definitely a useful content, The command was great and fine to me. Thanks for sharing! Keep spreading! Ryan | scottsdaleappliance.repair
vassist960 · 4 hours ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: