Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: Recursive Revert

fsvs
Discussion topic

Back to topic list

Re: Recursive Revert

Author pmarek
Full name P.Marek
Date 2007-10-02 05:04:16 PDT
Message On Friday 28 September 2007 Simon Spr√ľnker wrote:
> I am using svn+ssh://.

With svn+ssh:// and a 100MB random-bytes file I can reproduce the
memory usage. The only problem is ... it doesn't seem to be a problem
in my functions, but in subversion:


Breakpoint 1, 0x00002b4c96ff7540 in sbrk () from /lib/libc.so.6
(gdb) bt
#0 0x00002b4c96ff7540 in sbrk () from /lib/libc.so.6
#1 0x00002b4c96fa1649 in __default_morecore () from /lib/libc.so.6
#2 0x00002b4c96f9d997 in ?? () from /lib/libc.so.6
#3 0x00002b4c96f9ed63 in malloc () from /lib/libc.so.6
#4 0x00002b4c973b84dc in apr_palloc () from /usr/lib/libapr-1.so.0
#5 0x00002b4c965bcea6 in svn_stringbuf_ensure () from /usr/lib/libsvn_subr-1.so.1
#6 0x00002b4c965bcf32 in svn_stringbuf_appendbytes () from /usr/lib/libsvn_subr-1.so.1
#7 0x00002b4c9844758f in ?? () from /usr/lib/libsvn_ra_svn-1.so.1
#8 0x00002b4c9844764d in svn_ra_svn_read_item () from /usr/lib/libsvn_ra_svn-1.so.1
#9 0x00002b4c98440acc in ?? () from /usr/lib/libsvn_ra_svn-1.so.1
#10 0x0000000000413a91 in rev__get_file (sts=0x63baf0, revision=10, fetched=0x7fff147299d8, only_tmp=0x0, pool=<value optimi
#11 0x0000000000414505 in rev__action (sts=0x63baf0, path=0x63d178 "./asdf") at revert.c:445
#12 0x0000000000404024 in ac__dispatch (sts=0x63baf0, path=0x63d178 "./asdf") at actions.c:53
#13 0x000000000041a762 in waa__update_tree (root=<value optimized out>, cur_block=0x63bbe0) at waa.c:1894
#14 0x000000000041a97b in waa__partial_update (root=0x7fff14729b80, argc=1, normalized=0xfffffffffffff000, orig=0x7fff14729d
#15 0x000000000041c84c in waa__read_or_build_tree (root=0x7fff14729b80, argc=1, normalized=0x632350, orig=0x7fff14729d88, re
#16 0x0000000000413546 in rev__work (root=0x7fff14729b80, argc=1, argv=0x7fff14729d88) at revert.c:556
#17 0x000000000040c78c in main (argc=4, args=0x7fff14729d78) at fsvs.c:991


The memory gets allocated to increase a stringbuf ... although revert.c:176 says
    stream=svn_stream_fr​om_aprfile(a_stream,​ subpool);
so it should go directly into a file.

(BTW, the same happens on update - and I can reproduce it there, too.)

I've got libsvn1=1.4.4dfsg1-1.


So, for a summary -- I can see the problem, but as yet I don't
know where it happens.


Regards,

Phil


--
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

« Previous message in topic | 18 of 19 | Next message in topic »

Messages

Show all messages in topic

Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-03 15:41:30 PDT
     Re: Recursive Revert pmarek P.Marek 2007-09-03 23:31:40 PDT
         Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-04 11:16:01 PDT
             Re: Recursive Revert pmarek P.Marek 2007-09-04 22:05:07 PDT
                 Re: Recursive Revert pmarek P.Marek 2007-09-04 22:05:23 PDT
                     Re: Recursive Revert pmarek P.Marek 2007-09-05 09:50:55 PDT
                     Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-05 06:51:34 PDT
                         Re: Recursive Revert pmarek P.Marek 2007-09-05 22:19:17 PDT
                             Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-20 12:59:44 PDT
                                 Re: Recursive Revert pmarek P.Marek 2007-09-20 22:09:29 PDT
                                     Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <simon at spruenker dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <simon at spruenker dot de> 2007-09-20 22:26:30 PDT
                                         Re: Recursive Revert pmarek P.Marek 2007-09-27 06:41:35 PDT
                                             Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-27 10:31:18 PDT
                                             Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-27 22:59:26 PDT
                                                 Re: Recursive Revert pmarek P.Marek 2007-09-28 00:16:34 PDT
                                                     Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-28 16:54:09 PDT
                                                     Re: Recursive Revert =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> =?UTF-8?B?U2ltb24gU3Byw7xua2Vy?= <fsvs at semjon dot de> 2007-09-28 09:32:49 PDT
                                                         Re: Recursive Revert pmarek P.Marek 2007-10-02 05:04:16 PDT
                                                             Re: Recursive Revert pmarek P.Marek 2007-10-03 08:42:55 PDT
Messages per page: