In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/03 Report--
The usage of the .top command
Pidof gets pid based on process name
Pidof vim
Detailed explanation of top display process information
Top displays process information details top system current time up system runtime user number of users logged in to the current system Load average average load 1 minute 5 minutes 15 minutes queue length (uptime) task task% cpucpu percentage us: user space sy: kernel space ni:nice adjustment space id: idle time wa: waiting for input and output time hi: handling hardware interrupts si: handling software interrupts st Percentage of mem physical memory occupied by virtualized programs swap swap partition
First line current system time up: current system running time how many users in the current system are logging in load: system load eg: 0.050.00 (1 minute, 5 minutes, 15 minutes waiting in the queue) the higher the number, the more tasks are waiting, the higher the load on cpu now is.
The second line task task total task status
Third line% cpu (s) space occupied by us users storage space occupied by sy kernel amount of cpu occupied by ni processes during priority adjustment id idle time wa waiting for input and output time hi hard (pieces) interrupt time si hardware and software interrupt time st stolen memory usage (virtual machine still occupied-stolen)
Line 4: MIB Mem physical memory usage total Total amount of total used by idle used (not recyclable) buff/cache cached (there are two kinds of data in memory, one is waiting to be written to disk: buff is read from disk: cache,) can be recycled by the system
Total free memory = free+buff+cache
Line 5 the occupied avail Mem of the MIB Swap virtual memory swap partition is available
The sixth line
PID: process id USER: user name PR: priority NI: nice value represented by priority VIRT: virtual cpu
RES: resident memory address SHR: shared Resource S: status% cpu:cpu usage% MEM memory usage
TIME: occupied cpu time command: name
Top internal parameters
Pcpu% sort M memory% T Cumulative cpu time l enable / close uptime information t turn on / off task&cpu information s adjust refresh rate k termination process u View specified user process
Description: sort cpu usage by P, sort memory by M, sort memory by l close load information by t task information close three display modes to display the overall cpu load (cpu has many cores) press 1: display the overall number of cores and then press 1: merge to enhance the refresh frequency: press s to enter the value (the system defaults to refresh once in 3 seconds) to terminate a process: enter what you want by k Enter the id that ends the process and enter to view the process of a specific user: press u and then enter student (specific user: cannot be displayed Press u to enter a specific user before the process information can be displayed) and then press u enter to display all
Press Q: to exit
Top command parameters
-d specifies the refresh interval-b displays in batches-n displays the number of batches
Eg:1 refreshes once per second, batch is twice
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.