gluster-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gluster-devel] glusterfs on NetBSD: timeouts


From: sac
Subject: Re: [Gluster-devel] glusterfs on NetBSD: timeouts
Date: Fri, 27 Aug 2010 10:45:51 +0530

Hi Emmanuel,

On Thu, Aug 26, 2010 at 7:43 PM, Emmanuel Dreyfus <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]