From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: scratch/more-fds Date: Fri, 14 Oct 2022 12:31:07 +0200 Message-ID: <87h706zogk.fsf@gmail.com> References: <875ygm9039.fsf.ref@yahoo.com> <875ygm9039.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30577"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Oct 14 12:33:23 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 1ojI0I-0007mh-GV for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Oct 2022 12:33:22 +0200 Original-Received: from localhost ([::1]:53244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ojI0G-0003Dv-Te for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Oct 2022 06:33:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ojHyE-0002P7-79 for emacs-devel@gnu.org; Fri, 14 Oct 2022 06:31:14 -0400 Original-Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:33573) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ojHyC-0008Vp-L1 for emacs-devel@gnu.org; Fri, 14 Oct 2022 06:31:13 -0400 Original-Received: by mail-wr1-x429.google.com with SMTP id a3so6982846wrt.0 for ; Fri, 14 Oct 2022 03:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id :reply-to; bh=T6KM1A70k8Hk4+MYleGaUx2sMQ+mhUgCwNwmkY/E2xA=; b=CwGyiMUcByUfYM3zrwwAGjGKq9Xhw1MJLQlJrPbslbKEvhWGvkkvCsSLev0FZ4EXVh 33B3GWOpo/Ns01nTQF2Y6GXouymxjYVN1/A64M3+TI2+3rgpC/iYKFNLUqPyvcLEMbJd D4PHkL0Z1CSCYVieCRriLMANMgb1c7a5h/vkxKRg9yz/43zT8Cy5pF+UWMyLZM4YoH7j EmdOIZi+gfmhb+Nt1GmtQNBvJ3YT54QnPijBKYXMbQt7oOIE5fl7ZkZecOwDQhxRjK9T a+2/7WZjpkFloNlniLdxuzVKNXyG04y1uH9dMo20uzPogBXeTKokskelDcSX3XuVi2Ts zltg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=T6KM1A70k8Hk4+MYleGaUx2sMQ+mhUgCwNwmkY/E2xA=; b=I2yxQZbM8aMGWFo9Vo2wytEEOTMQLxy6Dkhgi1ANw8Sjfxh3yV+Nq7ezlHdNGMLTC+ IHjhPJ6y0RlxfdUPn9r1dK9LSx5XSnoGX4WkYE1Ebr89P1NAOC9GaHDzDYj67G+o0418 X26Ly0YUJZ1OnfZKk6t2wm6r84UTQ3LToqFRqqh+0phgQDzb6yYRDvVFPxb3QlxcQJ0w u+QQA8Q8X1Rrex2yAqgNCh/hEYxdNNg2dFRJ+eiB7BcrExebf/VkWZLDRb30hS4ECL8u Wn7L8FDdGb6qV137QgsGmtmtzeo0/dUBd96rwLh8Q4U43dB/m+Wq79jOhUJpqeKgws7z vM4w== X-Gm-Message-State: ACrzQf1LDFTp+b82t5Wj8PGMS+BfrjF7sTrYsO/M72U19Fol8Prr8oSx 7O9qMDDJjyEv6UqnEfgW8SwKioD1LDE= X-Google-Smtp-Source: AMsMyM4+Jp359fOw7rvtInYqYsM5VGaxYRohXVTCipFHZxBFzl3vyqfXvXymLWILCKUFh9sPs/FqmA== X-Received: by 2002:a05:6000:788:b0:22e:412b:7959 with SMTP id bu8-20020a056000078800b0022e412b7959mr2798216wrb.491.1665743469451; Fri, 14 Oct 2022 03:31:09 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id m19-20020a05600c4f5300b003a2e92edeccsm6964456wmq.46.2022.10.14.03.31.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Oct 2022 03:31:08 -0700 (PDT) In-Reply-To: <875ygm9039.fsf@yahoo.com> (Po Lu's message of "Fri, 14 Oct 2022 18:22:02 +0800") Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=rpluim@gmail.com; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 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:297714 Archived-At: >>>>> On Fri, 14 Oct 2022 18:22:02 +0800, Po Lu said: Po> What's still missing in scratch/more-fds? AFAIK, LSP contains some Po> features that require a large amount of files to be watched, which = in Po> turn needs an increase to the file descriptor limit. As Eglot will= be Po> included with Emacs 29, we should probably include scratch/more-fds= as Po> well, at least as an optional feature. - there are a number of places that assume that the number of maximum open files is fixed - the file descriptor limit needs to dynamically adjust I have code for this locally, which I need to clean up and push. Note that watching large numbers of files is a big issue only on macOS: on other platforms file-watching actually watches directories, so it=CA=BCs much harder to run into the limitations (this includes MS-Windows) Once it=CA=BCs finished we can discuss whether it should be turned on by default: based on past experience, I think it would be default-off in 29.1 (although maybe default-on for macOS if we=CA=BCre feeling adventurous) Robert --=20