You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Andrea Antonio Maleci <A....@iwbank.it> on 2009/10/01 13:58:02 UTC

RE: SVN 1.6.5 with memcached

May be nobody uses memcached with subversion ?
I'm googleing but I don't find anything.

Any hint will be appreciated.

Tks,
Andrea

From: Andrea Antonio Maleci [mailto:A.Maleci@iwbank.it]
Sent: mercoledì 30 settembre 2009 15.31
To: users@subversion.tigris.org
Subject: SVN 1.6.5 with memcached

Hi all,
I've just built SVN 1.6.5 with httpd-2.2.13 on a Linux Machine, and everything works fine.
Now I'm trying to use it with memcached.
I've started memcashed daemon on 127.0.0.1:11211 using
memcached -d -m 256 -l 127.0.0.1
I've changed db/fsfs.conf with:

[memcached-servers]
first-server = 127.0.0.1:11211

If I try to connect from my windows machine with a svn client, it answers:
svn: Could not open the requested SVN filesystem

If I try to connect directly to my repository with:
# svn list file:///repository/files/DEV
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file:///repository/files/DEV'
svn: apr memcache library not available

If I comment first-servers line on fsfs.conf everything works fine (but without memcached).

What I missed ? Have I to use any configure option on SVN/httpd build to use memcached ?
Thanks all,
Andrea

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: SVN 1.6.5 with memcached

Posted by km...@rockwellcollins.com.
Andrea Antonio Maleci <A....@iwbank.it> wrote on 10/01/2009 12:04:57 
PM:

> Ok, now it works.
> It was because I was using --with-included-apr as subversion configure 
option.
> It seems not working for memcached.
> Now with --with-apr and --with-apr-utils set to --prefix output of 
> relative packages, it works fine.
> Now I'm going to see how much it will perform.. :-)

Let us know your results.  My testing left me unimpressed.  memcached
ended up caching more than the size of the repository, but with little
speed change.  (This could entirely be due to the disk i/o capabilities
of my test server.  I meant to go back and test with slower disks, but
never found a chance to finish those tests.)

Kevin R.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: SVN 1.6.5 with memcached

Posted by Andrea Antonio Maleci <A....@iwbank.it>.
Ok, now it works.
It was because I was using --with-included-apr as subversion configure option.
It seems not working for memcached.
Now with --with-apr and --with-apr-utils set to --prefix output of relative packages, it works fine.
Now I'm going to see how much it will perform.. :-)

Thanks Stefan!
Andrea

-----Original Message-----
From: Stefan Sperling [mailto:stsp@elego.de] 
Sent: giovedì 1 ottobre 2009 17.56
To: Andrea Antonio Maleci; users@subversion.tigris.org
Subject: Re: SVN 1.6.5 with memcached

On Thu, Oct 01, 2009 at 04:47:24PM +0100, Stefan Sperling wrote:
> ./configure --with-apr=/some/dir/apr --with-util=/some/dir/apr'

Correction: --with-apr-util=/some/dir/apr

Stefan

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: SVN 1.6.5 with memcached

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Oct 01, 2009 at 04:47:24PM +0100, Stefan Sperling wrote:
> ./configure --with-apr=/some/dir/apr --with-util=/some/dir/apr'

Correction: --with-apr-util=/some/dir/apr

Stefan

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: SVN 1.6.5 with memcached

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Oct 01, 2009 at 05:21:11PM +0200, Andrea Antonio Maleci wrote:
> Here is mine:
> 
> configure:6674: looking for apr_memcache as part of apr-util
> configure:6688: checking apr_memcache.h usability
> configure:6705: gcc -c -g -O2  -g -O2 -pthread  -D_LARGEFILE64_SOURCE -DNE_LFS   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/private/home/dynamo/subversion-1.6.5/apr/include   -I/private/home/dynamo/subversion-1.6.5/apr-util/include  conftest.c >&5
> configure:6712: $? = 0
> configure:6726: result: yes
> configure:6730: checking apr_memcache.h presence
> configure:6745: gcc -E   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/private/home/dynamo/subversion-1.6.5/apr/include   -I/private/home/dynamo/subversion-1.6.5/apr-util/include  conftest.c
> configure:6752: $? = 0
> configure:6766: result: yes
> configure:6799: checking for apr_memcache.h
> configure:6806: result: yes
> configure:6814: checking for apr_memcache_create in -laprutil-1
> configure:6849: gcc -o conftest -g -O2  -g -O2 -pthread  -D_LARGEFILE64_SOURCE -DNE_LFS   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/private/home/dynamo/subversion-1.6.5/apr/include   -I/private/home/dynamo/subversion-1.6.5/apr-util/include        -L/private/home/dynamo/subversion-1.6.5/apr-util -laprutil-1     -lexpat conftest.c -laprutil-1   >&5
> /usr/bin/ld: cannot find -laprutil-1
> collect2: ld returned 1 exit status
> configure:6856: $? = 1
> configure: failed program was:
> | /* confdefs.h.  */
> | #define PACKAGE_NAME "subversion"
> | #define PACKAGE_TARNAME "subversion"
> | #define PACKAGE_VERSION "1.6.5"
> | #define PACKAGE_STRING "subversion 1.6.5"
> | #define PACKAGE_BUGREPORT "http://subversion.tigris.org/"
> 
> I find on /private/home/dynamo/subversion-1.6.5/apr-util lots of files. In them I see:
> 
> -rw-rw-r--  1 dynamo dynamo    2487 Oct  1 16:34 libaprutil-1.la
> 
> Have I to build apr-util with some different options ?

