Re: Locking comment on shrink_caches()

Richard Gooch (
Wed, 26 Sep 2001 11:43:25 -0600

Linus Torvalds writes:
> This message is in MIME format. The first part should be readable text,
> while the remaining parts are likely unreadable without MIME-aware tools.
> Send mail to for more info.

Yuk! MIME! I thought you hated it too?

> nothing: 32 cycles
> locked add: 50 cycles
> cpuid: 170 cycles
> P4:
> nothing: 80 cycles
> locked add: 184 cycles
> cpuid: 652 cycles
> Remember: these are for the already-exclusive-cache cases. ]
> What are the athlon numbers?

Athalon 850 MHz:
nothing: 11 cycles
locked add: 12 cycles
cpuid: 64 cycles

BTW: your code had horrible control-M's on each line. So the compiler
choked (with a less-than-helpful error message). Of course, cat t.c
showed nothing amiss. Fortunately emacs doesn't hide information.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at