If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > "max locked memory" ulimit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-28-10, 22:23
db2girl db2girl is offline
∞∞∞∞∞∞
 
Join Date: Aug 2008
Location: Toronto, Canada
Posts: 1,816
"max locked memory" ulimit

"ulimit -a" for a db2 instance on Linux RHEL:

User Limits, 'ulimit -a'

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 141312
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) 141312
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited


On some systems, I see "max locked memory" set to some value (ie. 16, 32) and on some it's set to unlimited.


From man pages:
-l The maximum size that may be locked into memory


From http://training.intersystems.com/tut...GCI_unixparms:

"Locked-in Memory
On Linux platforms if you configure Caché to lock the shared memory segment in memory to prevent paging, you must increase the maximum size that may be locked into memory (the memlock parameter). "


Based on my understanding, "max locked memory" is the maximum amount of memory a process can pin. Does it mean that if a process makes a request to pin more memory that what's specified by this parameter, memory allocation will fail? Anyone knows?
Reply With Quote
  #2 (permalink)  
Old 04-29-10, 09:45
Amarnath Reddy Amarnath Reddy is offline
Registered User
 
Join Date: Apr 2010
Posts: 10
Not sure memory allocation will fail, if the process makes a request to pin more memory that what's specified by this parameter.


But if its fail as an workaround you can set the "max locked memory" for a user to unlimited.

> su
> ulimit -l unlimited
> exit
> ulimit -a

or you can also set by leave /etc/security/limits.conf empty
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On