<xml></xml>

Collapse All Expand All Code: All Code: Multiple Code: C# Code: Visual Basic Code: Visual C++

Berkeley DB .NET API Documentation
DatabaseEnvironment..::.MMapSize Property
DatabaseEnvironment Class See Also

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_dotnet48 (in libdb_dotnet48.dll) Version: 4.8.24.0

# Syntax

C#

    public uint MMapSize { get; set; }

Visual Basic (Declaration)

    Public Property MMapSize As UInteger

Visual C++

    public:
    property unsigned int MMapSize {
    	unsigned int get ();
    	void set (unsigned int value);
    }

# Remarks

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

DatabaseEnvironment Class
BerkeleyDB Namespace