Gentoo Archives: gentoo-user

From: Adam Carter <adamcarter3@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] etho app rating 10/100 etc in megabytes
Date: Tue, 22 Feb 2011 01:06:44
Message-Id: AANLkTi=_Bmm3j2-Qf3NocTEjM3TB_8su6oVyr=jX9+Z7@mail.gmail.com
In Reply to: [gentoo-user] [OT] etho app rating 10/100 etc in megabytes by Harry Putnam
1 >
2 > I've gotten confused on this problem way too many times.. I'd like to
3 > get some definitive starting points.
4 >
5 > When you see net adapters online they are always rated like
6 >
7 > 10/100 or 10/100/1000. So how does one turn that notation into
8 > megabytes?
9 >
10
11 That notation is in megabits per second, or Mb/s or Mbps. Bits are shown as
12 lowercase b and bytes are shown as uppercase B. So you want to change Mbps
13 to MBps. This is stating the raw throughput, so Ethernet headers are
14 included.
15
16
17
18 > But still, when I'm trying to measure how much data is moving to a
19 > certain directory, and I want to compare it to what the adapter is
20 > supposed to do... (in some easy homeboy way).
21 >
22 > I vaguely remember something about 8 bits to a byte or maybe its the
23 > other way round...
24 >
25
26 Yep - 8 bits to a byte in this case. Serial comms can be a different number
27 of bits per byte.
28
29 >
30 > My homeboy transfer measurements:
31 >
32 > I measure the incoming MegaBytes as measured with `du' with a while
33 > loop interating in settable intervals. So in this case when set to 60
34 > seconds,I now the number of megabytes that arrive in 60 seconds but
35 > would like to know how to convert that to the other notation.
36 >
37
38 du is probably not a good way of doing it, depending on how the disk system
39 commits the writes. Some clients show you the data rate. Maybe wget or ssh?
40 Cant check where i am now. Thee numbers the application states (or du) is
41 just the data, so doesnt take into account ethernet, IP and TCP headers.
42
43
44 >
45 > I'm seeing between 222 and 237 MB in a full minute being transferred
46 > and it seems quite slow for what is supposed to be a gigabyte network.
47 >
48 > This is just across two computers on my home lan, both with gigabyte
49 > adapters and they connect thru a gigabyte switch. Or I hope they are.
50 >
51 > My setup looks like this in brief (simplified).
52 >
53 >
54 >
55 IIRC typical speeds on 100Mbps LANs are 4 or 5 MBps. There's many factors
56 that can affect speed tho.

Replies

Subject Author
[gentoo-user] Re: [OT] etho app rating 10/100 etc in megabytes Grant Edwards <grant.b.edwards@×××××.com>