Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7067519
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:12:43+00:00 2026-05-28T05:12:43+00:00

On a linux system, your standard uptime command returns the following: 6.46, 6.00, 4.51

  • 0

On a linux system, your standard uptime command returns the following:

6.46, 6.00, 4.51

As most of you will probably know, these correspond to 1, 5 and 15 minute load averages.

I was wondering if it were possible to either pull from somewhere ( /proc/ … ? ) or manually parse ( ps aux? ) out a more real time snapshot of the systems load average?

Can this be parsed / pulled from anywhere?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:12:43+00:00Added an answer on May 28, 2026 at 5:12 am

    You could watch /proc/uptime, which contains the cpu time spent doing something vs. total time. By monitoring this repeatedly, you can effectively acquire samples for any EWMA window of your choosing.
    Or, if you like a challenge, you can obtain old_loadavg_value and new_loadavg_value from /proc/loadavg and solve the linear system

    new_loadavg1_value = alpha_1 * old_loadavg1_value + (1-alpha_1) * new_sample
    new_loadavg5_value = alpha_5 * old_loadavg5_value + (1-alpha_5) * new_sample
    new_loadavg15_value = alpha_15 * old_loadavg15_value + (1-alpha_15) * new_sample
    

    for new_sample, and then do the calculation forwards again with an alpha reflecting your desired window.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Notice these two RedHat Linux system configuration settings: $ getconf GNU_LIBC_VERSION glibc 2.3.4 $
I need to know about Epoll On linux System. Could you recommend manual or
Does your software handle newline characters from other systems? Linux/BSD linefeed ^J 10 x0A
Python for Unix and Linux System Administration is aimed at sysadmins. Any other favorites
I just installed a linux system (Kubuntu) and was wondering if there is a
In an embedded Linux system, I'm trying to show a shutdown notification that should
On our Linux system we use named pipes for interprocess communication (a producer and
I'm on a foreign linux system and need to determine the user that apache
So I have a daemon running on a Linux system, and I want to
I've got an unusual situation: I'm using a Linux system in an embedded situation

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.