🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #83940

The Numbers Game

#83940
From: John F. Morse
Date: Sun, 27 Mar 2011 17:53
45 lines
2860 bytes
I've monitored the Daily Report CNFS buffer status for a few weeks. The numbers don't seem to jive.

For instance, here is a line that shows a 0.6% error in the %Used column:

CNFS buffer status:
Buffer        Class              Size      Used   %Used Cycles  KB/sec     Days
fstbn01       fastbins         2.0 GB 1010.9 MB   49.4%      1    0.17   142.35

If the cycbuff is 2.0 GB in size, then if it is 1010.9 MB full, it should show 50.5 %Used.

I suspect you could say that when it gets 1024.0 MB full, then it will be 50.0 %Used.

But that 1.1% low "error" is reversed in the following line:

junk03        junk             2.0 GB    1.0 GB   51.8%      0    1.97    12.30

Here the 51.8% error is 1.8% too much.

Just what algorithm is used to determine the percent (%Used), and what method of units is used for representing Megabytes and Gigabytes (MB vs MiB and/or GB vs GiB)?

http://en.wikipedia.org/wiki/MiB

Just for comparison, below is the "cnfsstat -a" for the two cycbuffs, which was taken about 12:45 later than the Daily Report produced at midnight:

news@v102:~$ cnfsstat -a
. . .
Class fastbins for groups matching "*.bina*,!local.binaries"
 Buffer fstbn01, size:  2.00 GBytes, position:  1011 MBytes  1.49 cycles
  Newest: 2011-03-27 12:40:29,    0 days,  0:01:44 ago
  Oldest: 2011-01-13 11:17:11,   73 days,  0:25:02 ago

. . .

Class junk for groups matching "junk"
. . .
 Buffer junk03, size:  2.00 GBytes, position:  1.06 GBytes  0.53 cycles
  Newest: 2011-03-27 12:35:40,    0 days,  0:06:33 ago
  Oldest: 2011-03-08  8:35:29,   19 days,  3:06:44 ago



-- 
John

When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID: <imntim$k8$1@n102.xanadu-bbs.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <imntim$k8$1@n102.xanadu-bbs.net>
Subject: The Numbers Game
Date: Sun, 27 Mar 2011 12:53:25 -0500
From: "John F. Morse" <john@example.invalid>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!news2.glorb.com!v102.xanadu-bbs.net!n102.xanadu-bbs.net!.POSTED!not-for-mail
Newsgroups: news.software.nntp
Organization: Xanadu BBS
Lines: 45
Reply-To: dont.bother
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: n102.xanadu-bbs.net 1301248406 648 192.168.89.210 (27 Mar 2011
X-Complaints-To: newsmaster@xanadu-bbs.net
NNTP-Posting-Date: Sun, 27 Mar 2011 17:53:26 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.24 (X11/20101027)
X-Enigmail-Version: 0.96.0
X-Original-Bytes: 2571