Re: Not able to mlock



Hi Henrik,

Thanks for your reply. I am running bash and so I executed ulimit -a
and got the following output.

------------------------output 0f ulimit -a---------------------------
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 0
memory(kbytes) unlimited
locked memory(kbytes) unlimited
process 512
nofiles 1024
vmemory(kbytes) unlimited
locks unlimited
-------------------------------------------------------------------------

From the above I got there is no limit set for locked memory(am I
correct). But even though I am not able to mlock more than half of the
memory. I am using 2.4.20 linux kernel.

Thanks and Regards,
P.R.Hariram

Henrik Carlqvist wrote:
"Hari" <p.r.hariram@xxxxxxxxx> wrote:
Please let me know, do I need to set the limit for mlock in kernel? If so,
where do I set the limit for mlock?

If you are running bash, what does "ulimit -a" say? If you are running
tcsh, try "limit" instead.

regards Henrik
--
The address in the header is only to prevent spam. My real address is:
hc8(at)uthyres.com Examples of addresses which go to spammers:
root@xxxxxxxxxxxxx root@localhost

.