About the meaning of the two parameters in the/proc/uptime file.

Source: Internet
Author: User
about/proc/uptime The meaning of the two parameters in this file server work

About the meaning of the two parameters in the/proc/uptime file:

[Root@app ~] #cat/proc/uptime
3387048.81 3310821.00

The first parameter is the time (in seconds) that represents the boot from the system to the present:
3,387,048,.81 seconds = 39.2019538194444 days, indicating that this server has been powered on for 39.2019538194444 days continuously

The second parameter is the time (in seconds) that represents the system's idle:
3,310,821 seconds = 38.3196875 days, this machine from the boot to now altogether only 38 days or so nothing dry.

Calculate the idle rate:
3310821.00/3387048.81 = 0.9774943278718207

In other words: its idle rate is 97%

Idle rate does not mean that it does a lot of work, and the server configuration and performance has a great relationship, this server has such a low idle rate, or so high utilization, because its configuration is relatively low.

Idle rate and server configuration has a great relationship, the performance of the server better, the higher the configuration, the faster it processing, configure a high server processing time to less than the configured low server.

From idle time, you can determine whether your server load is too large, see if there is a guide, if the idle time is very small, that your server has been running at full load, and then decide whether you need to upgrade your server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.