Subject: Re: Lock benchmarks
To: None <tech-kern@netbsd.org>
From: Martin Husemann <martin@duskware.de>
List: tech-kern
Date: 09/18/2002 07:01:48
Ok, with uwe's fix and after copying sparc_lock.S to sparc64_lock.S I
get this on a sparc64 SMP system, running a UP kernel:

Registering restartable atomic sequences
Timing unlock overhead
Timing RAS locks
Timing CPU locks (inlined)
Timing CPU locks (not inlined)
unlock overhead: 0.834184 s (0.008342 us/loop)
RAS: 4.728590 s (0.047286 us/loop)
cpu locks (inlined): 6.396687 s (0.063967 us/loop)
cpu locks (not inlined): 7.153623 s (0.071536 us/loop)

and on a single CPU system:

Registering restartable atomic sequences
Timing unlock overhead
Timing RAS locks
Timing CPU locks (inlined)
Timing CPU locks (not inlined)
unlock overhead: 0.117752 s (0.001178 us/loop)
RAS: 7.154405 s (0.071544 us/loop)
cpu locks (inlined): 11.796538 s (0.117965 us/loop)
cpu locks (not inlined): 14.284537 s (0.142845 us/loop)


Martin