> this means that the malloc *succeeded* it wasn't until i forced
> the pagefault with the memset that i ran out of memory.  what's
> going on here?

you know what's going on here.  read the subject you wrote.

the problem is not really as easy as it might seem at first.
malloc just moves the brk, but the backing pages don't get
allocated until the pages are accessed (during memset).

you could argue for some kind of accounting that would
ensure pages were available, but this could only be
terribly pessimistic, especially in the case of stacks
and fork.

russ

Reply via email to