Namecache lock contention?

2011-01-28 Thread Ivan Voras
I have this situation on a PHP server: 36623 www 1 760 237M 30600K *Name 6 0:14 47.27% php-cgi 36638 www 1 760 237M 30600K *Name 3 0:14 46.97% php-cgi 36628 www 1 1050 237M 30600K *Name 2 0:14 46.88% php-cgi 36627 www 1 1050

Re: Namecache lock contention?

2011-01-28 Thread John Baldwin
On Friday, January 28, 2011 8:46:07 am Ivan Voras wrote: I have this situation on a PHP server: 36623 www 1 760 237M 30600K *Name 6 0:14 47.27% php-cgi 36638 www 1 760 237M 30600K *Name 3 0:14 46.97% php-cgi 36628 www 1 1050 237M 30600K

Re: Namecache lock contention?

2011-01-28 Thread Dan Nelson
In the last episode (Jan 28), Ivan Voras said: I have this situation on a PHP server: 36623 www 1 760 237M 30600K *Name 6 0:14 47.27% php-cgi 36638 www 1 760 237M 30600K *Name 3 0:14 46.97% php-cgi 36628 www 1 1050 237M 30600K *Name 2

Re: Namecache lock contention?

2011-01-28 Thread Ivan Voras
On 28 January 2011 16:15, John Baldwin j...@freebsd.org wrote: On Friday, January 28, 2011 8:46:07 am Ivan Voras wrote: I have this situation on a PHP server: 36623 www         1  76    0   237M 30600K *Name   6   0:14 47.27% php-cgi 36638 www         1  76    0   237M 30600K *Name   3   0:14

Re: Namecache lock contention?

2011-01-28 Thread Ivan Voras
On 28 January 2011 16:25, Dan Nelson dnel...@allantgroup.com wrote: My guess would be: kern/vfs_cache.c:151 static struct rwlock cache_lock; kern/vfs_cache.c:152 RW_SYSINIT(vfscache, cache_lock, Name Cache); The CACHE_*LOCK() macros.c in vfs_cache use cache_lock, so you've got lots of

Re: Namecache lock contention?

2011-01-28 Thread Gleb Kurtsou
On (28/01/2011 18:20), Ivan Voras wrote: On 28 January 2011 16:25, Dan Nelson dnel...@allantgroup.com wrote: My guess would be: kern/vfs_cache.c:151 static struct rwlock cache_lock; kern/vfs_cache.c:152 RW_SYSINIT(vfscache, cache_lock, Name Cache); The CACHE_*LOCK() macros.c in

Re: Namecache lock contention?

2011-01-28 Thread Ivan Voras
On 28 January 2011 22:18, Gleb Kurtsou gleb.kurt...@gmail.com wrote: You could try replacing rwlock with plain mutex to check if there are priority propagation issues among readers/writers. How would that manifest? (i.e. how would it be detectable) SX locks should also work but would likely

Re: Namecache lock contention?

2011-01-28 Thread Gleb Kurtsou
On (28/01/2011 22:59), Ivan Voras wrote: On 28 January 2011 22:18, Gleb Kurtsou gleb.kurt...@gmail.com wrote: You could try replacing rwlock with plain mutex to check if there are priority propagation issues among readers/writers. How would that manifest? (i.e. how would it be

Re: Namecache lock contention?

2011-01-28 Thread Ivan Voras
On 28 January 2011 23:37, Gleb Kurtsou gleb.kurt...@gmail.com wrote: * The dtrace output I've send is from around thirty seconds of operation, so around 2000 PHP runs. (PHP in this case is FastCGI, so the processes are persistent instead of constantly respawning). In these 2000 runs there