2004-04-26 01:23:25

by Williams Parker

[permalink] [raw]
Subject: speed interface ethernet 10/100Mbit/seg

Hello, i have troubles with speed in ethernet interface


i have probed with transfer of files in samba to windows

speed max 1,44Mbytes/sec and it have about 8Mbytes/sec



info my hardisk


hdparm -t /dev/hdc

/dev/hdc:
Timing buffered disk reads: 34 MB in 3.04 seconds = 11.18 MB/sec

ok it?s mdma2


while i send archivos it low to 4,20Mbytes/sec --->


hdparm -t /dev/hdc

/dev/hdc:
Timing buffered disk reads: 14 MB in 3.10 seconds = 4.52 MB/sec



why do it send to 7 or 8Mbytes/sec ???

howto probe max speed??



2004-04-26 04:52:37

by Willy Tarreau

[permalink] [raw]
Subject: Re: speed interface ethernet 10/100Mbit/seg

Hi,

you can read several time the same file, it should be cached after the first
read if it can fit in memory (eg not more than a few hundreds megs).
You can also test your interface with FTP. On the client side, you should
send it to /dev/null to avoid disk I/O. :
ftp> bin
ftp> recv XXX /dev/null

and if you have netcat (nc), this is even easier : copy a large block of
zeroes on the network and time it :
server> dd if=/dev/zero bs=16k count=10000 | nc -lp4000
client> time nc server 4000 | wc -c
=> you'll read 160 MB, you divide by the number of 'real' seconds and it
gives you the number of megabytes per second on the network.

Regards,
Willy

On Mon, Apr 26, 2004 at 03:11:01AM +0200, Williams Parker wrote:
> Hello, i have troubles with speed in ethernet interface
>
>
> i have probed with transfer of files in samba to windows
>
> speed max 1,44Mbytes/sec and it have about 8Mbytes/sec
>
>
>
> info my hardisk
>
>
> hdparm -t /dev/hdc
>
> /dev/hdc:
> Timing buffered disk reads: 34 MB in 3.04 seconds = 11.18 MB/sec
>
> ok it?s mdma2
>
>
> while i send archivos it low to 4,20Mbytes/sec --->
>
>
> hdparm -t /dev/hdc
>
> /dev/hdc:
> Timing buffered disk reads: 14 MB in 3.10 seconds = 4.52 MB/sec
>
>
>
> why do it send to 7 or 8Mbytes/sec ???
>
> howto probe max speed??
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/