Hah!
Steven M. Schultz
sms at WLV.IMSD.CONTEL.COM
Fri Oct 19 08:35:42 AEST 1990
In article <69909 at lll-winken.LLNL.GOV> casey at gauss.llnl.gov (Casey Leedom) writes:
>/ From: dflahert at 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 at 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",
More information about the Comp.bugs.2bsd
mailing list