Find out which Linux server IO is a high-occupancy program

Source: Internet
Author: User
Tags dmesg
A server compared to the performance of memory, CPU utilization, IO utilization, the 3 sample optimization, your server load will be much smaller, of course, the network situation is not in my consideration, after all, network this situation is very unstable, even if you optimize the network on the server better, IDC does not give the force is useless,   Unless it is the company's own computer room, OK, today only say how to find the IO high-occupancy program. System: CentOS 5.51. Turn on Io monitoring sysctl vm.block_dump=1 or Echo 1 >/proc/sys/vm/block_dump 2. The kernel will dump IO read/write to the diary, with DMESG view: DMESG 3. Process read-write block to disk Dm-0:mysqld (7822): Read Block 78196624 on Dm-0kjournald (529): Write Block 211136 on Dm-0bash (8336): dirtied Inode 7391146 (DMESG) on dm-0 4. Count the 10 processes currently occupying the highest IO: dmesg |awk-f: ' {print $} ' |sort|uniq-c|sort-rn|head-n 10

Find out which Linux server IO is a high-occupancy program

Related Article

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.