You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Daniel Stenberg <da...@haxx.se> on 2000/10/24 11:08:00 UTC
APR cvs-update problems?
Hi ho
I just updated my subversion tree and tried to build it. I fell on a problem
that occurs like displayed below(1).
I have reason to believe that this is because my APR tree isn't updated. Now,
when I try to update my APR sources (using the CVS root
:pserver:anoncvs@www.apache.org:/home/cvspublic) my cvs client just hangs
forever without getting any updates(2).
Have I missed something, does the APR cvs respostory dislike me or am I plain
stupid?
(1)
Making all in libsvn_subr
Making all in .
/bin/sh ../../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H
-I. -I. -I../.. -I../include -I../../apr/include -I../../expat-lite
-I/home/dast/src/subversion/db-3.1.17/build_unix -g -Wmissing-prototypes
-Wstrict-prototypes -Wmissing-declarations -Wpointer-arith -DSVN_DEBUG
-DAP_DEBUG -g -Wall -c xml.c
xml.c: In function `svn_xml_ap_to_hash':
xml.c:288: `APR_HASH_KEY_STRING' undeclared (first use in this function)
xml.c:288: (Each undeclared identifier is reported only once
xml.c:288: for each function it appears in.)
make[4]: *** [xml.lo] Error 1
make[3]: *** [all-recursive] Error 1
(2)
(I'm sure you can follow the swedish date output)
% cat CVS/Root
:pserver:anoncvs@www.apache.org:/home/cvspublic
% cat CVS/Repository
apache-2.0/src/lib/apr
% date
tisdag, 24 oktober 2000 kl 13:03:29 MET DST
% cvs -t update
cvs update: notice: main loop with
CVSROOT=:pserver:anoncvs@www.apache.org:/home/cvspublic
^Ccvs [update aborted]: received interrupt signal
% date
tisdag, 24 oktober 2000 kl 13:04:22 MET DST
--
Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
Re: APR cvs-update problems?
Posted by Karl Fogel <kf...@galois.collab.net>.
(For Brian B.)
Well, before the server can send any updates at all, the client has to
communicate the revision numbers of all the files being updated. If
you update from the top of the APR tree, that's every file in APR :-)
(unfortunately, because revision numbers are per-file, CVS has to list
each one -- basically, it spits the contents of its Entries files at
the server). That's probably what's causing the delay. Building the
stuff in /tmp first on the server side also doesn't help.
I doubt that making CVS parallelize these is practical. That's a lot
of work to fix something we're hoping to make obsolete anyway.
[Just a note: In Subversion, the client also has to communicate its
local state to the server, but does so efficiently by expressing a
single base version and the places where it differs from that base.
It doesn't have to list each file. And the server will not be
building no trees in /tmp no way. :-) ]
-K
Brian Behlendorf <br...@collab.net> writes:
> I've noticed this happens too - and fwiw, I am responnsible for the
> admin of apache.org, so I've got an interest in fixing this. =)
>
> Given that we have a few people here who are familiar with CVS internals,
> let me ask - before a cvs update starts updating the remote client, there
> is always this delay. What's it doing? Is it recursing through the
> client and server trees, noting where the deltas are first, before sending
> any data? It appears to be building a huge dir in /tmp for the
> specific process, building up the actual content to be shipped; I presume
> this means recursing through the whole tree, which for something like apr
> can be kinda big (and locus's I/O is pretty impacted). Karl/Jim, does
> this make sense? If so, is there a way to have that streamed, so that
> network I/O doesn't have to wait for all that disk I/O to complete first?
>
> Brian
Re: APR cvs-update problems?
Posted by Brian Behlendorf <br...@collab.net>.
On 24 Oct 2000, Ben Collins-Sussman wrote:
> For some reason, apr's pserver is *super* slow. When you update
> inside apr/, it often takes a minute or more before anything prints to
> stdout. Just be patient -- once it finally starts the update, it
> clips along.
I've noticed this happens too - and fwiw, I am responnsible for the
admin of apache.org, so I've got an interest in fixing this. =)
Given that we have a few people here who are familiar with CVS internals,
let me ask - before a cvs update starts updating the remote client, there
is always this delay. What's it doing? Is it recursing through the
client and server trees, noting where the deltas are first, before sending
any data? It appears to be building a huge dir in /tmp for the
specific process, building up the actual content to be shipped; I presume
this means recursing through the whole tree, which for something like apr
can be kinda big (and locus's I/O is pretty impacted). Karl/Jim, does
this make sense? If so, is there a way to have that streamed, so that
network I/O doesn't have to wait for all that disk I/O to complete first?
Brian
Re: APR cvs-update problems?
Posted by Ben Collins-Sussman <su...@newton.collab.net>.
Daniel Stenberg <da...@haxx.se> writes:
> I have reason to believe that this is because my APR tree isn't updated. Now,
> when I try to update my APR sources (using the CVS root
> :pserver:anoncvs@www.apache.org:/home/cvspublic) my cvs client just hangs
> forever without getting any updates(2).
>
Indeed, your apr tree is old.
For some reason, apr's pserver is *super* slow. When you update
inside apr/, it often takes a minute or more before anything prints to
stdout. Just be patient -- once it finally starts the update, it
clips along.