June 2001
Intermediate to advanced
688 pages
19h 18m
English
#include <db_cxx.h> static int DbEnv::set_region_init(int region_init);
Page-fault shared regions into memory when initially creating or joining a Berkeley DB environment. In some applications, the expense of page-faulting the shared memory regions can affect performance; for example, when the page-fault occurs while holding a lock, other lock requests can convoy and overall throughput may decrease. Setting region_init to a non-zero value specifies that shared regions be read or written, as appropriate, when the region is joined by the application. This forces the underlying virtual memory and file systems to instantiate both the necessary memory and the necessary disk space. This can also avoid out-of-disk ...