* MLOCK_LIMIT needs PAGE_SIZE
@ 2007-07-14 20:47 Olaf Hering
0 siblings, 0 replies; only message in thread
From: Olaf Hering @ 2007-07-14 20:47 UTC (permalink / raw)
To: Andrew Morton, linux-kernel
commit 448580132dc7f55493269bb850c2955df9c7d778 in Aug 2004 changed
MLOCK_LIMIT from (32*1024) to (8 * PAGE_SIZE):
[PATCH] sane mlock_limit
As David M-T points out, the default per-user mlock limit should
be at least a single page.
linux/resource.h appears to be a userspace header. PAGE_SIZE is
unavailable because asm/page.h is not included.
Will an extra #include asm/page.h cause any trouble for kernel builds?
It currently gets included via linux/time.h -> linux/seqlock.h ->
linux/spinlock.h -> something.
Userspace PAGE_SIZE will be discussed in another mail.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-14 20:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-14 20:47 MLOCK_LIMIT needs PAGE_SIZE Olaf Hering
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox