lkml.org 
[lkml]   [2006]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: mlock into kernel module
* sej (sej@sej.fr) wrote:
> So how to set rlimits ?

You have a few options. Considering your program can't run as root,
that means directly using setrlimit (or smth like ulimit in bash) is
probably not right for you. Take a look at the pam docs for
/etc/security/limits.conf, specifically for memlock.

> My program is in user mode and has to allocate about 128MB to 512MB of
> non swappable memory. Maybe I can change the rlimits rights into my
> kernel module ?

I have no idea what your kernel module is, nor what your exact
requirements are. However, you shouldn't be changing rlimits in a
kernel module, there's plenty of userspace support for that.

thanks,
-chris
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-05-15 19:25    [W:0.214 / U:2.664 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site