On Mon, Oct 28, 2013 at 8:13 AM, Raheel Gupta <raheel...@gmail.com> wrote:

> >> Then you have answered your question. The amount of memory still being
> used is the size of the cache.
>
> Sir, that is the PEAK usage it goes upto.
> After "PRAGMA shrink_memory" it goes down only to 65MB, which is 1000 Pages
> as per 64K page sizes.
> Shouldnt it go down to the original usage of around 2-3 MB ?
> No matter what you do the 65MB usage is always there.
>


SQLite is invoking the free() library routine on the excess memory.
Whether or not free() returns that space to the operating system or keeps
it around to satisfy future malloc() calls is a detail of the
implementation of free().  SQLite has no control over that.

-- 
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