Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Jun 1999 18:30:02 -0700 (PDT)
From:      Luoqi Chen <luoqi@watermarkgroup.com>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/11948: mmaping memory device, then forking causes negative rss
Message-ID:  <199906050130.SAA05271@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/11948; it has been noted by GNATS.

From: Luoqi Chen <luoqi@watermarkgroup.com>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906050130.SAA05271>