From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 6 Nov 2001 22:35:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 6 Nov 2001 22:35:30 -0500 Received: from cj46222-a.reston1.va.home.com ([65.1.136.109]:23736 "HELO sanosuke.troilus.org") by vger.kernel.org with SMTP id ; Tue, 6 Nov 2001 22:35:18 -0500 To: linux-kernel@vger.kernel.org Subject: select() takes a long time after an EAGAIN read()? From: Entrope Date: 06 Nov 2001 22:35:31 -0500 Message-ID: <87ofmfs16k.fsf@sanosuke.troilus.org> User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Artificial Intelligence) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Carlo Wood diagnosed a problem that GamesNET has been seeing where traffic between two processes on the same machine takes a lot longer using the default configuration than the same traffic between different machines. It's apparently entangled in the path MTU -- the slow transfers happen when the MTU is 16 KB, as in localhost, and does not happen when the MTU is smaller. I don't know of any reason it should do this, and Carlo also chalks it up to kernel weirdness. Is this a kernel bug, or is it expected (just not by us)? -- Entrope -- From his email (originally sent to the old lkml address): -- On Mon, Nov 05, 2001 at 09:17:52PM -0500, Entrope wrote: > GamesNET's seeing oddly long burst times when we connect srvx to ircu > on the same machine (~1 minute). These go away when connecting to > another machine (connected via 100baseT; ~5 seconds). I have reproduced this: 74 seconds with MTU == 16436 and 1.8 seconds(!) with MTU == 8000. I investigated this tonight and although it seems to be a kernel bug. What typically happens is this (here process 'ircu' is bursting data over a socket to process 'srvx2', using `localhost'): UTC(sec.microsec) [who] syscall