Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "ulimit -l" mean?

Tags:

linux

ulimit

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?

like image 407
Eric Yung Avatar asked Jun 10 '09 09:06

Eric Yung


People also ask

What does Ulimit mean?

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.

What is locked memory in Linux?

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.

What is Max locked memory?

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.

How do you check Ulimit?

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.


1 Answers

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.

like image 85
1800 INFORMATION Avatar answered Sep 20 '22 23:09

1800 INFORMATION