From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: 1024 file descriptors should be enough for anyone Date: Thu, 05 May 2022 13:35:51 +0200 Message-ID: <87r158rz3c.fsf@gnus.org> References: <874k25726k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31727"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Robert Pluim Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 05 13:37:11 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmZnD-00084j-Ln for ged-emacs-devel@m.gmane-mx.org; Thu, 05 May 2022 13:37:11 +0200 Original-Received: from localhost ([::1]:35854 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nmZnC-00047M-Bu for ged-emacs-devel@m.gmane-mx.org; Thu, 05 May 2022 07:37:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44180) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmZm6-0003K0-0H for emacs-devel@gnu.org; Thu, 05 May 2022 07:36:02 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:42374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nmZm4-0006ve-Ag for emacs-devel@gnu.org; Thu, 05 May 2022 07:36:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wGyF07IJEkxmUV3scEsnGt05HA2UrlEGamlXFK3qbVw=; b=lHXGJlUmniIQ0dAkMd2hvRMH7S mC/s1QfQD8kkoYSfwm8FXE/vnMyyLAVWDVnyVEPwP2hWQUdRUyNnDm+XuJ9XWGlsHFazktOkCw2Mj 6i9DV7S5fqotXOimyUs97wOw0m5PlO7oFnMuQNB/35hdv15Wc8Fq29yfidsD57D1wCXQ=; Original-Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nmZlv-000154-T0; Thu, 05 May 2022 13:35:54 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEXdvamVaFWoYkT/ ///GPDWyAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+YFBQshGGBRTykAAAGFSURBVCjPRZJBi9RAEIVf h8kc+qRgC7OnvQiz+RUZIcJ6SqBf2JmTl1l28yuCN/ekoot4iuIMSf1KX/cu2oFQH1XvdaUqQDor cte0JbaZqNO1CAwtHIOoxZgSjg2bmCIPlIJdC2W2CVhKggk5DoE1sltg3MsGKMYMTa8Exm0Cun3y mqtifC3IxuaLMZnBqc4eUjcriWeBDNyOtQ3PcFmZ/R6mf1DMZ3sCePs4Wyq7EvnPZja10EtOtXlb DDbkT5WFRDN8Uq0LOxhqFJYzCzMMSlXzq3e510dc2HCK6/cJbnTPYMvbnzCUPyTTeTQpb1fwCwch piXfA7cMgirNB6W1Vep00uwq69XYU400ffHg8wp6W3paLi8ErmeONdw448AP/+GCNxneCGy95+gz 8E7NMFtrgYdqIQcmiHr27AJxmTKRPb+Reenk17OLJdEoDE38w035nLm+P1MLR6c7uTnebhKEnrv0 fwRelwhd/YKe3xmN+OLuf502x47tUQYvNYpPJ3eUz1/A2Jpv2AWh0wAAACV0RVh0ZGF0ZTpjcmVh dGUAMjAyMi0wNS0wNVQxMTozMzoyNCswMDowMOI5OUEAAAAldEVYdGRhdGU6bW9kaWZ5ADIwMjIt MDUtMDVUMTE6MzM6MjQrMDA6MDCTZIH9AAAAAElFTkSuQmCC X-Now-Playing: Weather Report's _Heavy Weather_: "Palladium" In-Reply-To: <874k25726k.fsf@gmail.com> (Robert Pluim's message of "Wed, 04 May 2022 17:22:27 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289237 Archived-At: Robert Pluim writes: > Attached an initial attempt at using poll() instead of select(), and > bumping the open filed descriptor limit to 10240. That's wonderful. > Comments welcome (I can stick it on a branch if needed). Things that > could be done: > > - make the upper limit either statically or dynamically configurable > (on GNU/Linux in theory you could have 1e6 open descriptors) I think that would be nice. > - a feature flag > - dynamic switching between poll and select I guess those could be handy when debugging, but I don't really envision any users would want to twiddle this stuff (famous last words). Anyway, I think sticking this on a feature branch so that a few more people can give it a go (before merging) would be good. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no