Date: Fri, 16 Feb 1996 13:11:05 -0800 From: David Greenman <davidg@Root.COM> To: Steven Wallace <swallace@ece.uci.edu> Cc: freebsd-bugs@freebsd.org Subject: Re: malloc() prob in 2.1R? Message-ID: <199602162111.NAA00406@Root.COM> In-Reply-To: Your message of "Fri, 16 Feb 1996 12:07:41 PST." <199602162007.MAA11841@newport.ece.uci.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
>I just noticed something bizzar on my 2.1R system. >After running out of swap space quicker than I expected, >I tried running a testswap program that simply continues to malloc >a page (4K) of memory until it dies. At any point I suspend the program >and check it with ps, ps reports a VSZ twice which I have allocated >with malloc! On my 2.2-current (as of 11/21), it reports exactly >what I have allocated. > >Is there some VM bug in 2.1R that went unnoticed or a malloc bug in 2.1R? It's not really a bug. It's caused by the Berkeley malloc behaving badly with power-of-two sized allocations. -DG David Greenman Core Team/Principal Architect, The FreeBSD Project
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199602162111.NAA00406>