<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-2" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Howdy!<br>
<br>
Darko Bulat wrote:
<blockquote cite="mid:46B48AB5.6030107@ceterum.si" type="cite">
<pre wrap="">Uroš Golja pravi:
</pre>
<blockquote type="cite">
<pre wrap="">Pozdrav,
Jaka Jančar wrote:
</pre>
</blockquote>
<pre wrap=""><!---->...
</pre>
<blockquote type="cite">
<blockquote type="cite">
<pre wrap="">RX in TX bytes, ki ju prikaze ifconfig, vsaj na moji masini ali nista
tocna, se obrneta, ali pa se zaradi nevem kaksnega razloga resetirata.
</pre>
</blockquote>
<pre wrap="">Ja, to sem tudi jaz opazil na tej škatli. Ne vem, zakaj tako. Je pa
ifconfig že zelo staro orodje.
</pre>
</blockquote>
<pre wrap=""><!---->
Po 4 GB (2^32) prenešenih podatkov se števec postavi na nulo.
</pre>
</blockquote>
<br>
Verjetno ima pri vsej stvari kaj opravka bitnost (32 ali 64) kernela:<br>
<br>
<tt>$ uname -a; uptime; /sbin/ifconfig bond0<br>
Linux altaj 2.6.21.3 #2 SMP Mon May 28 06:18:17 UTC 2007 x86_64
GNU/Linux<br>
20:19:33 up 68 days, 13:33, 1 user, load average: 6.00, 6.03, 6.01<br>
bond0 Link encap:Ethernet HWaddr 00:1A:4B:BE:64:F6<br>
inet addr:10.101.10.168 Bcast:10.101.255.255
Mask:255.255.0.0<br>
UP BROADCAST RUNNING MASTER MULTICAST MTU:1500 Metric:1<br>
RX packets:1489389871 errors:0 dropped:0 overruns:0 frame:0<br>
TX packets:1371280719 errors:0 dropped:0 overruns:0 carrier:0<br>
collisions:0 txqueuelen:0<br>
RX bytes:1435002011291 (1.3 TiB) TX bytes:1321823235688 (1.2
TiB)</tt><br>
<br>
Sicer pa je staro mesto za brskanje po statistikah kernela kar v /proc:<br>
<br>
<tt>$ cat /proc/net/dev<br>
Inter-| Receive |
Transmit<br>
face |bytes packets errs drop fifo frame compressed
multicast|bytes packets errs drop fifo colls carrier compressed<br>
lo:691478468 2494242 0 0 0 0 0 0
691478468 2494242 0 0 0 0 0 0<br>
bond0:1435002858788 1489392193 0 0 0 0 0
0 1321823287016 1371281481 0 0 0 0 0 0<br>
</tt><br>
Močno sumim, da ifconfig prikazuje te iste podatke.<br>
<br>
Tale 64-bitna mašina očitno še ni postavila števcev na 0, čeprav je že
preko 4GB.<br>
<br>
<pre class="moz-signature" cols="80">--
Peace!
Mkx
---- perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'
---- echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
</pre>
</body>
</html>