Re: surprisingly slow accept/connect cycle time

From: Chris Wedgwood (cw_at_f00f.org)
Date: 05/25/05

  • Next message: john cooper: "Re: RT patch acceptance"
    Date:	Tue, 24 May 2005 20:44:18 -0700
    To: "Clifford T. Matthews" <ctm@ardi.com>
    
    

    On Tue, May 24, 2005 at 02:54:05PM -0600, Clifford T. Matthews wrote:

    > static void
    > listen_or_die (int fd, int backlog)
    > {
    > DIE_IF (listen (fd, backlog) != 0);
    >
    > }

    [...]

    > listen_or_die (accept_fd, 10);

    the backlog is 10, so my guess is that the parent does 10+ connection
    attempts before the child can accept them so some SYN packets get
    dropped --- and you have to wait for TCP to retry hence the delay you
    see

    a larger backlog would make things seem to go faster, as would
    tweaking the TCP timers

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: john cooper: "Re: RT patch acceptance"

    Relevant Pages

    • 2.4.22aa1
      ... This had some extra delay due travelling for KS/OLS/vacations and some ... backlog of other work. ... But it was very good to hear lots of feedback ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] [PPC64] [TRIVIAL] Janitor whitespace in pSeries_pci.c
      ... >> I was asked to do the opposite, ... and I'm waiting for the backlog to clear out before I submit ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Linux 2.6.13-rc4
      ... On 7/29/05, Randy Dunlap wrote: ... > backlog put ... >> For the bennefit of those of us who were not at LKS, ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [CRYPTO] Testing Module Cleanup.
      ... > A complete rewrite. ... backlog at the moment). ... James Morris ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)