On Mon, Jan 16, 2012 at 4:37 PM, John Elrick <john.elr...@fenestra.com>wrote:

> Sqlite version:                       3.6.17
> Cumulative _mallocs by size
> <= 1kb:                               109,025,904 bytes (565,230 count)
> 1kb to 4kb:                           510,357,112 bytes (485,801 count)
> 4bk to 8kb:                           48,005,376 bytes (11,610 count)
>
> Sqlite version:                       3.7.9
> Cumulative _mallocs by size
> <= 1kb:                               1,118,058,528 bytes (63,640,300
> count)
> 1kb to 4kb:                           3,836,490,296 bytes (6,197,060 count)
>

Clearly there are many more small mallocs happening with 3.7.9 than with
3.6.17.  We just need to figure out why.

Here's a suggestion:  Run the program in a debugger and look at the stack
trace every time a small malloc occurs..  Since the extra mallocs far
outnumber the regular mallocs, chances are you'll find the place which is
doing all of the extra mallocing pretty quickly.  Please let us know where
all these extra mallocs are coming from.

If you can give me 6 or 12 different places from within SQLite where the
extra mallocs are coming from, that will probably be a sufficient clue.

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to