[Gluster-devel] glusterfs on NetBSD: timeouts
sac
sac at gluster.com
Fri Aug 27 05:15:51 UTC 2010
Hi Emmanuel,
On Thu, Aug 26, 2010 at 7:43 PM, Emmanuel Dreyfus <manu at netbsd.org> wrote:
>
> When copying a directory, exchanges often stall for a few seconds. If
> I attach with gdb to check what the server is doing, I have this:
>
> #0 0xbbada5a7 in _lwp_park () from /lib/libc.so.12
> #1 0xbbbae8eb in pthread_cond_timedwait () from /usr/lib/libpthread.so.0
> #2 0xbba96062 in posix_janitor_thread_proc (data=0xbb95b060) at posix.c:1404
> #3 0xbbbb09df in pthread_create () from /usr/lib/libpthread.so.0
> #4 0xbbafc670 in swapcontext () from /lib/libc.so.12
>
> This is this block:
> if (list_empty (&priv->janitor_fds)) {
> time (&timeout.tv_sec);
> timeout.tv_sec += priv->janitor_sleep_duration;
> timeout.tv_nsec = 0;
>
> pthread_cond_timedwait (&priv->janitor_cond,
> &priv->janitor_lock,
> &timeout);
> goto unlock;
> }
>
> gdb tells me that priv->janitor_sleep_duration is set to 600.
You are looking into the janitor thread. Can you run `info threads'
and see what other threads are doing at that point.
sac.
More information about the Gluster-devel
mailing list