[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: svn update stuck in read() - matching svnserve process also in read()

From: Moritz Möller <m.moeller_at_bigpoint.net>
Date: Wed, 1 Apr 2009 21:50:01 +0200

Hi,

rngd is running on the machine and /proc/sys/kernel/random/entropy_avail is monitored. And if I'm not completely wrong the svn client is single threaded and the blocking call is on the network connection, and the server is multithreaded but in case of missing random entropy it should either wait in a futex or wait on a read() on /dev/*random.

To me it looks more like a protocol error. I will try to see if it also happens with svn+ssh or http protocols.

Best,

Moritz

-----Original Message-----
From: Erik Huelsmann [mailto:ehuels_at_gmail.com]
Sent: Wednesday, April 01, 2009 9:35 PM
To: Moritz Möller
Cc: users_at_subversion.tigris.org
Subject: Re: svn update stuck in read() - matching svnserve process also in read()

On Wed, Apr 1, 2009 at 6:38 PM, Moritz Möller <m.moeller_at_bigpoint.net> wrote:
> Hi,
>
> we have the problem that svn occasionally freezes.
>
> Client:
> svn version 1.5.1 / debian / 64bit / 8core.
> /checkout is a checkout of svn://out-svnserver/some-repository
> svn --non-interactive --username xxx --password xxx /checkout is stuck in a read() call on the network connection
>
> Server:
> svnserve version 1.5.6 / debian / 64bit / 8core / fsfs
> the matching svnserve process is also read()ing the network connection.
>
> As there is no timeout, the svn update is stuck until killed.
>
> Does anyone know about this or has an idea how to solve it?

Is the server headless? If so, it could be that it's reading from
/dev/random for entropy. However, on headless boxes, this resource can
get starved. Since /dev/random is blocking, your server (or client) is
waiting for the system to collect more entropy. Try using
/dev/urandom, or copy some entropy into /dev/random.

HTH,

Erik.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1510220

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-04-01 21:52:25 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.