Re: Avoiding OOM on overcommit...?

From: Olaf Weber (olaf@infovore.xs4all.nl)
Date: Sat Mar 25 2000 - 04:10:58 EST


Sandy Harris writes:

> Earlier in this thread, though, someone suggested replacing malloc()
> with calloc() to ensure that space actually gets allocated. That should
> not be necessary.

Nor should it work, because the implementation of calloc relies on the
kernel zeroing new pages, and therefore won't touch new pages.

-- 
Olaf Weber

Do not meddle in the affairs of sysadmins, for they are quick to anger and have no need for subtlety.

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



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:15 EST