lazy allocating sbcl
Dec. 8th, 2004 03:34 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Compare:
with
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 :-).
Joy!
(edited slighly. Oh it is "Van Eynde, Peter")
$ 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")