cyclictest -t NUM argument not honoured

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I noticed many of my tests were bogus, as somehow my "-t NUM" argument
is not parsed properly on my target:

Linux efika 2.6.25.4-rt6 #10 PREEMPT RT Thu Jun 12 00:34:11 CEST 2008
ppc unknown

cyclictest 0.21 (with some extra argument printing added)

root@efika:~# /cyclictest -t 2 -n -p 50
threads = 1
started with interval 1000

T: 0 ( 1178) P:50 I:1000 C:    333 Min:     45 Act:   46 Avg:   49 Max:     100

root@efika:~# /cyclictest -t2 -n -p 50
threads = 2
started with interval 1000
started with interval 1500

on my x86/32 system the same happens (with -t 4 it defaults to 2
because it's a dual-core, with -t4 it works).

leon@witty:/tmp$ sudo ./cyclictest -t 4 -p 50
threads = 2
started with interval 1000
started with interval 1500
0.02 0.07 0.14 1/231 11760

T: 0 (11759) P:50 I:1000 C:      0 Min:1000000 Act:    0 Avg:    0 Max:-1000000
T: 1 (11760) P:49 I:1500 C:      0 Min:1000000 Act:    0 Avg:    0 Max:-1000000

leon@witty:/tmp$ sudo ./cyclictest -t4 -p 50
threads = 4
started with interval 1000
started with interval 1500
started with interval 2000
started with interval 2500
0.01 0.06 0.14 1/233 11765

T: 0 (11762) P:50 I:1000 C:      0 Min:1000000 Act:    0 Avg:    0 Max:-1000000
T: 1 (11763) P:49 I:1500 C:      0 Min:1000000 Act:    0 Avg:    0 Max:-1000000
T: 2 (11764) P:48 I:2000 C:      0 Min:1000000 Act:    0 Avg:    0 Max:-1000000
T: 3 (11765) P:47 I:2500 C:      0 Min:1000000 Act:    0 Avg:    0 Max:-1000000

At this moment I am puzzled, but I suspect the optional_argument handling.

NAME
       getopt - Parse command line options
...
BUGS
       This manpage is confusing.


Regards,
-- 
Leon
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux