From owner-freebsd-bugs Fri Feb 16 13:10:57 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id NAA06288 for bugs-outgoing; Fri, 16 Feb 1996 13:10:57 -0800 (PST) Received: from Root.COM (implode.Root.COM [198.145.90.17]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id NAA06276 for ; Fri, 16 Feb 1996 13:10:53 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by Root.COM (8.6.12/8.6.5) with SMTP id NAA00406; Fri, 16 Feb 1996 13:11:05 -0800 Message-Id: <199602162111.NAA00406@Root.COM> X-Authentication-Warning: implode.Root.COM: Host localhost didn't use HELO protocol To: Steven Wallace cc: freebsd-bugs@freebsd.org Subject: Re: malloc() prob in 2.1R? In-reply-to: Your message of "Fri, 16 Feb 1996 12:07:41 PST." <199602162007.MAA11841@newport.ece.uci.edu> From: David Greenman Reply-To: davidg@Root.COM Date: Fri, 16 Feb 1996 13:11:05 -0800 Sender: owner-bugs@freebsd.org Precedence: bulk >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