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: Landing feature/more-fds for Emacs 30? Date: Wed, 15 Mar 2023 18:37:48 +0100 Message-ID: <87wn3hud8z.fsf@gmail.com> References: 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="39126"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Elliott Shugerman , emacs-devel To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Mar 15 18:38:51 2023 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 1pcV5P-000A1x-5W for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Mar 2023 18:38:51 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pcV4V-0008P3-Qx; Wed, 15 Mar 2023 13:37:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pcV4U-0008On-Ix for emacs-devel@gnu.org; Wed, 15 Mar 2023 13:37:54 -0400 Original-Received: from mail-wr1-x42f.google.com ([2a00:1450:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pcV4T-0007nM-4w for emacs-devel@gnu.org; Wed, 15 Mar 2023 13:37:54 -0400 Original-Received: by mail-wr1-x42f.google.com with SMTP id r18so18061010wrx.1 for ; Wed, 15 Mar 2023 10:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678901870; 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=xoSAwkygS81KaCyVrIsRLnBuipWR6jsEwHjtHG3/6co=; b=f2h5NvJhja+2QfJshL2vhEwbXOaLJ051KgbCurUqeV6jyXCMZp6oVTKnjs3g5tJez2 sFp73jseN5NByt9TlNedBQqVBWcCqv6ffCRy3WV4kZ/HdQgZIsIDSZDFCcnZFhFzZyQw sVHZlZclvRkeGei06AW6uIbx9hBnvh8USQ80/brpttDAxJPBXM/l3yzPyd9oforgSfte YwijkEAZIFuEPAvJZX9eetnmWO22LEtUndqLNC62N3kUY9XhiDG64SmPcGfMWDV7i0nS TlC6T2H+HdxDntCi47XCKVm22yqXq8238PXMCV597W+/SmzrU0Tg/JJtsZ1eNZAbmxtC LhNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678901870; 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=xoSAwkygS81KaCyVrIsRLnBuipWR6jsEwHjtHG3/6co=; b=rcyPVq3+jOQxENmIO5ZeOjncwMPGKwnPd8+xCzl+ElDlSCvfSak/0b/ZziszE58YLR 2zWhz6Z9oqA5wHv3j/XzAtVp2vFyJJyNNwGeaI6j3Mxbri2DNIOr0bOskqKXG38b11BH fGR2heY5TcA70RKNMfa96KuQWrXW3jBy/ElsL2BsQBj+ilqdiuPR4k02KLrshu6st9I2 s7/5ZmYDulyVRAL7S0fz+UHQoJ0xFk+TyOdA0KZLFjbv454L7SkeI3WKuYM+KetULIQ6 PSn5ZF203zXQ4+Dyl/R9jLSbZsMt+ErMDnagZX7745nVsag7pUgVZPWeesVR4F63RfK2 8xKQ== X-Gm-Message-State: AO0yUKV5SqZ+5HQpdTf0ByZsy8C0Z96TwquDNVJgWPJmFltMe+xoya0p KwyYicOeLJ0MfFvO9nVoFDnPIKpomcc= X-Google-Smtp-Source: AK7set8YH75CVOAqHRLK+9xaruBr8Mf/mLQhDGVJzhDoE13qL8YKHAVJ0OQEX8tqEYwDxO2hGwVlig== X-Received: by 2002:a05:6000:100d:b0:2d1:70cc:66e0 with SMTP id a13-20020a056000100d00b002d170cc66e0mr806356wrx.44.1678901869928; Wed, 15 Mar 2023 10:37:49 -0700 (PDT) Original-Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id j15-20020adff00f000000b002cea9d931e6sm5322501wro.78.2023.03.15.10.37.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Mar 2023 10:37:49 -0700 (PDT) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o_T=C3=A1vora=22's?= message of "Wed, 15 Mar 2023 17:12:19 +0000") Received-SPF: pass client-ip=2a00:1450:4864:20::42f; envelope-from=rpluim@gmail.com; helo=mail-wr1-x42f.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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304501 Archived-At: >>>>> On Wed, 15 Mar 2023 17:12:19 +0000, Jo=C3=A3o T=C3=A1vora said: Jo=C3=A3o> Hi Elliott, Jo=C3=A3o> On Tue, Mar 14, 2023, 16:10 Elliott Shugerman wrote: >>=20 >> I work on a large codebase with LSP and used to run into the "too ma= ny >> open files" error all the time unless I disabled desired functionali= ty or >> gave up native-comp. Now, with this patch, not only is that issue go= ne >> entirely, but I find Emacs is generally more responsive and stable o= n macOS. >>=20 Jo=C3=A3o> What LSP server are you using? Is it perhaps requesting many= file watchers? Jo=C3=A3o> Or maybe the client is overwatching on the Emacs side (what = client are you Jo=C3=A3o> using?). Do you have a JSONRPC transcript that you can share= with me? It=CA=BCs a macOS thing: file watching there uses a file descriptor per-file, unlike Linux, which uses one per-directory. Robert --=20