I am going to use iotop to monitor io stats per process, but after installed iotop on my linux(RH 4 kernel 2.6.39-100.5.1.el5uek), the iotop need more higher version of python as below
Could not run iotop as some of the requirements are not met:
- Python >= 2.5 or Python 2.4 with the ctypes module
So I installed new version python 2.7.3 under /opt/python.2.7, but iotop utility still use python 2.4.3, which provided by Linux default.
So can I point somewhere the iotop use new python 2.7.3, or I tried to change environment variable, but still can not work.
appreciate your suggestion and help.
RH 4 kernel 2.6.39-100.5.1.el5uek does not appear to be a valid combination.
/usr/bin/python is a hard link to /usr/bin/python2.4. You can change the default python creating a new link, eg. ln -f /usr/bin/python2.6 /usr/bin/python. However, upgrading python may not solve your problem and will most likely break essential OS utilities. Iotop isn't worth to break your system installation - there are other tools that provide similar output
The following link might be of interest: OEL 5.8 with UEK2 - iotop not working
Appreciate your suggestions.
if without any breaking on current OS settings, so can you please advise what kind of utility or tools on Linux to monitor IO stats per process, like IOTOP does.
as iotop required, is it possible to enable modules for python on my current Linux version?
Linux version 2.6.39-100.5.1.el5uek (email@example.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-50)) #1 SMP Tue Mar 6 20:25:25 EST 2012