0 result(s) found
No result found
SUSE Linux Enterprise Server - What Does the memlock Option in limits.conf Do?

SUSE Linux Enterprise Server - What Does the memlock Option in limits.conf Do?

Information

What does the memlock option in /etc/security/limits.conf do?

Details

The limits.conf file is the configuration file for the pam_limits module. The PAM module limits the system resources that a user process can acquire. Per the manpage for limits.conf, the memlock option is used to set the maximum amount of locked-in-memory address space as given in kilobytes:

              memlock
                     maximum locked-in-memory address space (KB)

This is memory that will not be paged out. It is frequently used by database management applications such as Oracle or Sybase to lock shared memory for a shared pool so that it is always in memory for access by multiple sessions.

For example, huge pages are locked into physical memory and are allocated by database applications. Therefore, one must assure that memlock is set to account for the at least the total amount of huge pages that will be allocated.

Example settings:

Oracle
Soft
memlock
1048576
Oracle
Hard
memlock
1048576

To verify the memlock setting for a process, use the -l option with the ulimit command:

# ulimit -l
1048576

©Copyright 2025 Hewlett Packard Enterprise Development LP Hewlett Packard Enterprise Development shall not be liable for technical or editorial errors or omissions contained herein. The information provided is provided "as is" without warranty of any kind. To the extent permitted by law, neither HPE nor its affiliates, subcontractors or suppliers will be liable for incidental, special or consequential damages including downtime cost; lost profits; damages relating to the procurement of substitute products or services; or damages for loss of data, or software restoration. The information in this document is subject to change without notice. Hewlett Packard Enterprise Development and the names of Hewlett Packard Enterprise Development products referenced herein are trademarks of Hewlett Packard Enterprise Development in the United States and other countries. Other product and company names mentioned herein may be trademarks of their respective owners.
Legal Disclaimer: Products sold prior to the November 1, 2015 separation of Hewlett-Packard Company into Hewlett Packard Enterprise Company and HP Inc. may have older product names and model numbers that differ from current models.
Hewlett Packard Enterprise believes in being unconditionally inclusive. Efforts to replace noninclusive terms in our active products are ongoing.
wiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiwiw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