Date: Sat, 16 Mar 2002 12:44:22 -0500 (EST) From: Ramkumar Chinchani <rc27@cse.Buffalo.EDU> To: mark tinguely <tinguely@web.cs.ndsu.nodak.edu> Cc: <freebsd-hackers@FreeBSD.ORG> Subject: Re: Memory management bug in FreeBSD 4.5 RELEASE Message-ID: <Pine.SOL.4.30.0203161241470.11361-100000@tarantula.cse.Buffalo.EDU> In-Reply-To: <200203161730.g2GHUPp39177@web.cs.ndsu.nodak.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
But why does this not happen after i = 32 ? I hardly see any increase in
memory usage after that.
-Ram
==> mark tinguely <tinguely@web.cs.ndsu.nodak.edu>/11:30am/Mar 16, 2002 <==
[> int i = 32;
[>
[> int
[> main(){ while (1) malloc(i); }
[>
[>
[> As long as i is in between 1 and 32, all memory is used up and all swap is used up, and then the process is killed.
[>
[> Again, when i > 32, all seems well.
[
[dirty at least a byte of the data:
[
[main(){ while (1) { char *p (char *) malloc(i); *p=0; }
[
[if the memory has not been dirtied, the system does not need to remember
[it when physical memory has been depleted.
[
[--mark.
[
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.SOL.4.30.0203161241470.11361-100000>
