This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Low network throughput using DHCP


> 
> Does the board under test end up with the same IP address when 
> configured statically vs. DHCP?  If not, can you try and make it so?
> 
> If they have different addresses, there may be some difference in how
> packets are being passed around the network.  For example, with the DHCP
> setup, the eCos system might think that everything needs to go through
> some gateway whereas with the directly set IP address, it does not.
> 
> Perhaps you could send the initial IP address setup for each 
> configuration.  By this I mean the handful of lines that eCos prints 
> while it is configuring the interface.
> 

The IP addresses of the board are the same in the two configurations. The board
and the host are in the same subnet, so it is perhaps not the gateway issue.
Anyway, the followings are the messages running tcp_echo for the two
different configurations. Is something abnormal?

Thanks.

Xavier

===================================================

DHCP
--------

Network stack using 65536 bytes for misc space
                    65536 bytes for mbufs
                    131072 bytes for mbuf clusters
Start TCP test - ECHO mode
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0x80168B82
        secs: 0
       flags: 0x0
       hw_addr: 00:E0:4C:39:0C:44
     client IP: 0.0.0.0
         my IP: 172.20.15.6
     server IP: 172.20.1.11
    gateway IP: 0.0.0.0
  options:
        DHCP message: 5 ACK
        DHCP time 58: 432000
        DHCP time 59: 756000
        DHCP time 51: 864000
        DHCP server id: 172.20.1.11
        subnet mask: 255.255.0.0
            gateway: 172.20.1.254
      domain server: 172.20.1.11, 172.20.1.10
        domain name: realtek.com.tw
Route - dst: 127.0.0.0, mask: 255.0.0.0, gateway: 127.0.0.1
No load = 44443
Set background load = 50% starting 10 threads
Set no background load
High Load[100] = 25115 => 44%
Set background load = 50% starting 10 threads
Set no background load
High Load[200] = 16700 => 63%
Set background load = 50% starting 10 threads
Set no background load
Load[150] = 20756 => 54%
Set background load = 50% starting 10 threads
Set no background load
Load[125] = 22891 => 49%
Set background load = 50% starting 10 threads
Set no background load
Final load[127] = 24190 => 46%
SOURCE connection from 172.20.14.30:1052
SINK connection from 172.20.14.30:1051
Using 1024 buffers of 8192 bytes each, 0% background load
Set no background load
Set no background load
13669 ticks elapsed, 6074 kloops predicted for an idle system
actual kloops 4154, CPU was 68% idle during transfer
Set no background load
Set no background load
Final load[127] = 43548 => 3%
Net malloc:
  count:   1315, min:      25.76 , max:     660.96 , total:   74680.88 , ave:      56.76 
Net free:
  count:   1264, min:      28.72 , max:     283.64 , total:   65977.08 , ave:      52.16 
Mbuf alloc:
  count:  36454, min:      42.28 , max:     671.68 , total: 2092031.36 , ave:      57.36 
Mbuf free:
  count:  36449, min:      23.96 , max:     739.28 , total: 1490720.68 , ave:      40.88 
Cluster alloc:
  count:     35, min:      37.36 , max:      47.60 , total:    1412.48 , ave:      40.32 
Checksum:
  count:      0, min:       0.00 , max:       0.00 , total:       0.00 , ave:       0.00 
Net memcpy:
  count:  75349, min:       2.16 , max:    1539.36 , total: 2132507.24 , ave:      28.28 
Net memset:
  count:  10917, min:       3.60 , max:     732.60 , total:  204379.88 , ave:      18.72 
[New thread 5]

Program received signal SIGINT, Interrupt.
[Switching to thread 5]
cyg_test_exit () at /ecos-d/src/packages/infra/current/src/tcdiag.cxx:130

===================================================

Static IP
----------

Network stack using 65536 bytes for misc space
                    65536 bytes for mbufs
                    131072 bytes for mbuf clusters
Start TCP test - ECHO mode
BOOTP[eth0] op: REPLY
       htype: Ethernet
        hlen: 6
        hops: 0
         xid: 0x0
        secs: 0
       flags: 0x0
       hw_addr: 00:E0:4C:39:0C:44
     client IP: 172.20.15.6
         my IP: 172.20.15.6
     server IP: 172.20.1.11
    gateway IP: 172.20.1.254
  options:
        subnet mask: 255.255.0.0
       IP broadcast: 172.20.255.255
            gateway: 172.20.1.254
Route - dst: 127.0.0.0, mask: 255.0.0.0, gateway: 127.0.0.1
No load = 118022
Set background load = 50% starting 10 threads
Set no background load
High Load[100] = 93261 => 21%
Set background load = 50% starting 10 threads
Set no background load
High Load[200] = 78041 => 34%
Set background load = 50% starting 10 threads
Set no background load
High Load[400] = 56301 => 53%
Set background load = 50% starting 10 threads
Set no background load
Load[300] = 65669 => 45%
Set background load = 50% starting 10 threads
Set no background load
Load[350] = 61306 => 49%
Set background load = 50% starting 10 threads
Set no background load
Final load[357] = 59872 => 50%
SINK connection from 172.20.14.30:1067
SOURCE connection from 172.20.14.30:1068
Using 1024 buffers of 8192 bytes each, 0% background load
Set no background load
Set no background load
1771 ticks elapsed, 2090 kloops predicted for an idle system
actual kloops 65, CPU was 3% idle during transfer
Set no background load
Set no background load
Final load[357] = 117810 => 1%
Net malloc:
  count:     76, min:       3.84 , max:     210.40 , total:    1530.84 , ave:      20.12 
Net free:
  count:     36, min:      18.08 , max:      34.36 , total:     811.36 , ave:      22.52 
Mbuf alloc:
  count:  34022, min:      14.84 , max:     190.44 , total:  816985.88 , ave:      24.00 
Mbuf free:
  count:  34018, min:      13.32 , max:     289.40 , total:  699828.56 , ave:      20.56 
Cluster alloc:
  count:     30, min:      19.92 , max:      24.92 , total:     681.48 , ave:      22.68 
Checksum:
  count:      0, min:       0.00 , max:       0.00 , total:       0.00 , ave:       0.00 
Net memcpy:
  count:  59016, min:       0.80 , max:     308.92 , total:  737589.92 , ave:      12.48 
Net memset:
  count:   8954, min:       1.16 , max:     200.24 , total:   53542.28 , ave:       5.96 
[New thread 5]

Program received signal SIGINT, Interrupt.
[Switching to thread 5]
cyg_test_exit () at /ecos-d/src/packages/infra/current/src/tcdiag.cxx:130



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]