LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Bigger pipes...

[ILUG] Bigger pipes...

Padraig Brady padraig at antefacto.com
Thu Apr 26 12:51:38 IST 2001


Kenn Humborg wrote:
> 
> On Wed, Apr 25, 2001 at 07:34:13PM +0100, Padraig Brady wrote:
> > Kenn Humborg wrote:
> > > And, in fact, mbuffer does the job nicely.  The 40secs is currently
> > > reduced to 24secs.  I use a dd to pull across NFS which feeds
> > > a nice big mbuffer process, which feeds gzip.
> > >
> > > Thanks, Padraig!
> > >
> > > BTW, Kevin, I already adjusted rsize & wsize to 8K.
> > >
> > > Later,
> > > Kenn
> >
> > why use dd? Doesn't that introduce another data copy?
> > couldn't you use mbuffer -i /images/test.img ?
> 
> Because I didn't spot that option.  I'll try it.  However,
> I have found that the block size on the dd affects performance,
> so I'll probably stick with it, just to make the NFS reads
> easier to tune.

input blocksize is setable on mbuffer also.
 
> > Also completely guessing, mbuffer supports mmap which
> > might get rid of the output data copy also?
> 
> I tried the mmap option and it crawled.
> 
> I'm not worried about memory-to-memory copies at all.  I'm
> getting 2MB/s over NFS (on a quiet 100MB network - more on this
> later).  I can decompressing at about 2MB/s (PPro 200MHz).
> Best disk write throughput is about 6MB/s.
> 
> So, as long as I can keep everything happening in parallel, then
> there's no point in tuning any more.  Memory copying is a _very_ small
> part of these timings.

agreed. But if you run it from behind a nice 1Gb switched ethernet
network it might be different.
 
> Regarding NFS throughput, I see it transfer a chunk of data (maybe
> about 1.5 secs) then pause (maybe 0.5 to 1.0 secs) and then get
> more data.  The server is not disk bound during these pauses
> (and, besides, the whole file is in server RAM at this stage).
> I don't know if it's client-side, server-side or in the NIC
> drivers (Netgear FA311s, based on the newer NatSemi chipset,
> not the Tulip, and using Netgear's drivers).  This is on an
> otherwise-quiet network segment.

Hmm, does this happen without using mbuffer? He accepted the patch
I sent to fix that idiotic usleep() thing he was doing, which would
explain repeatable pauses as the input buffer was filled. How this
wasn't
spotted before I don't know as it limits the output stream to 1MB/s
by default on intel architectures.
 
> Right now, I'm happy enough with this (bottleneck is gzip on the
> CPU).  But later, I'll be pulling different images across to multiple
> machines simultaneously, so I'd like to eventually improve the
> NFS throughput, since NFS will become the bottleneck again.
> 
> Any ideas?

If you can just dd over the 100Mb/s network @ 2MB/s then I don't know.
Perhaps the Linux Trace Toolkit could narrow down the search for you?
 
> Later,
> Kenn

Padraig.




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell