According to the manpage, "-l" in ulimit means "The maximum size that may be locked into memory". What does this sentence mean, exactly? How may it affect running programs?
ulimit is a built-in Linux shell command that allows viewing or limiting system resource amounts that individual users consume. Limiting resource usage is valuable in environments with multiple users and system performance issues.
Memory locking is one way to ensure that a process stays in main memory and is exempt from paging. In a realtime environment, a system must be able to guarantee that it will lock a process in memory to reduce latency for data access, instruction fetches, buffer passing between processes, and so forth.
max locked memory (kbytes, -l) The maximum size that may be locked into memory. Memory locking ensures the memory is always in RAM and never moved to the swap disk. https://stackoverflow.com/questions/9818755/why-would-we-need-to-lock-a-processs-address-space-in-ram.
To verify the soft ulimit settings, run the command ulimit -aS. To verify the hard ulimit settings, run the command ulimit -aH. For AIX and Linux, the installation program attempts to set these ulimit settings for the administrator ID. Verify the settings and if they are not correct, set them to the correct values.
Memory that is locked may not be paged out - this reduces the amount of memory that is available for other processes. This setting limits the amount of memory that can be locked.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With