6I1Berkeley DB: DbEnv.set_mp_mmapsize[P

DbEnv.set_mp_mmapsize





import com.sleepycat.db.*;

+public void set_mp_mmapsize(long mmapsize);





Description



IFiles that are opened read-only in the pool (and that satisfy a few otherHcriteria) are, by default, mapped into the process address space insteadKof being copied into the local cache. This can result in better-than-usualIperformance, as available virtual memory is normally much larger than theJlocal cache, and page faults are faster than page copying on many systems.HHowever, in the presence of limited virtual memory it can cause resourceLstarvation, and in the presence of large databases, it can result in immenseprocess sizes.

ESet the maximum file size, in bytes, for a file to be mapped into theFprocess address space. If no value is specified, it defaults to 10Mb.



Class

3DbEnv



See Also

>DbEnv.appinit,>DbEnv.appexit,>DbEnv.version,FDbEnv.get_lg_info,FDbEnv.get_lk_info,FDbEnv.get_mp_info,FDbEnv.get_tx_info,dbenv_set_data_dir,FDbEnv.set_errcall,PDbEnv.set_error_stream,DDbEnv.set_errpfx,DDbEnv.set_lg_max,PDbEnv.set_lk_conflicts,JDbEnv.set_lk_detect,HDbEnv.set_lk_modes,DDbEnv.set_lorder,DbEnv.set_mp_mmapsize,FDbEnv.set_mp_size,DDbEnv.set_tx_max,andFDbEnv.set_verbose.
ÿÿ