Can I ask you why do you need to allocate memsys5 memory pool in the
first place? Why don't you use standard mallocs? Or even your own
allocator?
I just have a feeling that you're pursuing some goals very specific to
your application and this kind of functionality is not necessary to
anybody else.
Its not a problem in SQLite. I need a feature enhancement.
Currently in SQLite i can allocate memory in a block.
Example:
2.5MB memory for memsys5 memory pool. Here 2MB i am using for Mem Db and
0.5MB for heap and other DB cache.
I want flexibility such that when i close mem db, the 2MB should b
OK. So you have allocated memsys5 memory pool and now are complaining
that this memory is not returned to OS?
Sorry, but it's not quite understandable what do you want to achieve,
what's the problem with it and how did you find that there's a
problem.
Pavel
On Thu, Aug 27, 2009 at 6:11 AM, shank
I have allocated memory for SQLite heap and using memsys5 memory pool
algorithm to manage the heap. So if free is called it will be added to free
list of memsys5 memory pool.
Regards
Shankar
On Wed, Aug 26, 2009 at 7:51 PM, Pavel Ivanov wrote:
> And I mean that you're wrong in this vision. SQLi
I mean to say free to the OS so that it can use for other purpose.
SQlite frees but maintains to the memory will be present in SQLite memory
pool or heap. Not to the OS.
Regards
Shankar
On Wed, Aug 26, 2009 at 7:15 PM, Pavel Ivanov wrote:
> > SQLite currently does not support freeing of alloca
And I mean that you're wrong in this vision. SQLite doesn't keep
memory in pools if it doesn't belong to cache necessary to some open
connection. At least SQLite calls free() which of course doesn't
necessarily mean that memory will be returned to OS.
Pavel
On Wed, Aug 26, 2009 at 10:02 AM, shan
> SQLite currently does not support freeing of allocated memory
> unless it is shutdown.
It seams to me that you're wrong in this conclusion or elaborate
please how did you come to it.
In fact SQLite always frees all memory related to connection
(including cache) when you close it. And you can cle
Hi,
I am using SQLite in a embedded system which has the following databases
1. 64MB Flash stored Database for persistent storage
2. 2 MB In-Memory Database.
When the Memory Database is closed the 2MB should be returned to the
operating system. The 2 MB will be reallocated when the system
8 matches
Mail list logo