Skip to contentSkip to conversation

Locking comment on shrink_caches()

DISCUSSION Vojtech Pavlik 1 participant 1 message Sep 27, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 34 lines · Trond Eivind Glomsr?d
Quoted 8 lines · Vojtech Pavlik
Quoted 6 lines · Vojtech Pavlik
Quoted 5 lines

generic Athlon is

nothing: 11 cycles
locked add: 11 cycles
cpuid: 64 cycles

Quoted 8 lines
Quoted 6 lines

Interestingly enough, my TBird 1.1G insist on cpuid being somewhat slower:

nothing: 11 cycles
locked add: 11 cycles
cpuid: 87 cycles

Oops, this is indeed just a difference in compiler options.

No, it's not:

[teg@xyzzy teg]$ ./t
nothing: 11 cycles
locked add: 11 cycles
cpuid: 64 cycles
[teg@xyzzy teg]$ ./t
nothing: 11 cycles
locked add: 11 cycles
cpuid: 64 cycles
[teg@xyzzy teg]$
[teg@xyzzy teg]$ ./t
nothing: 11 cycles
locked add: 11 cycles
cpuid: 87 cycles

Quoted 8 lines

[teg@xyzzy teg]$ ./t
nothing: 11 cycles
locked add: 11 cycles
cpuid: 87 cycles
[teg@xyzzy teg]$ ./t
nothing: 11 cycles
locked add: 11 cycles
cpuid: 64 cycles

Interesting: Try while true; do t; done and watch it change between 64 and 87 every 2.5 seconds ... :)

Signature · 2 lines
Vojtech Pavlik
SuSE Labs