Re: glusterfs on NetBSD: timeouts

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

 



Hi Emmanuel,

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



[Index of Archives]     [Gluster Users]     [Ceph Users]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux