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
This is a cryptographically signed message in MIME format.

--------------ms030109050900020800020207
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------ms030109050900020800020207
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIIDzCC
AmIwggHLoAMCAQICEHu/rJNLTC9H4eJZYOf+/Z0wDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDQyNjE1MjAzOVoX
DTA5MDQyNjE1MjAzOVowSDEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjElMCMG
CSqGSIb3DQEJARYWei5zemFsYm90QGxjLXdvcmRzLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOB
jQAwgYkCgYEAwBXt/3Jlh3DcJScjw091dfTrKTsz9LxRe5EC6YtlCOaRtnkZIPVF0BfpVTy1
rRE+8LWJLq9fEgGAJPOqqgy9gHV9wmoD7F9505reTZS5Zk98eVzsPWjMHBaRIYxiVMtLa7DT
Dnm9M6oJDccDkS5kyz/BtsJnsmUomxR68noMxAECAwEAAaMzMDEwIQYDVR0RBBowGIEWei5z
emFsYm90QGxjLXdvcmRzLmNvbTAMBgNVHRMBAf8EAjAAMA0GCSqGSIb3DQEBBQUAA4GBAByS
+Jt3BW2uX6CyiFXfz6ninAcCXkPSEHtjgcAHZGwV/TgEio1qKu60Pyn9ycP72XrRzEzCTG9a
85K+fmg6YjMNrrnjrEOlH+FqUt1tNj/ySrxxTLCipY8vakEL4jAyiybYecCj8JQHRxCUGbQo
CVHnx+eFWySCZvEwCDb1G6/u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C9H4eJZYOf+/Z0wCQYFKw4DAhoFAKCCAcMwGAYJKoZI
hvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0BCQUxDxcNMDgwNzAzMTAzNDU3WjAjBgkq
hkiG9w0BCQQxFgQUUyS+L9LWz80C7NCUv738di2UCkEwUgYJKoZIhvcNAQkPMUUwQzAKBggq
hkiG9w0DBzAOBggqhkiG9w0DAgICAIAwDQYIKoZIhvcNAwICAUAwBwYFKw4DAgcwDQYIKoZI
hvcNAwICASgwgYUGCSsGAQQBgjcQBDF4MHYwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRo
YXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBG
cmVlbWFpbCBJc3N1aW5nIENBAhB7v6yTS0wvR+HiWWDn/v2dMIGHBgsqhkiG9w0BCRACCzF4
oHYwYjELMAkGA1UEBhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0
ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBAhB7v6yT
S0wvR+HiWWDn/v2dMA0GCSqGSIb3DQEBAQUABIGAYQNXR4Nm5ZDfgfyq2VN92yxRhgnoTray
z+hmNunT+dTIqMLDpnPBLlu/MIeuLP8UkOSYRCaUJSWkVJIJT+s5JAEe6cAMNoYXxwyCPH5I
7xOZkIoo3q4qtBM4jW05DJZW/kvfk6WHHmqjoAxrnjqqmtBzmgyJyGsghhRvJ4it1E0AAAAA
AAA=
--------------ms030109050900020800020207--



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