[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] very low file transfer rate



Hi Anand,

anand_12 wrote:

>  when i do an ftp from my microblaze-uclinux board to any other host on the local LAN( 100M bps ethernet) and transfer files,the best file transfer rate i get is 92 kbytes/sec
> ...the data is something like this..
> 
> P4 = pentium 4 1.8 Ghz
> 
> 1.ftp from MBuClinux board to a remote host P4
> 
>  file size = 5 kbytes , file transfer rate = 23 kbytes/sec
>  file size = 600 kbytes , file tranfer rate = 92 kbytes/sec
>  file size = 1.5 MB , file transfer rate = 92 kbytes/sec

These sound very slow - on mbvanilla_net, with 66mhz system clock, I get 
closer to 1.5 Mbit per second, for a 10MByte tftp transfer.

> 2.ftp from one host P4 to another host P4(for same files)
> 
>   file transfer rate is > 11 Mbytes/sec in all 3 cases..

Sounds reasonable.

> I have a few doubts regarding this : 
> 
> 1.Why is MicroBlaze not able to exploit the full 100 Mbps
>   bandwidth?

The main reasons are simply processing power and a rather inefficient 
network driver (for the xilinx emac).  I'm not sure what sort of net 
throughput can be achieved with, say, xilkernel and lwip - it would be 
an interesting comparison.

> 2.I used get/mget in my ftp session to receive files.
>   I get "munmap on non-mmaped "..error whenever i use the 
>   ftp "recv" command instead of get/mget..is this 
>   implemented differently?

You'll need to look at the soruce to answer this question - I'm not 
sure.  I use tftp mostly, it's simpler (and it works).
> 
>  I am also writing a PS-2 keyboard device driver to interface one with our spartan 2E board...I want to know whether the keyboard needs a /dev entry or is it enough
> if i just register an IRQ line for keyboard interrupts?
> 
>  I mean..do i need to register first a keyboard device or can I directly have an irq_handler to handle the interrupts?

The general answer to this sort of question is "how is it normally 
done?"  I expect there's a pretty standard architecture used in the 
kernel - just try to copy that would be my suggestion.

>  Please let me know if I went off topic wrt my last question ,for these lists...I will redirect my query to the appropriate mailing list on the net..I was not sure whether uClinux driver topics could be raised here...I am doing so just to clear my doubt..

I think it's on-topic, it's just that questions more general to uClinux, 
than specific to microblaze, will probably get a wider range of answers 
on the uClinux-dev list.

Cheers,

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/