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

C#
Visual Basic
Visual C++

Berkeley DB .NET API Documentation
DatabaseEnvironment..::.InitRegions Property
DatabaseEnvironment Class See Also Send Feedback

If true, Berkeley DB page-faults shared regions into memory when initially creating or joining a Berkeley DB environment.

Namespace: BerkeleyDB
Assembly: libdb_dotnet181 (in libdb_dotnet181.dll) Version: 18.1.32.0

# Syntax

C#
    public bool InitRegions { get; set; }

Visual Basic (Declaration)
    Public Property InitRegions As Boolean

Visual C++
    public:
    property bool InitRegions {
    	bool get ();
    	void set (bool value);
    }

# Remarks

In some applications, the expense of page-faulting the underlying shared memory regions can affect performance. (For example, if the page-fault occurs while holding a lock, other lock requests can convoy, and overall throughput may decrease.)

In addition to page-faulting, Berkeley DB writes the shared regions when creating an environment, forcing the underlying virtual memory and filesystems to instantiate both the necessary memory and the necessary disk space. This can also avoid out-of-disk space failures later on.

# See Also

DatabaseEnvironment Class
BerkeleyDB Namespace