From owner-freebsd-bugs Fri Jun 4 18:30: 8 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 244C31541A for ; Fri, 4 Jun 1999 18:30:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id SAA05271; Fri, 4 Jun 1999 18:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Fri, 4 Jun 1999 18:30:02 -0700 (PDT) Message-Id: <199906050130.SAA05271@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Luoqi Chen Subject: Re: kern/11948: mmaping memory device, then forking causes negative rss Reply-To: Luoqi Chen Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR kern/11948; it has been noted by GNATS. From: Luoqi Chen To: freebsd-gnats-submit@freebsd.org, toasty@dragondata.com Cc: Subject: Re: kern/11948: mmaping memory device, then forking causes negative rss Date: Fri, 04 Jun 1999 21:20:27 -0400 Can you try the following patch? It should fix the negative rss size problem. Please also try to see if you can reproduce the "multiple frees" panic after the patch. -lq Index: pmap.c =================================================================== RCS file: /home/ncvs/src/sys/i386/i386/pmap.c,v retrieving revision 1.237 diff -u -r1.237 pmap.c --- pmap.c 1999/06/01 18:19:44 1.237 +++ pmap.c 1999/06/05 01:10:07 @@ -2655,7 +2655,7 @@ if (srcptepaddr & PG_PS) { if (dst_pmap->pm_pdir[ptepindex] == 0) { dst_pmap->pm_pdir[ptepindex] = (pd_entry_t) srcptepaddr; - dst_pmap->pm_stats.resident_count += NBPDR; + dst_pmap->pm_stats.resident_count += NBPDR / PAGE_SIZE; } continue; } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message