June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> int DbEnv::set_cachesize(u_int32_t gbytes, u_int32_t bytes, int ncache);
Set the size of the database’s shared memory buffer pool; that is, the cache, to gbytes gigabytes plus bytes. The cache should be the size of the normal working data set of the application, with some small amount of additional memory for unusual situations. (Note, the working set is not the same as the number of simultaneously referenced pages, and should be quite a bit larger!)
The default cache size is 256KB, and may not be specified as less than 20KB. Any cache size less than 500MB is automatically increased by 25% to account for buffer pool overhead, cache sizes larger than 500MB are used, as specified. For information ...