New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Comments
This is accurate when ran inside an openvz container?
@Corey said: This is accurate when ran inside an openvz container?
I even failed to start iotop in openvz container.
File "/usr/bin/iotop", line 16, in
main()
File "/usr/local/lib/python2.6/dist-packages/iotop/ui.py", line 571, in main
main_loop()
File "/usr/local/lib/python2.6/dist-packages/iotop/ui.py", line 561, in
main_loop = lambda: run_iotop(options)
File "/usr/local/lib/python2.6/dist-packages/iotop/ui.py", line 465, in run_iotop
return curses.wrapper(run_iotop_window, options)
File "/usr/lib/python2.6/curses/wrapper.py", line 43, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/local/lib/python2.6/dist-packages/iotop/ui.py", line 455, in run_iotop_window
taskstats_connection = TaskStatsNetlink(options)
File "/usr/local/lib/python2.6/dist-packages/iotop/data.py", line 146, in __init__
self.family_id = controller.get_family_id('TASKSTATS')
File "/usr/local/lib/python2.6/dist-packages/iotop/genetlink.py", line 69, in get_family_id
m = GeNlMessage.recv(self.conn)
File "/usr/local/lib/python2.6/dist-packages/iotop/genetlink.py", line 51, in recv
msg = conn.recv()
File "/usr/local/lib/python2.6/dist-packages/iotop/netlink.py", line 229, in recv
raise err
OSError: Netlink error: No such file or directory (2)
Some people reported same issue here and here
Nobody has this problem?
Well what file or directory does /usr/local/lib/python2.6/dist-packages/iotop/netlink.py try to open in line 229?
I have no idea what this script is trying to read.
I am not a python developer so please bear with me
This post quickly becomes number 1 search result on google. I am a bit surprised nobody had this before.
What's the output of uname -r?
Web 2.0.
Looks like your host is running an old kernel.
hmm, does not seem old.
Host and container kernel: Linux server 2.6.32-11-pve
I've tried iotop on kernel 2.6.32-042stab059.7, and it doesn't work as well.
But it works fine on 2.6.18-308.el5.028stab099.3. It seems that the new OpenVZ kernel doesn't support iotop?!
But it works fine on 2.6.18-308.el5.028stab099.3. It seems that the new OpenVZ kernel doesn't support iotop?!
Yep I think it is the case too.
There is a patch for iotop 1.4.2 in openvz here. I tried and failed to apply this patch.
Can some one give it a shot?
I've had this problem before, all I did was remove that specific python module (can't remember what it was called) using apt-get and re-installed it using apt-get.
Tried to apply this patch to iotop 1.4.2, also failed with the same error message :-(
Sorry, necromancing this thread
Anyone has an idea on how to get this working for .32?
Btw, the patch applies successfully, but doesn't work.
I tried to write such a script a couple of days ago.
Most disk IO stat tools use /proc/diskstats or /sys/block, both are not available inside OpenVZ. This is due to the nature of simfs so I don't think you can have something like iotop inside OpenVZ.
OTOH, /proc/PROCESS_ID/io is there so you can probably build something around it but this is not the same information.
iotop is working fine on both .32 and .18 without any issue.