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

Namespace:  BerkeleyDB
Assembly:  libdb_dotnet52 (in libdb_dotnet52.dll) Version:


public uint MMapSize { get; set; }
Visual Basic (Declaration)
Public Property MMapSize As UInteger
Visual C++
property unsigned int MMapSize {
	unsigned int get ();
	void set (unsigned int value);


Files that are opened read-only in the cache (and that satisfy a few other criteria) are, by default, mapped into the process address space instead of being copied into the local cache. This can result in better-than-usual performance because available virtual memory is normally much larger than the local cache, and page faults are faster than page copying on many systems. However, it can cause resource starvation in the presence of limited virtual memory, and it can result in immense process sizes in the presence of large databases.

See Also