Adrian Sevcenco
2012-Mar-09 07:17 UTC
[CentOS] iotop :: OSError: Netlink error: Invalid argument (22)
Hi! i have a problem with iotop :
root at alien: ~ # iotop
Traceback (most recent call last):
File "/usr/bin/iotop", line 16, in ?
main()
File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 567, in
main
main_loop()
File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 557, in
<lambda>
main_loop = lambda: run_iotop(options)
File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 465, in
run_iotop
return curses.wrapper(run_iotop_window, options)
File "/usr/lib64/python2.4/curses/wrapper.py", line 44, in wrapper
return func(stdscr, *args, **kwds)
File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 457, in
run_iotop_window
process_list = ProcessList(taskstats_connection, options)
File "/usr/lib/python2.4/site-packages/iotop/data.py", line 375, in
__init__
self.update_process_counts()
File "/usr/lib/python2.4/site-packages/iotop/data.py", line 431, in
update_process_counts
stats = self.taskstats_connection.get_single_task_stats(thread)
File "/usr/lib/python2.4/site-packages/iotop/data.py", line 158, in
get_single_task_stats
reply = self.connection.recv()
File "/usr/lib/python2.4/site-packages/iotop/netlink.py", line 229,
in
recv
raise err
OSError: Netlink error: Invalid argument (22)
CentOS release 5.5 (Final)
iotop-0.4.3-4.el5
python-2.4.3-46.el5
anyone have any idea about this problem and how can i debug/fix it?
Thanks!
Adrian
Benjamin Hackl
2012-Mar-09 09:38 UTC
[CentOS] iotop :: OSError: Netlink error: Invalid argument (22)
Dear Adrian, On Fri, 9 Mar 2012 09:17:59 +0200 Adrian Sevcenco <Adrian.Sevcenco at cern.ch> wrote:> anyone have any idea about this problem and how can i debug/fix it?Do you have python-ctypes installed? Besides iotop does not work for kernels < 2.6.20. You need a patched kernel. The rpm package from http://guichaz.free.fr/iotop/ works also on non standard el5 kernels but shows no more information than iostat. Further information can be found in https://bugzilla.redhat.com/show_bug.cgi?id=641496 and https://bugzilla.redhat.com/show_bug.cgi?id=557062 Brgds -- Freundliche Gruesse/Best Regards Benjamin Hackl IT/Administration Media FOCUS Research Ges.m.b.H. Maculangasse 8, 1220 Wien Austria Tel: +43 1 258 97 01-295 b.hackl at focusmr.com
Markus Falb
2012-Mar-09 12:52 UTC
[CentOS] iotop :: OSError: Netlink error: Invalid argument (22)
On 9.3.2012 08:17, Adrian Sevcenco wrote:> Hi! i have a problem with iotop : > > root at alien: ~ # iotop > Traceback (most recent call last): > File "/usr/bin/iotop", line 16, in ? > main() > File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 567, in main > main_loop() > File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 557, in <lambda> > main_loop = lambda: run_iotop(options) > File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 465, in > run_iotop > return curses.wrapper(run_iotop_window, options) > File "/usr/lib64/python2.4/curses/wrapper.py", line 44, in wrapper > return func(stdscr, *args, **kwds) > File "/usr/lib/python2.4/site-packages/iotop/ui.py", line 457, in > run_iotop_window > process_list = ProcessList(taskstats_connection, options) > File "/usr/lib/python2.4/site-packages/iotop/data.py", line 375, in > __init__ > self.update_process_counts() > File "/usr/lib/python2.4/site-packages/iotop/data.py", line 431, in > update_process_counts > stats = self.taskstats_connection.get_single_task_stats(thread) > File "/usr/lib/python2.4/site-packages/iotop/data.py", line 158, in > get_single_task_stats > reply = self.connection.recv() > File "/usr/lib/python2.4/site-packages/iotop/netlink.py", line 229, in > recv > raise err > OSError: Netlink error: Invalid argument (22) > > > CentOS release 5.5 (Final)Your kernel is too old. You need at least 2.6.18-238.el5 (This was the first 5.6 kernel)> iotop-0.4.3-4.el5 > > python-2.4.3-46.el5It seems you have a partially updated system. These Packages are from 5.8 -- Kind Regards, Markus Falb -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 307 bytes Desc: OpenPGP digital signature URL: <http://lists.centos.org/pipermail/centos/attachments/20120309/76244e1d/attachment-0004.sig>