iotop and I/O accounting support

Tell us your most wanted features from QNAP products.
Yaqu
New here
Posts: 3
Joined: Thu Mar 04, 2010 11:13 pm

iotop and I/O accounting support

Post by Yaqu »

Hello,

via ipkg available (and flawlessly working on standard ubuntu distributions) is the small python script iotop (http://guichaz.free.fr/iotop), which looks much like top, but displays the i/o operations for each process, like the following extract shows:

Code: Select all

 PID  USER      DISK READ  DISK WRITE   SWAPIN    IO>    COMMAND
 2285 root           0 B/s  164.80 K/s  0.00 %  0.00 % [kjournald]
 1931 userxyz     1.04 M/s       0 B/s  0.00 %  0.00 % find . -name *xyz*
 9198 root           0 B/s    0.80 K/s  0.00 %  0.00 % java -Djava.util.logging.manager...
This very nice utility could show what is going on, on my TS-109 II, and why (with some additional daemons running) it refuses to turn off its disk(s). Unfortunately, it doesn't work because of a kernel version < 2.6.20 (3.1.0 has 2.6.12) and the disabled kernel options CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT and CONFIG_TASK_IO_ACCOUNTING. So my wish for the upcoming release would be that the requirements for this handy tool would be met, or iotops functionality even somehow integrated into the qnap resource monitor.

Sincerely,
Martin
Sabaoth
Know my way around
Posts: 110
Joined: Mon Oct 29, 2007 9:48 pm

Re: iotop and I/O accounting support

Post by Sabaoth »

Would be a nice simple addition to add this to the current resouce monitoring. +1 from me
NAS-1: TS-459, Production, 2x Samsung 1.5TB JBOD, Version: 3.4.1 Build 0315T
NAS-2: TS-109, Test/Backups, 1x Samsung 500GB, Version: 3.2.0 Build 0622T
Network: Netgear GS608 v2 Gigabit Switch, D-Link DIR-615 Wireless N Cable Router
Misc: 2x Belkin 1200VA UPS
Portable: HTC Desire - Android 2.2 with QMobile

Workstation: Intel Q6600 3.4Ghz, OCZ 8GB DDR2, Asus Maximus Formula, EVGA Geforce 1GB 470 GTX, X-FI Elite Pro Soundcard, Enermax Infinity 720 Watt
hnielsen
New here
Posts: 4
Joined: Mon Mar 02, 2009 1:53 am

Re: iotop and I/O accounting support

Post by hnielsen »

Absolutely, I'd like it as well. +1 from me.
User avatar
spoon.uk
Been there, done that
Posts: 992
Joined: Tue Jan 06, 2009 7:14 pm
Location: London, United Kingdom
Contact:

Re: iotop and I/O accounting support

Post by spoon.uk »

Looks like a decent addition.

You have got my vote.
lightman
Getting the hang of things
Posts: 51
Joined: Mon Sep 21, 2009 7:32 pm

Re: iotop and I/O accounting support

Post by lightman »

+1
pabouk
Getting the hang of things
Posts: 77
Joined: Thu Jul 22, 2010 4:47 am
Location: Czech Republic

Re: iotop and I/O accounting support

Post by pabouk »

Yes, please compile the kernel with I/O accounting support (CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING).
QNAP TS-219P; firmware: 3.7.3 Build 20120801; HDDs: single
1x SAMSUNG Spinpoint F3EG HD203WI 1AN1 (2 TB, green, firmware 1AN10003, 512B sector)
1x SAMSUNG Spinpoint F4EG HD204UI 1AQ1 (2 TB, green, firmware 1AQ10001, 4kiB sector)
User avatar
spoon.uk
Been there, done that
Posts: 992
Joined: Tue Jan 06, 2009 7:14 pm
Location: London, United Kingdom
Contact:

Re: iotop and I/O accounting support

Post by spoon.uk »

[/share/MD0_DATA/.qpkg] # uname -a
Linux SpOoN-NAS01 2.6.33.2 #1 SMP Thu Aug 19 04:04:39 CST 2010 i686 unknown
[/share/MD0_DATA/.qpkg] #

iotop works absolutely fine here.
pabouk
Getting the hang of things
Posts: 77
Joined: Thu Jul 22, 2010 4:47 am
Location: Czech Republic

Re: iotop and I/O accounting support

Post by pabouk »

Here it does not work :(

Code: Select all

[~] # uname -a
Linux nas1 2.6.33.2 #1 Wed Jan 5 02:06:35 CST 2011 armv5tel unknown
[~] # iotop
Could not run iotop as some of the requirements are not met:
- Linux >= 2.6.20 with I/O accounting support (CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING): Not found
- Python >= 2.5 or Python 2.4 with the ctypes module: Found
Maybe the firmware for ARM models has kernel compiled with different parameters?
QNAP TS-219P; firmware: 3.7.3 Build 20120801; HDDs: single
1x SAMSUNG Spinpoint F3EG HD203WI 1AN1 (2 TB, green, firmware 1AN10003, 512B sector)
1x SAMSUNG Spinpoint F4EG HD204UI 1AQ1 (2 TB, green, firmware 1AQ10001, 4kiB sector)
User avatar
spoon.uk
Been there, done that
Posts: 992
Joined: Tue Jan 06, 2009 7:14 pm
Location: London, United Kingdom
Contact:

Re: iotop and I/O accounting support

Post by spoon.uk »

You're on ARM CPU hence the hiccups...
pabouk
Getting the hang of things
Posts: 77
Joined: Thu Jul 22, 2010 4:47 am
Location: Czech Republic

Re: iotop and I/O accounting support

Post by pabouk »

spoon.uk wrote:You're on ARM CPU hence the hiccups...
Yes, I know I have a low-power ARM model :D Do you know if the ARM kernels are being compiled by QNAP with different parameters?
QNAP TS-219P; firmware: 3.7.3 Build 20120801; HDDs: single
1x SAMSUNG Spinpoint F3EG HD203WI 1AN1 (2 TB, green, firmware 1AN10003, 512B sector)
1x SAMSUNG Spinpoint F4EG HD204UI 1AQ1 (2 TB, green, firmware 1AQ10001, 4kiB sector)
User avatar
spoon.uk
Been there, done that
Posts: 992
Joined: Tue Jan 06, 2009 7:14 pm
Location: London, United Kingdom
Contact:

Re: iotop and I/O accounting support

Post by spoon.uk »

I'm sure they are...
User avatar
spoon.uk
Been there, done that
Posts: 992
Joined: Tue Jan 06, 2009 7:14 pm
Location: London, United Kingdom
Contact:

Re: iotop and I/O accounting support

Post by spoon.uk »

TS-419P output:

Code: Select all

[~] # iotop
Could not run iotop as some of the requirements are not met:
- Linux >= 2.6.20 with I/O accounting support (CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING): Not found
- Python >= 2.5 or Python 2.4 with the ctypes module: Found
[~] #
Hawkens
Starting out
Posts: 43
Joined: Tue Feb 01, 2011 5:34 pm
Contact:

Re: iotop and I/O accounting support

Post by Hawkens »

Would be a nice thing, especially because my disks won't go in standby no more and I see the leds of the disks flickering time to time. Go and find out what it is if you're not able to use iotop, so+1 from me to.

Could not run iotop as some of the requirements are not met:
- Linux >= 2.6.20 with I/O accounting support (CONFIG_TASKSTATS, CONFIG_TASK_DELAY_ACCT, CONFIG_TASK_IO_ACCOUNTING): Not found
- Python >= 2.5 or Python 2.4 with the ctypes module: Found
[~] #
System Administrator
TS-419P II * Seagate Barracuda 2TB 7200 rpm 64MB cache (raid 5)
Netherlands
marioqn
Starting out
Posts: 26
Joined: Tue Mar 30, 2010 5:15 am

Re: iotop and I/O accounting support

Post by marioqn »

So as we all can see, Qnap doesn't give a damn on what's in this forum.
Qnap TS-253D
QTS 5.0.0 build 2055
2x Seagate Exos 6Tb
RAID 1
Camera TP-Link Tapo C200
User avatar
schumaku
Guru
Posts: 43579
Joined: Mon Jan 21, 2008 4:41 pm
Location: Kloten (Zurich), Switzerland -- Skype: schumaku
Contact:

Re: iotop and I/O accounting support

Post by schumaku »

Wrong. In my opinion, performance has higher priority (we can find more performance requests than iotop here...) than a niche application.
Post Reply

Return to “Features Wanted”