No, the problem is at a different level.
The linker (ld) cannot find the apr-util library.

It is possible that Subversion's build scripts are not smart enough
to check for apr_memcache_create if apr-util has not been installed yet.
The APR libraries won't appear as "real" libraries until after 'make install'.
Only "libtool" knows how to find the libraries before make install, but
the check for apr_memcache_create does not use libtool, it uses ld.

I think you should try to install apr and apr-util into some directory,
i.e. remove the apr and apr-util subdirectories from the subversion source
tree, 'cd apr; ./configure --prefix=/some/dir/apr ; make ; make install',
'cd apr-util; configure --with-apr=/some/dir/apr --prefix=/some/dir/apr ;
make ; make install', and then point Subversion at the installed APR
libraries: ./configure --with-apr=/some/dir/apr --with-util=/some/dir/apr'

That's what I do and it works well.

Stefan

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: SVN 1.6.5 with memcached

Posted by Andrea Antonio Maleci <A....@iwbank.it>.
Here is mine:

configure:6674: looking for apr_memcache as part of apr-util
configure:6688: checking apr_memcache.h usability
configure:6705: gcc -c -g -O2  -g -O2 -pthread  -D_LARGEFILE64_SOURCE -DNE_LFS   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/private/home/dynamo/subversion-1.6.5/apr/include   -I/private/home/dynamo/subversion-1.6.5/apr-util/include  conftest.c >&5
configure:6712: $? = 0
configure:6726: result: yes
configure:6730: checking apr_memcache.h presence
configure:6745: gcc -E   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/private/home/dynamo/subversion-1.6.5/apr/include   -I/private/home/dynamo/subversion-1.6.5/apr-util/include  conftest.c
configure:6752: $? = 0
configure:6766: result: yes
configure:6799: checking for apr_memcache.h
configure:6806: result: yes
configure:6814: checking for apr_memcache_create in -laprutil-1
configure:6849: gcc -o conftest -g -O2  -g -O2 -pthread  -D_LARGEFILE64_SOURCE -DNE_LFS   -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE  -I/private/home/dynamo/subversion-1.6.5/apr/include   -I/private/home/dynamo/subversion-1.6.5/apr-util/include        -L/private/home/dynamo/subversion-1.6.5/apr-util -laprutil-1     -lexpat conftest.c -laprutil-1   >&5
/usr/bin/ld: cannot find -laprutil-1
collect2: ld returned 1 exit status
configure:6856: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "subversion"
| #define PACKAGE_TARNAME "subversion"
| #define PACKAGE_VERSION "1.6.5"
| #define PACKAGE_STRING "subversion 1.6.5"
| #define PACKAGE_BUGREPORT "http://subversion.tigris.org/"

I find on /private/home/dynamo/subversion-1.6.5/apr-util lots of files. In them I see:

-rw-rw-r--  1 dynamo dynamo    2487 Oct  1 16:34 libaprutil-1.la

Have I to build apr-util with some different options ?
Thanks,
Andrea


-----Original Message-----
From: 'Stefan Sperling' [mailto:stsp@elego.de] 
Sent: giovedì 1 ottobre 2009 16.44
To: Andrea Antonio Maleci
Cc: users@subversion.tigris.org
Subject: Re: SVN 1.6.5 with memcached

