Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Aug 2003 23:30:17 -0700 (PDT)
From:      David Schultz <das@FreeBSD.ORG>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/55124: [PATCH] request total incorrectly reported by vmstat(8)
Message-ID:  <200308050630.h756UHVP037519@freefall.freebsd.org>

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

From: David Schultz <das@FreeBSD.ORG>
To: Bruce M Simpson <bms@spc.org>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/55124: [PATCH] request total incorrectly reported by vmstat(8)
Date: Mon, 4 Aug 2003 23:23:23 -0700

 > 	Under RELENG_4, the running total of requests for each subsystem
 > 	client of the vm (vmstat -m) is incorrectly reported due to the use
 > 	of a signed (vs unsigned) integer.
 [...]
 > -	long totuse = 0, totfree = 0, totreq = 0;
 > +	long totuse = 0, totfree = 0;
 > +	unsigned long totreq = 0;
 
 This only buys you a factor of 2, then it overflows again.  totreq
 should be a uint64_t like the ks_calls values it's accumulating.



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