Re: namei() query

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Fri Apr 21 2000 - 10:41:53 EST


kumon@flab.fujitsu.co.jp wrote:
>
> kumon@flab.fujitsu.co.jp writes:
> > Like Linus's sample code, I can move lock/unlock_kernel inside the
> > for(;;) loop. The places are marked by ###.
>
> By moving lock/unlock in the do_select() into the for(;;)-loop,
> the following numbers were obtained.
> It eliminates schedule_timeout() during the lock held.
> Most of schedule() spins moved to the do_select().
>
> ;cpu0 cpu1 cpu2 cpu3 all-cpu where lockvar
> 1186 1133 1149 1039 4507 TOTAL
> 465 417 447 376 1705 do_select+432 0xc026b984
[...]

When benchmarking 2.3.x make sure to turn off 2.3.x debugging checks..

Here are some debug switches that I found by grepping around. waitqueue
debugging should be turned off, at the very least...
SLAB_DEBUGGING_SUPPORT should probably be deleted from the list. etc..

-- 
Jeff Garzik              | Nothing cures insomnia like the
Building 1024            | realization that it's time to get up.
MandrakeSoft, Inc.       |        -- random fortune

include/asm-i386/apic.h:APIC_DEBUG include/asm-i386/highmem.h:HIGHMEM_DEBUG include/asm-i386/spinlock.h:SPINLOCK_DEBUG include/linux/elevator.h:ELEVATOR_DEBUG include/linux/wait.h:WAITQUEUE_DEBUG include/linux/rtnetlink.h:RTNL_DEBUG include/linux/nfs_fs.h:NFS_DEBUG include/net/tcp.h:TCP_DEBUG arch/i386/kernel/setup.c:E820_DEBUG mm/slab.c:SLAB_DEBUG_SUPPORT net/core/neighbour.c:NEIGH_DEBUG

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:19 EST