⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 config.so

📁 berkeley db 4.6.21的源码。berkeley db是一个简单的数据库管理系统
💻 SO
字号:
m4_comment([$Id: config.so,v 10.20 2003/10/18 19:16:04 bostic Exp $])m4_ref_title(Memory Pool Subsystem,    Configuring the memory pool,    @memory pool configuration, mp/intro, txn/intro)m4_p([dnlThere are two issues to consider when configuring the memory pool.])m4_p([dnlThe first issue, the most important tuning parameter for m4_dbapplications, is the size of the memory pool.  There are two ways tospecify the pool size.  First, calling the m4_refT(dbenv_set_cachesize)specifies the pool size for all of the applications sharing the m4_dbenvironment.  Second, the m4_refT(dbh_set_cachesize) only specifies apool size for the specific database.  Note: It is meaningless to callm4_ref(dbh_set_cachesize) for a database opened inside of a m4_dbenvironment because the environment pool size will override any poolsize specified for a single database.  For information on tuning them4_db cache size, see m4_link(M4RELDIR/ref/am_conf/cachesize, [Selectinga cache size]).])m4_p([dnlThe second memory pool configuration issue is the maximum size anunderlying file can be and still be mapped into the process addressspace (instead of reading the file's pages into the cache).  Mappingfiles into the process address space can result in better performancebecause available virtual memory is often much larger than the localcache, and page faults are faster than page copying on many systems.However, in the presence of limited virtual memory, it can causeresource starvation; and in the presence of large databases, it canresult in immense process sizes.  In addition, because of therequirements of the m4_db transactional implementation, only read-onlyfiles can be mapped into process memory.])m4_p([dnlTo specify that no files are to be mapped into the process addressspace, specify the m4_ref(DB_NOMMAP) flag to them4_refT(dbenv_set_flags).  To specify that any individual file shouldnot be mapped into the process address space, specify them4_ref(DB_NOMMAP) flag to the m4_ref(memp_fopen) interface.  To limitthe size of files mapped into the process address space, use them4_refT(dbenv_set_mp_mmapsize).])m4_page_footer

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -