From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: rixed@happyleptic.org Newsgroups: gmane.lisp.guile.user Subject: Re: Guile hangs for minutes when many files are opened (1.8.7) Date: Tue, 21 Jun 2011 15:02:20 +0200 Message-ID: <20110621130220.GA6411@ccellier.rd.happyleptic.org> References: <20110614072126.GA15414@ccellier.rd.happyleptic.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1308661422 1321 80.91.229.12 (21 Jun 2011 13:03:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 21 Jun 2011 13:03:42 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Jun 21 15:03:38 2011 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QZ0c7-0004sG-Jh for guile-user@m.gmane.org; Tue, 21 Jun 2011 15:03:31 +0200 Original-Received: from localhost ([::1]:46367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ0c6-00005e-Hd for guile-user@m.gmane.org; Tue, 21 Jun 2011 09:03:30 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ0bD-0008Mu-QX for guile-user@gnu.org; Tue, 21 Jun 2011 09:02:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QZ0bC-0004c2-0m for guile-user@gnu.org; Tue, 21 Jun 2011 09:02:35 -0400 Original-Received: from dangi.happyleptic.org ([92.243.13.193]:36192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QZ0bB-0004b0-NP for guile-user@gnu.org; Tue, 21 Jun 2011 09:02:33 -0400 Original-Received: from extranet.securactive.org ([82.234.213.170] helo=ccellier.rd.securactive.lan) by dangi.happyleptic.org with esmtp (Exim 4.72) (envelope-from ) id 1QZ0dg-0004Il-Ji for guile-user@gnu.org; Tue, 21 Jun 2011 15:05:08 +0200 Original-Received: from rixed by ccellier.rd.securactive.lan with local (Exim 4.72) (envelope-from ) id 1QZ0ay-0001kS-Ui for guile-user@gnu.org; Tue, 21 Jun 2011 15:02:20 +0200 Mail-Followup-To: rixed@happyleptic.org, guile-user@gnu.org Content-Disposition: inline In-Reply-To: <20110614072126.GA15414@ccellier.rd.happyleptic.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 92.243.13.193 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8650 Archived-At: Ok, the problem is straightforward: fport_input_waiting is using select with a predefined SELECT_SET_SIZE of 1024. Although guile does not see the many files used by the applications, it may ends up with a file descriptor whose number is bigger than that. Then the select will block forever. Increasing SELECT_SET_SIZE will not do it, since the fd set must not be bigger than FD_SETSIZE(=1024 on my box) anyway. I will try to use the alternative (IOCTL). Nobody's planned to replace select by ppoll yet? :) If I end up doing it, interrested in a patch?