|
Home > Archive > Cheap Linux Hardware > August 2006 > Not able to mlock
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
|
| Hi all!,
I am not able to mlock more than half of the memory available. I am
working on ARM processor in which
64 MB of SDRAM memory is available. But I am not able to mlock more
than 32 MB. If I am trying to allocate more than 32 MB, it return
an ENOMEM error. Can any one suggest me why this is happening and what
is the way to mlock more than 32 MB?
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?
Thanks and Regards,
P.R.Hariram
| |
| Henrik Carlqvist 2006-08-28, 7:19 pm |
| "Hari" <p.r.hariram@gmail.com> 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@variousus.net root@localhost
| |
|
| 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@gmail.com> wrote:
>
> 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@variousus.net root@localhost
| |
| Henrik Carlqvist 2006-08-29, 7:20 pm |
| "Hari" <p.r.hariram@gmail.com> wrote:
> locked memory(kbytes) unlimited
I was hoping that we would find the explanation here, but unfortunately
the limit wasn't set there. The next place to search for an explanation is
probably the kernel sources...
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@variousus.net root@localhost
|
|
|
|
|