mlock notes

Some quick notes about mlock, running GridGraph with set to a limited number results in error.

Documentation for mlock

http://man7.org/linux/man-pages/man2/mlock.2.html

This specifies the amount of memory you can lock, preventing from being swapped.

mlock() and mlockall() respectively lock part or all of the calling process’s virtual address space into RAM, preventing that memory from being paged to the swap area. munlock() andmunlockall() perform the converse operation, respectively unlocking part or all of the calling process’s virtual address space, so that pages in the specified virtual address range may once more to be swapped out if required by the kernel memory manager. Memory locking and unlocking are performed in units of whole pages.

http://www.tutorialspoint.com/unix_system_calls/mlock.htm

To check you mlock limit

ulimit -l

it will show “unlimited” if it is set to unlimited.

 

Advertisements
This entry was posted in Linux, Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s