Menu

#177 0.99b2 - Network not keeping state ;

open
nobody
None
5
2004-03-04
2004-03-04
No

I upgraded one of my Gentoo Linux systems to 0.99b2.
I've noted two problems:

1) I noticed that the 100Mb ethernet interface in the
system kept going red at 6Mb. I attempted to correct
this situation by modifying the network test line in
uxmon-net:

localhost speed=100000 network

According to 'testers -t network', "speed=" should be
followed by a value in kbits/s (which I assume to mean
a numerical value only). In this case, 100000 would be
100Mbit/s. The reds went away, but the "InLoad" and
"OutLoad" stayed at 0% and green, regardless of how
busy I made the interface (should have been around 53%
for my test). The InRate and OutRate did show their
correct values.

I then tried:

localhost speed=100Mb/s network

the syntax for which I found in either a Bug report or
mailing list archives. Same result.

I finally removed "speed=" in uxmon-net, went into
lxNetwork.pm and changed the following:

$iface->{"ifSpeed"} = 100000000;

This fixed the problem, mostly -- see #2, below. So,
it looks like the code which parses "speed=" has problems.

As far as setting the "speed=" variable for the network
test, I prefer the numerical-only format of
"speed=100000" (in Kbit/s), assuming it's up to a vote.

2) Once that value was set in lxNetwork.pm, the
interface correctly went yellow when the load was
around 53%, however, during the next five minute
interval, the OutRate went to 0. It continuted to
oscillate between the real value (53% -- 6.6MB/s) and
0. My network load test was pulling about 100GB of
data across an NFS connection (for i in *.dmp; do cat
$i > /dev/null; done), so the network load should have
been pretty consistent at around 6.6MB/s.

Discussion

  • Thomas Aeby

    Thomas Aeby - 2004-03-04
    • summary: 0.99b2 - Network not keeping state ; "speed=" not working --> 0.99b2 - Network not keeping state ;
     
  • Thomas Aeby

    Thomas Aeby - 2004-03-04

    Logged In: YES
    user_id=77961

    1) Sorry, I still cannot reproduce that, here. I set speed
    to something like speed=200Mb/s, check in status.log where
    the correct speed is reported, add debugging code that also
    reports the correct speed - it's certainly a Gentoo problem
    (just kidding). Sorry, no reproduction means no fix :-(.
    Probably there's something silly I just don't see.

    As for voting: no need to do this, you can use whatever you
    want, "speed=100000", "speed=10000kb/s", "speed=100Mb/s",
    "speed=0.1Gb/s", they are all the same.

    2) Hmh, this is probably the kernel's byte counter which is
    overflowing. Assuming it's an unsigned 32-bit int it'll
    restart from zero every 12 minutes at 6.6MB/s.

     
  • Jeff Balderson

    Jeff Balderson - 2004-03-04

    Logged In: YES
    user_id=666473

    For some reason, InLoad/OutLoad perf data isn't getting
    reported. from my status.log:

    Using "localhost network":
    --------------------
    Perf Data:

    gentoo.domain.com:storage.disk.used.size.1 2472700
    gentoo.domain.com:iface.outload.2 0.01
    gentoo.domain.com:iface.outload.0 0
    gentoo.domain.com:iface.outload.1 0
    gentoo.domain.com:iface.inload.2 0.01
    gentoo.domain.com:iface.inload.0 0
    gentoo.domain.com:iface.inload.1 0
    gentoo.domain.com:iface.outrate.2 855.743333333333
    gentoo.domain.com:iface.outrate.0 149.213333333333
    gentoo.domain.com:iface.outrate.1 0
    gentoo.domain.com:iface.inrate.2 682.18
    gentoo.domain.com:iface.inrate.0 149.213333333333
    gentoo.domain.com:iface.inrate.1 0
    gentoo.domain.com:iface.outerrors.2 0
    gentoo.domain.com:iface.outerrors.0 0
    gentoo.domain.com:iface.outerrors.1 0
    gentoo.domain.com:iface.inerrors.2 0
    gentoo.domain.com:iface.inerrors.0 0
    gentoo.domain.com:iface.inerrors.1 0
    gentoo.domain.com:cpu.%user.0 2

    Using "localhost speed=100000 network"
    --------------------
    Perf Data

    gentoo.domain.com:storage.disk.used.size.1 2472700
    gentoo.domain.com:iface.outrate.2 0
    gentoo.domain.com:iface.outrate.0 121.830564784053
    gentoo.domain.com:iface.outrate.1 0
    gentoo.domain.com:iface.inrate.2 323204.754152824
    gentoo.domain.com:iface.inrate.0 121.830564784053
    gentoo.domain.com:iface.inrate.1 0
    gentoo.domain.com:iface.outerrors.2 0
    gentoo.domain.com:iface.outerrors.0 0
    gentoo.domain.com:iface.outerrors.1 0
    gentoo.domain.com:iface.inerrors.2 0
    gentoo.domain.com:iface.inerrors.0 0
    gentoo.domain.com:iface.inerrors.1 0
    gentoo.domain.com:cpu.%user.0 2

    Status Data:
    status+11 gentoo.domain.com.net green (1078427208) Thu Mar
    4 14:06:48 2004 &green sit0 ok, &green lo ok|>&green eth0
    ok|>&html<HR></HR><PRE><strong>Iface InErr
    OutErr InRate OutRate InLoad OutLoad |>|></strong>lo
    0/s 0/s 95B/s 95B/s 0%
    0% |>sit0 0/s 0/s 0B/s
    0B/s 0% 0% |>eth0 0/s 0/s
    314.6kB/s 6.6MB/s 0% 0% |></PRE>

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.