lkml.org 
[lkml]   [2002]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [RFC] Arch option to touch newly allocated pages
Date
Followup to:  <200203040504.AAA05343@ccure.karaya.com>
By author: Jeff Dike <jdike@karaya.com>
In newsgroup: linux.dev.kernel
>
> Even with address overcommit management, I can fault if I touch pages when
> tmpfs is full but the system is not near overcommit.
>
> > Furthermore unless you are very careful you may
> > fault again on the stack push for the SIGBUS and if that faults -
> > SIGKILL->OOM time
>
> We are talking about UML kernel stacks. If they have been allocated the way
> I'm proposing with the UML __alloc_pages touching each page on the way out,
> they are allocated on the host, and therefore can't fault.
>
> This seems to me to be sufficiently careful.
>
> One of us is missing something, who is it?
>

I think it's you -- you seem to suffer from the "my application is the
only one that counts" syndrome. If you want to pages dirtied, then
dirty them using memset() or similar.

-hpa
--
<hpa@transmeta.com> at work, <hpa@zytor.com> in private!
"Unix gives you enough rope to shoot yourself in the foot."
http://www.zytor.com/~hpa/puzzle.txt <amsp@zytor.com>
-
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: 2005-03-22 13:24    [W:0.128 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site