From: Chris Wright <chrisw@sous-sol.org>
To: sej <sej@sej.fr>
Cc: Chris Wright <chrisw@sous-sol.org>, linux-kernel@vger.kernel.org
Subject: Re: mlock into kernel module
Date: Mon, 15 May 2006 10:26:19 -0700 [thread overview]
Message-ID: <20060515172619.GT25010@moss.sous-sol.org> (raw)
In-Reply-To: <44683D61.7000405@sej.fr>
* 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
next prev parent reply other threads:[~2006-05-15 17:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <6bHKI-6a8-9@gated-at.bofh.it>
[not found] ` <6bLbw-344-3@gated-at.bofh.it>
2006-05-15 8:35 ` mlock into kernel module sej
2006-05-15 17:26 ` Chris Wright [this message]
2006-05-12 15:22 sej.kernel
2006-05-12 15:52 ` linux-os (Dick Johnson)
2006-05-12 18:44 ` Arjan van de Ven
2006-05-12 19:08 ` Chris Wright
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060515172619.GT25010@moss.sous-sol.org \
--to=chrisw@sous-sol.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sej@sej.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox