Re: mlockability

Rogier Wolff (R.E.Wolff@BitWizard.nl)
Thu, 16 Sep 1999 09:08:51 +0200 (MEST)


Martin Mares said:
> If you create 4096 processes, their task_structs take 32MB themselves,
> page tables will take another large amount of unswappable memory. Given
> that, the 16 megabytes which can be eaten by mlock()ing don't seem to
> cause much more harm.

Right, however, this was assuming you'd want to allow the user to use
mlock at all -> limit set at > 0: One page. That's hardly useful. If
you have a 64M machine you really do want to set the limits such that
a user can mlock one or two megabytes of memory (to run that mpeg
video decoder smoothly) but not allow them to do that in 1000
processes at the same time.

Roger.

-- 
** R.E.Wolff@BitWizard.nl ** http://www.BitWizard.nl/ ** +31-15-2137555 **
*-- BitWizard writes Linux device drivers for any device you may have! --*
------ Microsoft SELLS you Windows, Linux GIVES you the whole house ------

- 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/