Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Jul 2008 12:34:57 +0200
From:      Zbigniew Szalbot <z.szalbot@lc-words.com>
To:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: 7.0-release / systat / 3GB
Message-ID:  <486CAB51.4070207@lc-words.com>
In-Reply-To: <486C7BE3.4070208@FreeBSD.org>
References:  <486BA8C1.90107@lc-words.com> <20080702200904.T2523@wojtek.tensor.gdynia.pl> <486C7BE3.4070208@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Hello,

Kris Kennaway:
> Wojciech Puchar wrote:
>>> I am a bit curious though why once the outgoing bandwidth exceeds 
>>> (more or less) 3GB, the Total counter gets reset and starts counting 
>>> from scratch.
>> isn't it 4GB - because of 32-bit unsigned counter?
> 
> I would guess so.
> 
> Using a 64-bit counter on 32-bit systems would cause additional 
> processing overhead for little benefit.

I have confirmed (with assistance from Wojtek Puchar) that the problem 
of resetting a Total counter for 'systat -ifstat' happens every 4GB (not 
3GB) amount of data. It only affects i386 machines. amd64 machines are 
not affected.

I have tested this on 7.0 and 6.1-Release versions. Here's an example

em0  in    104.564 KB/s        104.564 KB/s            2.401 GB
      out   220.282 KB/s        284.090 KB/s            3.874 GB

em0  in     17.416 KB/s        220.306 KB/s            2.404 GB
      out   257.781 KB/s        284.090 KB/s            3.902 GB

em0  in     35.181 KB/s        803.832 KB/s            2.420 GB
      out   170.575 KB/s        284.090 KB/s            3.980 GB

em0  in     11.020 KB/s        803.832 KB/s            2.423 GB
      out    27.773 KB/s        284.090 KB/s            3.998 GB

em0  in      5.515 KB/s        803.832 KB/s            2.423 GB
      out    97.953 KB/s        284.090 KB/s            4.000 GB

em0  in      7.944 KB/s        803.832 KB/s            2.423 GB
      out    71.475 KB/s        284.090 KB/s           25.019 KB

I have submitted a pr in case this can be fixed.

http://www.freebsd.org/cgi/query-pr.cgi?pr=125196

Thanks!
-- 
Zbigniew Szalbot
www.LCWords.com

[-- Attachment #2 --]
0	*H
010	+0	*H
0b0ˠ{KL/GY`0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080426152039Z
090426152039Z0H10UThawte Freemail Member1%0#	*H
	z.szalbot@lc-words.com00
	*H
0rep%'#Ouu);3Q{e摶y EU<>._$u}j_yӚMfO|y\=h!bTKky3	
.d?ge(zz3010!U0z.szalbot@lc-words.com0U00
	*H
wm_Uϩ^C{cdl8j*?)zLLoZ~h:b3
CjRm6?JqL/jA02&yG(	Q[$f060b0ˠ{KL/GY`0
	*H
0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA0
080426152039Z
090426152039Z0H10UThawte Freemail Member1%0#	*H
	z.szalbot@lc-words.com00
	*H
0rep%'#Ouu);3Q{e摶y EU<>._$u}j_yӚMfO|y\=h!bTKky3	
.d?ge(zz3010!U0z.szalbot@lc-words.com0U00
	*H
wm_Uϩ^C{cdl8j*?)zLLoZ~h:b3
CjRm6?JqL/jA02&yG(	Q[$f060?0
0
	*H
010	UZA10UWestern Cape10U	Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0)	*H
	personal-freemail@thawte.com0
030717000000Z
130716235959Z0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA00
	*H
0Ħ<UsUNʙZhup[v:aQP
0cZ,p+Z?qV˯<6$*+w=+>@dקe*TH<a@dr`00U00CU<0:08642http://crl.thawte.com/ThawtePersonalFreemailCA.crl0U0)U"0 010UPrivateLabel2-1380
	*H
HP.
fgCL!6-6/P p<ab:~t%Pb'qW%ݩ9 Oe_N4[5MwV!x!5$F]_eO100v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA{KL/GY`0	+0	*H
	1	*H
0	*H
	1
080703103457Z0#	*H
	1S$/Дv-
A0R	*H
	1E0C0
*H
0*H
0
*H
@0+0
*H
(0	+71x0v0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA{KL/GY`0*H
	1xv0b10	UZA1%0#U
Thawte Consulting (Pty) Ltd.1,0*U#Thawte Personal Freemail Issuing CA{KL/GY`0
	*H
aWGf߁S},Q	Nf6Ȩæs.[0,D&%%T	O9$6<~H(ޮ*8m9VKߓjk:sk o'M

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?486CAB51.4070207>