mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Speed of the network card
@ 2001-01-07  1:20 Sourav Ghosh
  2001-01-07  1:48 ` Chris Wedgwood
  0 siblings, 1 reply; 6+ messages in thread
From: Sourav Ghosh @ 2001-01-07  1:20 UTC (permalink / raw)
  To: linux-kernel; +Cc: sourav

Hello,

I was wondering how I can determine the speed of a network device inside
the kernel.

In case of ethernet, the "name" field  of device structure will only
give eth0 or something. But the speed could be either 10Mbps or 100Mbps.

Thanks,

--
Sourav


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Re: Speed of the network card
@ 2001-01-07 13:02 Jeff Chua
  0 siblings, 0 replies; 6+ messages in thread
From: Jeff Chua @ 2001-01-07 13:02 UTC (permalink / raw)
  To: cw, sourav; +Cc: linux-kernel

from pcmcia-cs-3.1.22/PCMCIA-HOWTO
4.3.2.  Comments about specific cards
  o  16-bit PCMCIA cards have a maximum performance of 1.5-2 MB/sec.
     That means that any 16-bit 100baseT card (i.e., any card that uses
     the pcnet_cs, 3c574_cs, smc91c92_cs, or xirc2ps_cs driver) will
     never achieve full 100baseT throughput.  Only CardBus network
     adapters can fully exploit 100baseT data rates.


Jeff


On Sun, Jan 07, 2001 at 04:30:30AM -0500, Sourav Ghosh wrote:

    I would like to determine the banwidth the card is getting from
    the network.

/proc/net/dev exports counters; you can monitor those -- I'm sure
there are perfomance program that do exactly this.

    For an ethernet, it could be either 10Mbps or 100Mbps, is there
    any way of knowing from inside the kernel how much is the
    bandwidth the card is actually receiving from the network,
    especially when it is capable of getting either 10Mbps or
    100Mbps?

The kernel counts packets and bytes; you need to work out bandwidth
in userland from that.


  --cw
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-01-07 20:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-07  1:20 Speed of the network card Sourav Ghosh
2001-01-07  1:48 ` Chris Wedgwood
2001-01-07  9:30   ` Sourav Ghosh
     [not found]   ` <200101070930.WAA20212@mx1.clear.net.nz>
2001-01-07 12:54     ` Chris Wedgwood
2001-01-07 20:55       ` Sasi Peter
2001-01-07 13:02 Jeff Chua

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®