Re: Want to allocate almost all the memory with no swap

James A. Sutherland
2001-04-19T16:11:34Z

On Thu, 19 Apr 2001 11:57:45 -0400, you wrote:

>> Well, I have removed as many processes deamons as I could, and there are
>> not many left.
>> But under both 2.4.2 and 2.2.17 (with swap on)I get, when I run my
>> program:
>>
>> mlockall: Cannot allocate memory
>
>mlockall() requires root priviledges.

Uh... if calling mlockall() as a non-root user gives that error,
someone should fix the error returned...

Sorry, I should have mentioned that it required you to be root!

James.