dpb wrote:
> Dear Community,
>
> Assuming that SQLite would arrange the database table contents on page
> boundary and
>
> 1)  if db is small let us say maximum 5MB,
>
> 2  further if such a db is part of windows service / application running
> continuously then may be pages will remain in the memory under normal
> conditions.
>
> Q1) Operating System like Windows would cache the series of pages, is this
> behavior not almost same as that of Cache?

The Windows cache manager is quite aggressive at evicting cached pages from 
RAM. It used to be tunable back in Win2000, but none of those tuning knobs 
survived past WinXP. Generally, if you access some data, leave it for more 
than 5-10 seconds, don't expect to be able to reference it again without 
incurring a hard page fault.

Note that the cache eviction runs quite frequently - once every 5 seconds or 
so, and evicts pages regardless of whether there's any memory pressure in the 
system. It's quite possibly the stupidest cache manager ever written.

-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/

Reply via email to