CentOS 5.5 kernel upgrade and install iotop
The iotop command in Linux is mainly used to display hard disk IO, but it only exists in Versions later than kernelv2.6.20. How can I install the iotop command? The following section describes how to install the iotop command on Linux.
The iotop command is similar to the top command in the interface style. This command is available only in kernelv2.6.20 and later versions. Python and later are required.
[Root @ MyO ~] # Uname-r
2.6.18-194. el5xen # I have to upgrade the kernel version.
Bytes --------------------------------------------------------------------------------------------------------------------------
Wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.27.57.tar.bz2 -- no-check-certificate
Tar jxf linux-2.6.27.57.tar.bz2-C/usr/src/
Cd/usr/src/linux-2.6.27.57/
Make mrproper
Make menuconfig # selected as shown in the following figure: the version may be different. I didn't see it. General setup --> enable deprecated sysfs features to support old userspace tools, but all I can choose
Make
Make modules_install
Make install
[Root @ MyO linux-2.6.27.57] # make install
Sh/usr/src/linux-2.6.27.57/arch/x86/boot/install. sh 2.6.27.57 arch/x86/boot/bzImage System. map "/boot"
Then set/boot/grub. conf
Set default to 0 and restart. After the restart, you may not be able to connect to crt or xshell. restart the network to restart the service network restart.
[Root @ MyO ~] # Uname-r
2.6.27.57
Install python2.7
Check whether your current python version is 2.7 python-V.
Wget http://www.python.org/ftp/python/2.7.2/Python-2.7.2.tar.bz2
Tar jxf Python-2.7.2.tar.bz2-C/usr/src
Cd, usr, src, and Python-2.7.2
./Configure
Make
Make install
The default installation path is/usr/local/bin/python2.7.
Establish a soft connection so that python points to python2.7
Mv/usr/bin/python/usr/bin/python2.4
Ln-s/usr/local/bin/python2.7/usr/bin/python
Install iotop
Wget http://guichaz.free.fr/iotop/files/iotop-0.4.4.tar.gz
Tar zxf iotop-0.4.4.tar.gz
Cd iotop-0.4.4
Python setup. py build
Python setup. py install
-Version:
-H,-help to view help information
-O,-only programs that are displayed on the hard disk
-B,-batch
-N NUM: set the number of cycles
-D SEC,-delay = SEC sets the display Interval
This article permanently updates the link address: