public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ben Warren <biggerbadderben@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 0/4] Network defrag
Date: Mon, 10 Aug 2009 12:57:31 -0700	[thread overview]
Message-ID: <4A807BAB.4030709@gmail.com> (raw)
In-Reply-To: <200908101551.52052.rgetz@blackfin.uclinux.org>

Robin Getz wrote:
> On Sat 8 Aug 2009 05:50, Ben Warren pondered:
>   
>> Allesandro,
>>
>> Alessandro Rubini wrote:
>>     
>>> I finally fixed the defrag code, testing with NFS as well.
>>> Didn't take performance figures, tough, for lack of time.
>>>       
>
> Checking out performance with tftp - server is Linux 2.6.27 located in 
> Germany, client (U-Boot running net/next) is located in the USA. Packets 
> fragmented, and arriving out of order.
>
> U-Boot image (214268 bytes)
>
> tftpblocksize      download          rate
>  (bytes)             (ms)       (bytes/second)
>    512              48,246         4,441
>   1024              24,482         8,752
>   1468 ( 1MTU)      17,243        12,426
>   2048              12,517        17,118
>   2948 ( 2MTU)       8,912        24,042
>   4428 ( 3MTU)       6,167        34,744
>   4096               6,608        32,425
>   5908 ( 4MTU)       4,840        44,270
>   7388 ( 5MTU)       4,042        53,010
>   8192               3,641        58,848
>   8868 ( 6MTU)       3,425        62,560
>  10348 ( 7MTU)       2,974        72,047
>  11828 ( 8MTU)       2,736        78,314
>  13308 ( 9MTU)       2,508        85,433
>  14788 (10MTU)       2,281        93,935
>  16000               2,233        95,955
>  16268 (11MTU)       2,174        98,559
>
> So, that is 17-seconds (default - on the master), to 2 seconds. Wow - a 87% 
> reduction!
>
>   
Wicked cool.
> Doing the same with a larger image (default kernel + ext2 file system == 
> 12Meg), gets similar results - goes from 928,688 ms / 12,493 bytes/second 
> (yeah, that is 15 minutes with a tftpblocksize == 1468) to 107,626 ms / 
> 107,866 bytes/second (that is under two minutes with a tftpblocksize == 
> 16000)... Again - an 88% reduction in time spent waiting...
>
> So - I think this is well worth the effort for those people who want to use 
> tftp outside of a local network. (on a local network - things do not change 
> that drastically - An 18Meg file with default tftpblocksize (1468 bytes) took 
> 5084ms to download, and with a tftpblocksize of 16268, it about half the 
> time - 2625 ms...
>
> Thanks to Alessandro for putting it together.
>
> Feel free to add my Signed-off (once the docs have been updated explaining 
> what this is all for).
>
>   
I'll do that.  Thanks for all your help.
> -Robin
>   

regards,
Ben

  reply	other threads:[~2009-08-10 19:57 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-07 11:58 [U-Boot] [PATCH 0/4] Network defrag Alessandro Rubini
2009-08-07 11:58 ` [U-Boot] [PATCH 1/4] net: defragment IP packets Alessandro Rubini
2009-08-07 11:59 ` [U-Boot] [PATCH 2/4] tftp: get the tftp block size from config file and from the environment Alessandro Rubini
2009-08-07 11:59 ` [U-Boot] [PATCH 3/4] nfs: accept CONFIG_NFS_READ_SIZE from config file Alessandro Rubini
2009-08-07 11:59 ` [U-Boot] [PATCH 4/4] arm nomadik: activate defrag choose 4k transfer block size Alessandro Rubini
2009-08-08  9:50 ` [U-Boot] [PATCH 0/4] Network defrag Ben Warren
2009-08-10 19:51   ` Robin Getz
2009-08-10 19:57     ` Ben Warren [this message]
2009-08-12 15:48       ` Robin Getz
2009-08-12 20:04         ` Wolfgang Denk
2009-08-13 15:44           ` Robin Getz
2009-08-12 20:05         ` Ben Warren
2009-08-12 20:53           ` Robin Getz
2009-08-12 20:53             ` Ben Warren
2009-08-12 21:30               ` Wolfgang Denk
2009-08-13 21:47                 ` Robin Getz
2009-08-13 22:01                   ` Wolfgang Denk
2009-08-17 17:15                     ` Robin Getz
2009-08-17 19:05                       ` Wolfgang Denk
2009-08-17 19:55                         ` Robin Getz
2009-08-17 20:20                           ` Wolfgang Denk
2009-08-17 20:35                             ` Robin Getz
2009-08-10 19:59     ` Wolfgang Denk
2009-08-17 17:21   ` Robin Getz
2009-08-17 19:06     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A807BAB.4030709@gmail.com \
    --to=biggerbadderben@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox