Re: mlockability

Juan Carlos Castro y Castro (jcastro@appi.com.br)
Wed, 15 Sep 1999 12:20:44 -0300


This is a multi-part message in MIME format.
--------------2253B49BC973F5E80A9C479C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Alan Cox wrote:

> > Couldn't there be a kernel option (maybe tunable by /proc/something)
> > through wich the kernel could grant a limited amount of mlock-able
> > memory for each non-root process? This could default to 0 but be
> > increased when sensitive software is being used.
>
> You would probably want it to be per user. If you allow one page per
> process then you allow potentially 16Mb of lockable mmory per user 8(
>
> Patches accepted 8)

Well, I've never changed a line of code in the kernel (or in any
GPL product by the way) but I strolled thru the code and it seems the
right place to hack this woud be the capable() function. I wonder if
I could borrow some concepts from the quota system too, for the per-user
limit handling. Am I making any sense at all?

--------------2253B49BC973F5E80A9C479C
Content-Type: text/x-vcard; charset=us-ascii;
name="jcastro.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Juan Carlos Castro y Castro
Content-Disposition: attachment;
filename="jcastro.vcf"

begin:vcard
n:Castro;Juan
tel;work:55 (21) 540-9100
x-mozilla-html:FALSE
url:http://www.appi.com.br/jcastro
org:APPI Informática Ltda.;Desenvolvimento
adr:;;Av. Ataulfo de Paiva, 135/1410;Rio de Janeiro;RJ;22449-900;Brazil
version:2.1
email;internet:jcastro@appi.com.br
title:Consultor
note:One man alone cannot fight the future. USE LINUX!
x-mozilla-cpt:;28896
fn:Juan Carlos Castro y Castro
end:vcard

--------------2253B49BC973F5E80A9C479C--

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