On Thu, Oct 01, 2009 at 04:27:45PM +0200, Andrea Antonio Maleci wrote:
> I've built and installed latest version of httpd (2.2.13), with last APR-util (1.3.9) inside, but it does't work again.
> 
> I suppose there should be a parameter on subversion's configure that I missed.
> I've looked inside distributed configure but I don't find anything.
> Any other idea?

What does your Subversion's config.log say about apr_memcache?

Mine says:

configure:6210: looking for apr_memcache as part of apr-util
configure:6224: checking apr_memcache.h usability
configure:6241: gcc -c -g -O2  -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations      -I/home/stsp/svn/prefix/apr/include/apr-1   -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/bdb/include -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/apr/include conftest.c >&5
configure:6247: $? = 0
configure:6261: result: yes
configure:6265: checking apr_memcache.h presence
configure:6280: gcc -E     -I/home/stsp/svn/prefix/apr/include/apr-1   -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/bdb/include -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/apr/include conftest.c
configure:6286: $? = 0
configure:6300: result: yes
configure:6333: checking for apr_memcache.h
configure:6340: result: yes
configure:6348: checking for apr_memcache_create in -laprutil-1
configure:6383: gcc -o conftest -g -O2  -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations      -I/home/stsp/svn/prefix/apr/include/apr-1   -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/bdb/include -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/apr/include -L/home/stsp/svn/prefix/neon/lib -L/home/stsp/svn/prefix/apr/lib  -L/home/stsp/svn/prefix/bdb/lib -L/home/stsp/svn/prefix/apr/lib -L/home/stsp/svn/prefix/apr/lib -laprutil-1 conftest.c -laprutil-1   >&5
conftest.c:31: warning: function declaration isn't a prototype
conftest.c:34: warning: function declaration isn't a prototype
/home/stsp/svn/prefix/apr/lib/libaprutil-1.so.3.9: warning: strcpy() is almost always misused, please use strlcpy()
/home/stsp/svn/prefix/apr/lib/libaprutil-1.so.3.9: warning: strcat() is almost always misused, please use strlcat()
/home/stsp/svn/prefix/apr/lib/libaprutil-1.so.3.9: warning: sprintf() is often misused, please use snprintf()
configure:6389: $? = 0
configure:6407: result: yes

Stefan

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: SVN 1.6.5 with memcached

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Oct 01, 2009 at 04:27:45PM +0200, Andrea Antonio Maleci wrote:
> I've built and installed latest version of httpd (2.2.13), with last APR-util (1.3.9) inside, but it does't work again.
> 
> I suppose there should be a parameter on subversion's configure that I missed.
> I've looked inside distributed configure but I don't find anything.
> Any other idea?

What does your Subversion's config.log say about apr_memcache?

Mine says:

configure:6210: looking for apr_memcache as part of apr-util
configure:6224: checking apr_memcache.h usability
configure:6241: gcc -c -g -O2  -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations      -I/home/stsp/svn/prefix/apr/include/apr-1   -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/bdb/include -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/apr/include conftest.c >&5
configure:6247: $? = 0
configure:6261: result: yes
configure:6265: checking apr_memcache.h presence
configure:6280: gcc -E     -I/home/stsp/svn/prefix/apr/include/apr-1   -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/bdb/include -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/apr/include conftest.c
configure:6286: $? = 0
configure:6300: result: yes
configure:6333: checking for apr_memcache.h
configure:6340: result: yes
configure:6348: checking for apr_memcache_create in -laprutil-1
configure:6383: gcc -o conftest -g -O2  -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations      -I/home/stsp/svn/prefix/apr/include/apr-1   -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/bdb/include -I/home/stsp/svn/prefix/apr/include/apr-1 -I/home/stsp/svn/prefix/apr/include -L/home/stsp/svn/prefix/neon/lib -L/home/stsp/svn/prefix/apr/lib  -L/home/stsp/svn/prefix/bdb/lib -L/home/stsp/svn/prefix/apr/lib -L/home/stsp/svn/prefix/apr/lib -laprutil-1 conftest.c -laprutil-1   >&5
conftest.c:31: warning: function declaration isn't a prototype
conftest.c:34: warning: function declaration isn't a prototype
/home/stsp/svn/prefix/apr/lib/libaprutil-1.so.3.9: warning: strcpy() is almost always misused, please use strlcpy()
/home/stsp/svn/prefix/apr/lib/libaprutil-1.so.3.9: warning: strcat() is almost always misused, please use strlcat()
/home/stsp/svn/prefix/apr/lib/libaprutil-1.so.3.9: warning: sprintf() is often misused, please use snprintf()
configure:6389: $? = 0
configure:6407: result: yes

