Important! This is an automatic machine translated page. If you can read english, you should Click Here to read the original English version of the article.

Get CPU / System Load Average on Ubuntu Linux Dapatkan CPU / System Load Average pada Ubuntu Linux

Ubuntu linux has a rich set of commands for getting system info. Ubuntu linux memiliki seperangkat perintah kaya untuk mendapatkan info sistem. One of the useful pieces of information that a system administrator might need is to know what the overall system load on a server is. Salah satu informasi yang berguna, seorang sistem administrator yang mungkin perlu untuk mengetahui apa sistem keseluruhan beban pada server.

There are a couple of ways to get this information, which may or may not be enabled on your system. Ada beberapa cara untuk mendapatkan informasi ini, yang mungkin atau mungkin tidak dapat diaktifkan pada sistem Anda. It's useful to know more than one way to get the uptime information in case the commands are disabled on your shared hosting server. Ini berguna untuk mengetahui lebih dari satu cara untuk mendapatkan informasi uptime kasus perintah nonaktif pada server hosting bersama Anda.

uptime uptime

The uptime command gives information on system load averages for the past 1, 5, and 15 minutes: Perintah uptime memberikan informasi mengenai rata-rata load sistem selama 1, 5, dan 15 menit:

Example: Contoh:

[root@ubuntu geek]# uptime [root @ Ubuntu geek] # uptime
05:59:07 up 87 days, 13:13, 1 user, load average: 0.00, 0.00, 0.39 05:59:07 naik 87 hari, 13:13, 1 user, load average: 0.00, 0,00, 0.39

w w

The w command shows who is logged on and what they are doing, including system load averages for the past 1, 5, and 15 minutes. Perintah w menunjukkan siapa yang login dan apa yang mereka lakukan, termasuk rata-rata load sistem selama 1, 5, dan 15 menit.

[root@ubuntu geek]# uptime [root @ Ubuntu geek] # uptime
05:59:56 up 87 days, 13:13, 1 user, load average: 0.00, 0.00, 0.39 05:59:56 naik 87 hari, 13:13, 1 user, load average: 0.00, 0,00, 0.39
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT USER TTY FROM LOGIN @ IDLE WHAT JCPU PCPU
geek pts/0 192.168.1.115 6:31pm 0.00s 0.62s 0.03s /usr/sbin/sshd geek Poin / 0 192.168.1.115 6:31 0.00s 0.62s 0.03s / usr / sbin / sshd

/proc/loadavg / proc / loadavg

The /proc/loadavg file contains information on the system load. / Proc / loadavg File ini berisi informasi tentang sistem beban. Most likely the uptime/w commands utilize this information. Kemungkinan besar uptime / w perintah memanfaatkan informasi ini. The first 3 values contain system load averages for the past 1, 5, and 15 minutes. 3 pertama load sistem mengandung nilai-nilai rata-rata selama 1, 5, dan 15 menit.

[root@ubuntu geek]# cat /proc/loadavg [root @ Ubuntu geek] # cat / proc / loadavg
0.00 0.00 0.39 1/49 15352 0,00 0,00 0,39 1 / 49 15352

There are probably some more commands, but these are the ones off the top of my head that I know of. Mungkin ada beberapa perintah, tetapi ini adalah orang-orang dari atas kepalaku yang aku tahu.

This article was originally written on 11/28/06 Tagged with: Artikel ini awalnya ditulis pada 11/28/06 Tagged with: Ubuntu Ubuntu , , Ubuntu Tips & Tweaks Ubuntu Tips & Tweaks

Daily Email Updates Harian Email Pembaharuan

You can get our how-to articles in your inbox each day for free. Anda bisa mendapatkan kita bagaimana-untuk artikel dalam kotak masuk Anda setiap hari secara gratis. Just enter your name and email below: Cukup masukkan nama dan email Anda di bawah ini:


Name: Nama:
Email: Email:

