mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* 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

* Re: Speed of the network card
  2001-01-07 12:54     ` Chris Wedgwood
@ 2001-01-07 20:55       ` Sasi Peter
  0 siblings, 0 replies; 6+ messages in thread
From: Sasi Peter @ 2001-01-07 20:55 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: sourav, linux-kernel

On Mon, 8 Jan 2001, Chris Wedgwood 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.

I have this little script for monitoring interfaces' speed on 132
wide textmode console w/ niche histogram. It is not perfect but 'it
works for me' (tm).

--------------------------> cut here
if [ "$1" = "" ]
then
  echo "Please specify the sampling rate."
  exit
fi

while true
do
  cat /proc/net/ip_fwnames &
  sleep $1
done |
  awk '
    BEGIN {
     s=0
     d='$1'*1024*1024
     wd=d/15
    }

    /^input /	{o=s
		 s=$7}
    /^output /	{s+=$7
                 w=(s-o)/wd
		 if(w>130)w=0
                 printf "%fMB/s %0*c\n",(s-o)/d,w,">"}
  '
--------------------------> cut here

-- 
SaPE - Peter, Sasi - mailto:sape@sch.hu - http://sape.iq.rulez.org/


-
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
       [not found]   ` <200101070930.WAA20212@mx1.clear.net.nz>
@ 2001-01-07 12:54     ` Chris Wedgwood
  2001-01-07 20:55       ` Sasi Peter
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Wedgwood @ 2001-01-07 12:54 UTC (permalink / raw)
  To: sourav; +Cc: linux-kernel

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

* Re: Speed of the network card
  2001-01-07  1:48 ` Chris Wedgwood
@ 2001-01-07  9:30   ` Sourav Ghosh
       [not found]   ` <200101070930.WAA20212@mx1.clear.net.nz>
  1 sibling, 0 replies; 6+ messages in thread
From: Sourav Ghosh @ 2001-01-07  9:30 UTC (permalink / raw)
  To: Chris Wedgwood; +Cc: sourav, linux-kernel

> 
> On Sat, Jan 06, 2001 at 08:20:02PM -0500, Sourav Ghosh wrote:
> 
>     I was wondering how I can determine the speed of a network device
>     inside the kernel.
> 
> what kind of network card?
>     
>     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.
> 

Well, I need to clarify the question.

I would like to determine the banwidth the card is getting from
the network. 
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?
  


> we don't have a good was on doing this sort of thing, you could try
> mii-tool though; it supports many cards
> 
> 
> 
>   --cw

-- 
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  1:20 Sourav Ghosh
@ 2001-01-07  1:48 ` Chris Wedgwood
  2001-01-07  9:30   ` Sourav Ghosh
       [not found]   ` <200101070930.WAA20212@mx1.clear.net.nz>
  0 siblings, 2 replies; 6+ messages in thread
From: Chris Wedgwood @ 2001-01-07  1:48 UTC (permalink / raw)
  To: Sourav Ghosh; +Cc: linux-kernel

On Sat, Jan 06, 2001 at 08:20:02PM -0500, Sourav Ghosh wrote:

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

what kind of network card?
    
    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.

we don't have a good was on doing this sort of thing, you could try
mii-tool though; it supports many cards



  --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

* 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

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 13:02 Speed of the network card Jeff Chua
  -- strict thread matches above, loose matches on Subject: below --
2001-01-07  1:20 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

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®