From owner-freebsd-commit Mon Jan 29 01:58:46 1996 Return-Path: owner-commit Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA18180 for freebsd-commit-outgoing; Mon, 29 Jan 1996 01:58:46 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA18171 for cvs-all-outgoing; Mon, 29 Jan 1996 01:58:42 -0800 (PST) Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA18161 for cvs-sys-outgoing; Mon, 29 Jan 1996 01:58:40 -0800 (PST) Received: (from davidg@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id BAA18154 Mon, 29 Jan 1996 01:58:37 -0800 (PST) Date: Mon, 29 Jan 1996 01:58:37 -0800 (PST) From: David Greenman Message-Id: <199601290958.BAA18154@freefall.freebsd.org> To: CVS-committers, cvs-sys Subject: cvs commit: src/sys/kern kern_malloc.c Sender: owner-commit@FreeBSD.ORG Precedence: bulk davidg 96/01/29 01:58:36 Modified: sys/kern kern_malloc.c Log: Fixed two bugs in the calculation of the malloc area (kmem_map) size: 1) The calculation didn't account for NMBCLUSTERS, so if a large number of clusters was specified, it would leave little or no space for kernel malloc. 2) It was bogusly restricted to v_page_count. This doesn't take into account the sparseness of the malloc area and would have caused problems on machines with small amounts of memory. It should probably instead be changed to set the malloc limit to be constrained by the amount of memory, but I didn't do this. Revision Changes Path 1.18 +9 -7 src/sys/kern/kern_malloc.c