Port 0x80 I/O speed
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 18 lines · Rene Herman
Good day.
Would some people on x86 (both 32 and 64) be kind enough to compile and run the attached program? This is about testing how long I/O port access to port
0x80takes. It measures in CPU cycles so CPU speed is crucial in reporting.Posted a previous incarnation of this before, buried in the outb
0x80thread which had a serialising problem. This one should as far as I can see measure the right thing though. Please yell if you disagree...For me, on a Duron 1300 (AMD756 chipset) I have a constant:
rene@7ixe4:~/src/port80$ su -c ./port80 cycles: out 2400, in 2400and on a PII 400 (Intel 440BX chipset) a constant:
Quoted 8 lines
rene@6bap:~/src/port80$ su -c ./port80 cycles: out 553, in 251Results are (mostly) independent of compiler optimisation, but testing with an -O2 compile should be most useful. Thanks!
Rene.
[root@beta jkosin]# cat /proc/cpuinfo
processor : 0vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Pentium III (Katmai)
stepping : 3
cpu MHz : 499.156
cache size : 512 KBfdiv_bug : nohlt_bug : nof00f_bug : nocoma_bug : no
fpu : yesfpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 sep mtrr pge mca
cmov pat pse36 mmx fxsr sse
bogomips : 996.14
[root@beta jkosin]# ./a.out
cycles: out 683, in 299
[root@beta jkosin]# ./a.out
cycles: out 683, in 299
[root@beta jkosin]# ./a.out
cycles: out 683, in 299
[root@beta jkosin]#
Signature · 1 line
Scanned by ClamAV - http://www.clamav.net
Quoted 5 lines · James Kosin
model name : Pentium III (Katmai)
cpu MHz : 499.156[root@beta jkosin]# ./a.out
cycles: out 683, in 299
Thanks much, you made spot 32 ;-)
http://lkml.org/lkml/2007/12/12/309
By the way, if anyone in this/these thread(s) wrote something today (*) they would like me to reply to -- my horseshit ISP is completely crapping out on me and I haven't seen your message. Resends ofcourse welcome.
(*) [now - 16 hours, now]
Rene.
Quoted 8 lines · Rene Herman
Quoted 5 lines · James Kosin
model name : Pentium III (Katmai)
cpu MHz : 499.156[root@beta jkosin]# ./a.out
cycles: out 683, in 299
Quoted 8 lines
Thanks much, you made spot 32 ;-)
http://lkml.org/lkml/2007/12/12/309
By the way, if anyone in this/these thread(s) wrote something today (*) they would like me to reply to -- my horseshit ISP is completely crapping out on me and I haven't seen your message. Resends ofcourse welcome.
Don't know if you saw mine (at least it's not on your list), but it's archived here: http://lkml.org/lkml/2007/12/12/399
Signature · 3 lines
Jesper Juhl <[email protected]> Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html Plain text mails only, please http://www.expita.com/nomime.html
Quoted 10 lines · Jesper Juhl
Quoted 6 lines · Rene Herman
http://lkml.org/lkml/2007/12/12/309
By the way, if anyone in this/these thread(s) wrote something today (*) they would like me to reply to -- my horseshit ISP is completely crapping out on me and I haven't seen your message. Resends ofcourse welcome.
Don't know if you saw mine (at least it's not on your list), but it's archived here: http://lkml.org/lkml/2007/12/12/399
Nope didn't, thanks. Same CPU as the unexpected 59 spot it seems, but yours with an expected 0.80 figure.
Rene.