NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kern/48044: panic: kernel diagnostic assertion "uvmexp.swpgonly + npages <= uvmexp.swpginuse" failed



On Aug 21,  2:25pm, gson%gson.org@localhost (Andreas Gustafsson) wrote:
-- Subject: Re: kern/48044: panic: kernel diagnostic assertion "uvmexp.swpgon

| The following reply was made to PR kern/48044; it has been noted by GNATS.
| 
| From: Andreas Gustafsson <gson%gson.org@localhost>
| To: gnats-bugs%NetBSD.org@localhost
| Cc: 
| Subject: Re: kern/48044: panic: kernel diagnostic assertion "uvmexp.swpgonly 
+ npages <= uvmexp.swpginuse" failed
| Date: Wed, 21 Aug 2013 17:22:05 +0300
| 
|  The panic has now occurred three more times since I filed the original PR:
|  
|    http://releng.netbsd.org/b5reports/amd64/build/2013.08.06.12.19.34/test.log
|    http://releng.netbsd.org/b5reports/amd64/build/2013.08.15.21.28.23/test.log
|    http://releng.netbsd.org/b5reports/amd64/build/2013.08.20.00.20.55/test.log

The code reads:
                KASSERT(uvmexp.swpgonly + npages <= uvmexp.swpginuse);  
                if (error != ENOMEM)
                        uvmexp.swpgonly += npages;

And probably should read:
                if (error != ENOMEM) {
                        KASSERT(uvmexp.swpgonly + npages <= uvmexp.swpginuse);  
                        uvmexp.swpgonly += npages;
                }

(I am not a VM expert)
christos


Home | Main Index | Thread Index | Old Index