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

Re: RFV on issue 860 (httpd memory usage)

From: Michael Price <mprice_at_atl.lmco.com>
Date: 2002-11-13 06:57:02 CET

This isn't httpd related but it is issue 860 related. There is an svn
memory leak and/or memory issue. The script below should explain better
than I can.

Note that the program crashed in the last example due to the hard memory
limits I set (as the subsequent 'ulimit -a' shows).

Michael

Script started on Wed Nov 13 00:03:13 2002
(Warning: MANPATH environment variable set)
mprice@taco ~/test> dd if=/dev/urandom of=big-ass-file bs=1024 count=1048576
1048576+0 records in
1048576+0 records out
1073741824 bytes transferred in 432.467511 secs (2482827 bytes/sec)
mprice@taco ~/test> svnadmin create repo
mprice_at_taco ~/test> svn co file:///$HOME/test/repo wc
Checked out revision 0.
mprice@taco ~/test> mv big-ass-file wc
mprice@taco ~/test> cd wc
mprice@taco ~/test/wc> svn add big-ass-file
A (bin) big-ass-file
mprice@taco ~/test/wc> /usr/bin/time -l svn commit -m "Initial big-ass commit."
Adding (bin) big-ass-file
Transmitting file data .
Committed revision 1.
     1737.10 real 469.79 user 93.13 sys
      5148 maximum resident set size
      1156 average shared memory size
      3271 average unshared data size
       128 average unshared stack size
      3655 page reclaims
        18 page faults
         0 swaps
     65866 block input operations
    226469 block output operations
         0 messages sent
         0 messages received
         0 signals received
    132763 voluntary context switches
     20309 involuntary context switches
mprice@taco ~/test/wc> cd ..
mprice@taco ~/test> rm -fr wc
mprice@taco ~/test> cd repo/db
mprice@taco ~/test/repo/db> db_archive | xargs /bin/rm
mprice@taco ~/test/repo/db> cd ..
mprice@taco ~/test/repo> cd ..
mprice_at_taco ~/test> /usr/bin/time -l svn co file:///$HOME/test/repo wc
time: command terminated abnormally
      155.78 real 68.93 user 7.11 sys
    461872 maximum resident set size
      1158 average shared memory size
    184068 average unshared data size
       128 average unshared stack size
    118627 page reclaims
        18 page faults
         0 swaps
      8750 block input operations
     16605 block output operations
         0 messages sent
         0 messages received
         0 signals received
     21830 voluntary context switches
      9903 involuntary context switches
Abort trap (core dumped)
mprice@taco ~/test> ulimit -a
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) 458752
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) 65536
max memory size (kbytes, -m) 524288
open files (-n) 1024
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 65536
cpu time (seconds, -t) unlimited
max user processes (-u) 1024
virtual memory (kbytes, -v) 524288
mprice@taco ~/test> exit

Script done on Wed Nov 13 00:50:37 2002

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Nov 13 06:59:33 2002

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

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