Stefan

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

RE: SVN 1.6.5 with memcached

Posted by Andrea Antonio Maleci <A....@iwbank.it>.
I've built and installed latest version of httpd (2.2.13), with last APR-util (1.3.9) inside, but it does't work again.

I suppose there should be a parameter on subversion's configure that I missed.
I've looked inside distributed configure but I don't find anything.
Any other idea?
Thanks
Andrea


-----Original Message-----
From: Stefan Sperling [mailto:stsp@elego.de] 
Sent: giovedì 1 ottobre 2009 16.06
To: Andrea Antonio Maleci
Cc: users@subversion.tigris.org
Subject: Re: SVN 1.6.5 with memcached

On Thu, Oct 01, 2009 at 03:58:02PM +0200, Andrea Antonio Maleci wrote:
> May be nobody uses memcached with subversion ?
> I'm googleing but I don't find anything.
> 
> Any hint will be appreciated.

You need to make sure your version of APR-util has support for
memcached. I know that APR-util 1.3.9 supports it, maybe older
versions support it, too. You will hopefully find more information
at http://apr.apache.org

Stefan

> Tks,
> Andrea
> 
> From: Andrea Antonio Maleci [mailto:A.Maleci@iwbank.it]
> Sent: mercoledì 30 settembre 2009 15.31
> To: users@subversion.tigris.org
> Subject: SVN 1.6.5 with memcached
> 
> Hi all,
> I've just built SVN 1.6.5 with httpd-2.2.13 on a Linux Machine, and everything works fine.
> Now I'm trying to use it with memcached.
> I've started memcashed daemon on 127.0.0.1:11211 using
> memcached -d -m 256 -l 127.0.0.1
> I've changed db/fsfs.conf with:
> 
> [memcached-servers]
> first-server = 127.0.0.1:11211
> 
> If I try to connect from my windows machine with a svn client, it answers:
> svn: Could not open the requested SVN filesystem
> 
> If I try to connect directly to my repository with:
> # svn list file:///repository/files/DEV
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///repository/files/DEV'
> svn: apr memcache library not available
> 
> If I comment first-servers line on fsfs.conf everything works fine (but without memcached).
> 
> What I missed ? Have I to use any configure option on SVN/httpd build to use memcached ?
> Thanks all,
> Andrea
> 
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402534
> 
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

-- 
printf("Eh???/n");

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: SVN 1.6.5 with memcached

Posted by Stefan Sperling <st...@elego.de>.
On Thu, Oct 01, 2009 at 03:58:02PM +0200, Andrea Antonio Maleci wrote:
> May be nobody uses memcached with subversion ?
> I'm googleing but I don't find anything.
> 
> Any hint will be appreciated.

You need to make sure your version of APR-util has support for
memcached. I know that APR-util 1.3.9 supports it, maybe older
versions support it, too. You will hopefully find more information
at http://apr.apache.org

Stefan

> Tks,
> Andrea
> 
> From: Andrea Antonio Maleci [mailto:A.Maleci@iwbank.it]
> Sent: mercoledì 30 settembre 2009 15.31
> To: users@subversion.tigris.org
> Subject: SVN 1.6.5 with memcached
> 
> Hi all,
> I've just built SVN 1.6.5 with httpd-2.2.13 on a Linux Machine, and everything works fine.
> Now I'm trying to use it with memcached.
> I've started memcashed daemon on 127.0.0.1:11211 using
> memcached -d -m 256 -l 127.0.0.1
> I've changed db/fsfs.conf with:
> 
> [memcached-servers]
> first-server = 127.0.0.1:11211
> 
> If I try to connect from my windows machine with a svn client, it answers:
> svn: Could not open the requested SVN filesystem
> 
> If I try to connect directly to my repository with:
> # svn list file:///repository/files/DEV
> svn: Unable to open an ra_local session to URL
> svn: Unable to open repository 'file:///repository/files/DEV'
> svn: apr memcache library not available
> 
> If I comment first-servers line on fsfs.conf everything works fine (but without memcached).
> 
> What I missed ? Have I to use any configure option on SVN/httpd build to use memcached ?
> Thanks all,
> Andrea
> 
> ------------------------------------------------------
> http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2402534
> 
> To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

-- 
printf("Eh???/n");

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].