dagwieers/dstat — Issue #9: overflow when more than ~8 cores  in -C option
Author: eccles
Created: 2012-01-06 15:05:35+00:00
State: open

I have a 12 core machine and want to look at all 12 cores individually during a (very) long run of a job. the problem is that when I try to specify -C 0,1,2,3,4,5,6,7,8 or more I get a traceback and error report.

CORRECT:
#
# dstat -c -C 0,1,2,3,4,5
-------cpu0-usage--------------cpu1-usage--------------cpu2-usage--------------cpu3-usage--------------cpu4-usage--------------cpu5-usage------
usr sys idl wai hiq siq:usr sys idl wai hiq siq:usr sys idl wai hiq siq:usr sys idl wai hiq siq:usr sys idl wai hiq siq:usr sys idl wai hiq siq
0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0
0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0
0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0: 0 0 100 0 0 0

CORRECT but I get no output:

# dstat -c -C 0,1,2,3,4,5,6,7,8
Terminal width too small, trimming output.

Try outputting to a file and get error:

# dstat -c -C 0,1,2,3,4,5,6,7,8 --output dstat.out
Terminal width too small, trimming output.

Traceback (most recent call last):
File "/usr/bin/dstat", line 1974, in ?
main()
File "/usr/bin/dstat", line 1923, in main
oline = oline + o.showcsv() + o.showcsvend(totlist, vislist)
File "/usr/bin/dstat", line 447, in showcsvend
if self is not vislist[-1]:
IndexError: list index out of range