Rene Herman wrote:
> On 12-12-07 00:55, Nigel Cunningham wrote:
> 
>> (AMD 1.8GHz Turion, running at 800MHz. ATI RS480 - Mitac 8350 mobo)
>>
>> [EMAIL PROTECTED]:~/Downloads$ gcc port80.c -o port80
>> [EMAIL PROTECTED]:~/Downloads$ sudo ./port80
>> cycles: out 1235, in 1207
> 
> Looking good.
> 
>> [EMAIL PROTECTED]:~/Downloads$ gcc -O2 port80.c -o port80
>> [EMAIL PROTECTED]:~/Downloads$ sudo ./port80
>> cycles: out 1844674407370794, in 1844674407369408
> 
> Obviously not. I suppose this changes with -m32 on the GCC command line?
> (sorry for missing that, I have no 64-bit machines).

Yes, it does:

[EMAIL PROTECTED]:~/Downloads$ gcc -m32 -o port80 port80.c
[EMAIL PROTECTED]:~/Downloads$ sudo ./port80
cycles: out 1231, in 1208
[EMAIL PROTECTED]:~/Downloads$ sudo ./port80
cycles: out 1233, in 1210

Incidentally:

[EMAIL PROTECTED]:~/Downloads$ processor_speed

(A little script I made because my lappy does a solid lock every now and
then that seems to be cpu-freq related - locking it to one frequency
makes the lock far less common).

Speed is now 1800000.
[EMAIL PROTECTED]:~/Downloads$ sudo ./port80
cycles: out 2472, in 2505
[EMAIL PROTECTED]:~/Downloads$ sudo ./port80
cycles: out 2489, in 2515
[EMAIL PROTECTED]:~/Downloads$ sudo ./port80
cycles: out 2481, in 2503
[EMAIL PROTECTED]:~/Downloads$ sudo ./port80
cycles: out 2476, in 2507

So the same effect Maxim reported is seen here.

Regards,

Nigel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to