Heres is the URL to a malloc library I have found, that seems to provide all the basic features necessary, is very fast (bin/circle -c without library took 20 seconds, with library and some basic options took 26 seconds - on a P2/233 w/ Intel-LX board). Memory usage was not excessive, in fact, it didn't seem to use much extra memory at all (when I say "extra" if the memory usage goes to 1.5x normal, I complain). Admittedly it doesn't use any fancy memory protection schemes to catch overruns (the only library I found that does that is Electric Fence, but it also results in memory usage up to 10-20x normal, and slowdowns to 1/10th normal speed during bootup) http://www.letters.com/dmalloc/ Sample debug output (with about 3 of the MANY options enabled), logged to a file of your choice: 70359: Dmalloc version '3.3.0'. UN-LICENSED copy. 70359: dmalloc_logfile 'dmalloc.log': flags = 0x403, addr = 0 70359: starting time = 881768332 70359: free count/bits: 79/4 115/5 19/6 20/7 1/8 3/9 2/10 1/11 70359: basic-block 4096 bytes, alignment 8 bytes, heap grows up 70359: heap: 0x8104000 to 0x8712000, size 6348800 bytes (1550 blocks), checked 0 70359: alloc calls: malloc 1130, realloc 1, calloc 68536, free 692 70359: total memory allocated: 4419963 bytes (69667 pnts) 70359: max in use at one time: 4080860 bytes (68977 pnts) 70359: max alloced with 1 call: 498900 bytes 70359: max alloc rounding loss: 1192740 bytes (22%) 70359: max memory space wasted: 0 bytes (0%) 70359: final user memory space: basic 282, divided 1009, 4095262 bytes 70359: final admin overhead: basic 7, divided 252, 1060864 bytes (16%) 70359: final external space: 0 bytes (0 blocks) 70359: unknown memory not freed: 68974 pointers, 3252966 bytes 70359: ending time = 881768368, elapsed since start = 0:0:36 Looks very good, has MANY MANY options. I'll use it a bit and report. - Chris Jacobson PS: Found it doing a Yahoo search for "malloc" +------------------------------------------------------------+ | Ensure that you have read the CircleMUD Mailing List FAQ: | | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html | +------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/08/00 PST