pvaneynd: (Default)
pvaneynd ([personal profile] pvaneynd) wrote2004-12-08 03:34 pm

lazy allocating sbcl

Compare:

$ ps -p 19100  -o pid,pmem,rss,size,sz,vsz,args

PID %MEM RSS SZ SZ VSZ COMMAND
19100 0.9 9988 6772 8758 35032 ./src/runtime/sbcl --core output/sbcl.core --userinit /dev/null


with

$  ps -p 19114 -o pid,pmem,rss,size,sz,vsz,args

PID %MEM RSS SZ SZ VSZ COMMAND
19114 0.9 9732 859548 221711 886844 sbcl --userinit /dev/null


I patched sbcl to allocate all memory only when it actually needs to use it, not at startup. The resident size is the same, but the virtual size is quite smaller. The patches are quite ugly, but the resulting sbcl seems to survive the test-suite without problems.

I do think there is a need to add thread awareness to the patches and if someone ports this back to cmucl I can close bug 282716.

Expect an email tonight :-).

//apparent success (reached end of run-tests.sh normally)



Joy!



(edited slighly. Oh it is "Van Eynde, Peter")




Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting