Bigint bug in cnfsstat? (in both 2.2.1&2.3)
Pål Marius Baltzersen
pal.baltzersen at ost.eltele.no
Wed Dec 8 23:00:40 UTC 1999
I have 2.2.1 running on Solaris7-32bit/sparc. (and perl-5.005_03)
I have 10GB buffers (20168704 blocks to be exact) defined as:
cycbuff:BUF00:/var/news/dev/buf00:10084352
...
But cnfsstat sais:
Buffer BUF00, len: 1656.00 Mbytes, used: 366.62 Mbytes (22.1%) 0 cycles
or with -m BUF00:
1736441856
384431616
0
BUF00
Only 1.6GB?!
cnfsstat from today's snapshot shows the same.
Is the bigint code broken?
I see cnfsstat uses code like this (line 335-):
print " Buffer $name, len: ";
printf("%.2f", $len / (1024 * 1024));
print " Mbytes, used: ";
printf("%.2f Mbytes", $free / (1024 * 1024));
printf(" (%4.1f%%) %3d cycles", 100 * $free/$len, $cyclenum);
Shouldn't there be some bdiv() stuff here?
Pål
-------------------------------------------------------------
Addr: Pål Baltzersen, ElTele Øst AS, Fredrik Selmers vei 2,
P.O. Box 6299 Etterstad, N-0603 Oslo, Norway
Phone: +47 23 18 10 00 Direct: +47 23 18 11 74
Fax: +47 23 18 10 01 Mobile: +47 93 08 11 74
Mail: pb at ost.eltele.no pal.baltzersen at ost.eltele.no
More information about the inn-workers
mailing list