From: Anton B. <an...@sa...> - 2001-11-16 23:39:12
|
> This particular problem showed up from a Netbench run on a 4-way. > About 24% of the kernel time was from spinning on kernel_flag, with > 10% of the total time specifically originating in posix_lock_file. Since samba has to run on many platforms by default it has to sacrifice some performance. For SMP locking tdb uses fcntl locks which work on most OS's but stress the locking subsystem quite heavily. The real solution to your problem is not to rearchitect the locking system but to compile samba with the --spinlocks which replace the fcntl locks with userspace spinlocks. Anton |