Article View: news.software.nntp
Article #83941Re: The Numbers Game
From: Julien ÉLIE
Date: Sun, 27 Mar 2011 20:42
Date: Sun, 27 Mar 2011 20:42
88 lines
3376 bytes
3376 bytes
Hi John, > 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. No. Be careful you are not dividing with the same unit. 1 GB = 1024 MB 1010.9/(2.0 * 1024) = 0.4936 Which is 49.4%. > I suspect you could say that when it gets 1024.0 MB full, then it will > be 50.0 %Used. Actually, the size is not the size of the total buffer, but the size of the body of the buffer (where the articles can be written, after the header). So if your buffer is exactly 2 GB, the real size is a bit inferior. 1010,9 MB <-> 49.4 % x <-> 50 % x = 1023.2 MB but of course, with rounding in percentages and sizes, x is not exactly 1023.2 MB. At least, x < 1024 MB. > 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. Here, we have GB for both of these values. As the previous computed x may be 1023 MB, the size may be: (2 x 1023)/1024 = 1.998 GB With the round-to-even Perl method, 1.0 GB is up to 1.050 GB and then: 1.050/1.998 = 0.526 1.030/1.998 = 0.516 I am therefore not surprised to read 51.8%. > Just what algorithm is used to determine the percent (%Used) Used/Size. And please do not forget that the computation is done on the "real" (un-rounded) values. It is not done on the already rounded values. > and what > method of units is used for representing Megabytes and Gigabytes (MB vs > MiB and/or GB vs GiB)? These are real GB (with the 1024 factor) in innreport. > Buffer fstbn01, size: 2.00 GBytes, position: 1011 MBytes 1.49 cycles Length of the writable area: between 1.995 GB and 2.005 GB. 1011/(1.995*1024) = 0.495 1011/(2.005*1024) = 0.492 It corresponds to the 49% of the current cycle. > Buffer junk03, size: 2.00 GBytes, position: 1.06 GBytes 0.53 cycles 1.06/2.00 = 0.53 This one was easy :) -- Julien ÉLIE « Vinum nouum, amicus nouus : uesterascet, et cum suauitate bibes illud. »
Technical Details
Message-ID:
<8v9lqiFcmgU1@mid.individual.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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<imntim$k8$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <8v9lqiFcmgU1@mid.individual.net> Subject: Re: The Numbers Game Date: Sun, 27 Mar 2011 22:42:57 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <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!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!postnews.google.com!news2.google.com!news4.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 88 Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: individual.net Eck2bXzpBTSj6exvlxnVhAx/bmaEzSJaJq/+3TvO82ojCxvrQ= Cancel-Lock: sha1:h3JtZsweo/74PJfYWc72efPOwfA= User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; fr; In-Reply-To: <imntim$k8$1@n102.xanadu-bbs.net>