Article View: comp.bugs.2bsd
Article #84Re: Hah!
From: Steven M. Schultz
Date: Thu, 18 Oct 1990 22:35
Date: Thu, 18 Oct 1990 22:35
52 lines
2648 bytes
2648 bytes
In article <69909@lll-winken.LLNL.GOV> casey@gauss.llnl.gov (Casey Leedom) writes:
>/ From: dflahert@tagore.helios.nd.edu (Dennis Flaherty)
>|
>| Hah! This topic has generated more traffic than comp.bugs.2bsd has seen
>\ in a long time! At least comp.sys.cbm keeps busy with for-sale articles.
>
> That's because there are so few bugs in 2BSD ... :-) Besides, who in
It is a rather stable system by now, isn't it? ;-)
>their right mind would buy a used PDP-11?? :-) :-)
ME! Right now i've got a loaner 11/73 but with only a single RD53.
And, since it has been a while, here's a fix.
Steven M. Schultz
sms@wlv.imsd.contel.com
------------------------------------------------------------------------------
Subject: vmstat text stats printed incorrectly
Index: ucb/vmstat.c 2.10BSD
Description:
vmstat prints 0 for some of the text table statistics when
the values should be non-zero.
Repeat-By:
Do a "vmstat -s" and observe that some of the text stats
print as 0.
Fix:
Apply the following patch. It's another long vs. int gotcha.
*** vmstat.c.old Tue Jun 5 12:35:00 1990
--- vmstat.c Thu Oct 18 16:59:36 1990
***************
*** 584,590 ****
read(mf, &xstats, sizeof xstats);
printf("%9D total calls to xalloc (cache hits %D%%)\n",
xstats.alloc, xstats.alloc_cachehit * 100 / nz(xstats.alloc));
! printf("%9s sticky %d flushed %d unused %d\n", "",
xstats.alloc_inuse, xstats.alloc_cacheflush, xstats.alloc_unused);
printf("%9D total calls to xfree", xstats.free);
printf(" (sticky %D cached %D swapped %D)\n",
--- 584,590 ----
read(mf, &xstats, sizeof xstats);
printf("%9D total calls to xalloc (cache hits %D%%)\n",
xstats.alloc, xstats.alloc_cachehit * 100 / nz(xstats.alloc));
! printf("%9s sticky %ld flushed %ld unused %ld\n", "",
xstats.alloc_inuse, xstats.alloc_cacheflush, xstats.alloc_unused);
printf("%9D total calls to xfree", xstats.free);
printf(" (sticky %D cached %D swapped %D)\n",
Technical Details
Message-ID:
<59463@wlbr.IMSD.CONTEL.COM>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!mahendo!wlbr!WLV.IMSD.CONTEL.COM!smsReferences:
<1990Oct17.002046.2897@virtech.uucp> <1990Oct17.165058.7580@zoo.toronto.edu> <525@news.nd.edu> <69909@lll-winken.LLNL.GOV>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!samsung!uakari.primate.wisc.edu!sdd.hp.com!elroy.jpl.nasa.gov!mahendo!wlbr!WLV.IMSD.CONTEL.COM!sms From: sms@WLV.IMSD.CONTEL.COM (Steven M. Schultz) Newsgroups: comp.bugs.2bsd Subject: Re: Hah! Message-ID: <59463@wlbr.IMSD.CONTEL.COM> Date: 18 Oct 90 22:35:42 GMT References: <1990Oct17.002046.2897@virtech.uucp> <1990Oct17.165058.7580@zoo.toronto.edu> <525@news.nd.edu> <69909@lll-winken.LLNL.GOV> Sender: news@wlbr.IMSD.CONTEL.COM Reply-To: sms@WLV.IMSD.CONTEL.COM.UUCP (Steven M. Schultz) Organization: Contel Federal Systems Lines: 55