From owner-freebsd-bugs Wed May 9 7:45:20 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id B845237B424 for ; Wed, 9 May 2001 07:45:17 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 1932 invoked by uid 1000); 9 May 2001 14:44:35 -0000 Date: Wed, 9 May 2001 17:44:35 +0300 From: Peter Pentchev To: Bruce Evans Cc: Dag-Erling Smorgrav , dwmalone@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/27215: when cat'ing /compat/linux/proc/stat, we have negative numbers Message-ID: <20010509174435.G645@ringworld.oblivion.bg> Mail-Followup-To: Bruce Evans , Dag-Erling Smorgrav , dwmalone@FreeBSD.ORG, freebsd-bugs@FreeBSD.ORG References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from bde@zeta.org.au on Thu, May 10, 2001 at 12:40:22AM +1000 Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, May 10, 2001 at 12:40:22AM +1000, Bruce Evans wrote: > On 9 May 2001, Dag-Erling Smorgrav wrote: > > > Bruce Evans writes: > > > It mainly obscures the bug, by moving obvious overflow after LONG_MAX/100 > > > statclock ticks to unobvious overflow after ULONG_MAX/100 statclock ticks. > > > Overflow thresholds for some cases: > > > > > > i386, stathz = 128: before: 1.94 days; after : 3.88 days > > > alpha, stathz = 1024: before: 2.85 million years; after: 5.71 million years > > > > Argh. What are the chances of making cp_time an array of uint64_ts > > instead of longs? Would that break any existing binary interfaces? > > Mainly the "interface" given by the type of cp_time. systat and vmstat, > etc., depend on it being an array of longs. systat uses a sysctl to > read the array, but this doesn't help much because it assumes that the > array elements have the same types as in the kernel. So if kernel and userland are updated in sync, there would be no problem? Or are there any third-party tools that might use cp_time? G'luck, Peter -- This would easier understand fewer had omitted. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message