delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/30/04:09:26

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <3ee066b40804300108g5cbacb49o239ab66a196244e@mail.gmail.com>
Date: Wed, 30 Apr 2008 13:38:38 +0530
From: "antony baxter" <antony DOT baxter AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: inetutils 1.5 / ftpd problem: 426 Data connection: No buffer space available.
MIME-Version: 1.0
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Charles,

> Well, one of the differences between ftpd-1.3.2 and ftpd-1.5 is that
> the newer version uses mmap on the (local) file. ftpd.c is the /only/
> source file in inetutils that uses mmap.
>
> So, I recompiled with HAVE_MMAP turned off (but still using 4k
> chunks).  Give this a try:
>
> http://cygwin.cwilson.fastmail.fm/ITP/ftpd-no-mmap-4k.exe.bz2
>
> I get behavior here which is very similar to what I reported for the
> 4k-WITH-mmap version:
> (1) sane memory profile
> (2) topology one, 9-10 Mbps 2-3% cpu
> (3) topology two, 14-15 Mbps, 4-6% cpu [*]
>
> I'm not sure what benefit mmap has in this case -- unless you can
> exploit some zero-copy kernel code for transferring data from disk to
> ethernet device. But I don't think Windows has anything like that. I
> certainly don't *see* any benefit, in my limited testing on this set
> of hardware.
>
> If this *does* fix the problem, it may point to an issue with
> cygwin-1.5's mmap implementation, or with XP's handling of the
> underlying NtCreateSection()...mmap is not supposed to be
> CPU-intensive.

Ok, with this version memory stays at a constant 3600kb, cpu usage
hovers at around 50%, and performance is quick (55 seconds to transfer
the file).

Its *possible* that the cpu usage is a red herring - the server is
running in VMware and that may introduce some peculiarities of its
own; however in.ftpd from inetutils 1.3.6 did maintain very low cpu
usage.

Thanks,

Ant.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019