Comments (5) Komentar (5)

  1. netking netking

    there's also the top command juga ada perintah atas ;-)

  2. oliver oliver

    Hi, Hai,
    do you know how to get the load on each processor on a server. kau tahu bagaimana mendapatkan beban pada masing-masing prosesor pada server. Not the global load but the specific one ? Bukan beban global tetapi khusus satu?
    thx for the answer thx jawaban

  3. Steve Steve

    I know top can give you the usage for each core. Aku tahu atas dapat memberikan pemakaian untuk setiap inti. I'm not sure if it does it out of the box, or if there's any special configuration required. Saya tidak yakin apakah itu tidak keluar dari kotak, atau apakah ada konfigurasi khusus yang diperlukan.

    1787 processes: 1782 sleeping, 2 running, 3 zombie, 0 stopped 1787 proses: 1782 tidur, 2 lari, 3 zombie, 0 berhenti
    CPU0 states: 7.0% user 5.1% system 0.0% nice 0.0% iowait 87.0% idle CPU0 menyatakan: 7.0% 5.1% pengguna sistem 0,0% bagus 0,0% iowait 87,0% idle
    CPU1 states: 18.1% user 1.0% system 0.0% nice 0.0% iowait 80.0% idle CPU1 menyatakan: 18,1% pengguna 1,0% sistem 0,0% bagus 0,0% iowait 80.0% idle
    CPU2 states: 33.1% user 0.1% system 0.0% nice 0.0% iowait 65.0% idle CPU2 menyatakan: 33,1% 0,1% pengguna sistem 0,0% bagus 0,0% iowait 65,0% idle
    CPU3 states: 40.0% user 2.0% system 0.0% nice 0.0% iowait 57.0% idle CPU3 menyatakan: 40.0% pengguna 2,0% sistem 0,0% bagus 0,0% iowait 57,0% idle
    CPU4 states: 7.1% user 0.1% system 0.0% nice 3.0% iowait 88.0% idle CPU4 menyatakan: 7,1% pengguna 0,1% sistem 0,0% bagus 3.0% iowait 88,0% idle
    CPU5 states: 7.1% user 29.0% system 0.0% nice 0.0% iowait 62.1% idle CPU5 menyatakan: 7,1% pengguna 29,0% sistem 0,0% bagus 0,0% iowait 62.1% idle
    CPU6 states: 25.1% user 1.0% system 0.0% nice 0.0% iowait 72.1% idle CPU6 menyatakan: 25.1% 1,0% pengguna sistem 0,0% bagus 0,0% iowait 72,1% idle
    CPU7 states: 16.0% user 0.1% system 0.0% nice 0.0% iowait 83.0% idle CPU7 menyatakan: 16,0% pengguna 0,1% sistem 0.0% bagus 0,0% iowait 83,0% idle

    For example this would be shown right at the top for a multi-core system. Sebagai contoh ini akan ditampilkan tepat di atas untuk multi-inti sistem.

  4. Bob Bob

    You can use the grep command to monitor the CPU load average: Anda dapat menggunakan perintah grep untuk memonitor beban CPU rata-rata:

    top -b | grep -2 “load average” top-b | grep -2 "load average"

  5. brainextender brainextender

    I'ma little curious how to get the load of a single core from the /proc file system? I'ma sedikit penasaran bagaimana mendapatkan beban dari satu inti dari / proc file system?


Leave a Comment Tinggalkan Komentar




Leave your Meninggalkan friendly ramah comment here. komentar di sini.

If you have a computer help question, Jika Anda memiliki pertanyaan bantuan komputer, click here to leave it on the forums klik di sini untuk meninggalkannya di forum instead. selain.

Note: Your comment may not show up immediately on the site. Catatan: Komentar anda mungkin tidak muncul segera di situs.

Our Friends Our Friends
Getting Started Persiapan


About How-To Geek Tentang How-To Geek
What Is That Process? Apa Proses Itu?
svchost.exe svchost.exe
jusched.exe jusched.exe
dwm.exe dwm.exe
ctfmon.exe ctfmon.exe
wmpnetwk.exe wmpnetwk.exe
mDNSResponder.exe mDNSResponder.exe
wmpnscfg.exe wmpnscfg.exe
rundll32.exe rundll32.exe
wfcrun32.exe wfcrun32.exe
Ipoint.exe Ipoint.exe
Itype.exe Itype.exe
Wfica32.exe Wfica32.exe
Mobsync.exe Mobsync.exe
conhost.exe conhost.exe
Dpupdchk.exe Dpupdchk.exe Adobe_Updater.exe Adobe_Updater.exe

Copyright © 2006-2009 HowToGeek.com. Copyright © 2006-2009 HowToGeek.com. All Rights Reserved. All Rights Reserved.