From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.devel Subject: Re: master 2c79a8f 2/2: Use posix_spawn if possible. Date: Tue, 2 Nov 2021 19:58:10 +0000 Message-ID: References: <83wnx4lq3b.fsf@gnu.org> <86k0swut21.fsf@gmail.com> <861rf4nnuj.fsf@gmail.com> <83czyng78z.fsf@gnu.org> <87eej3wwbp.fsf@linux-m68k.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22993"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Philipp Stephani To: YAMAMOTO Mitsuharu , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Nov 02 20:59:02 2021 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 1mhzvy-0005iq-0w for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Nov 2021 20:59:02 +0100 Original-Received: from localhost ([::1]:57962 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mhzvx-0008Im-0O for ged-emacs-devel@m.gmane-mx.org; Tue, 02 Nov 2021 15:59:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36166) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhzvH-0007cW-QU for emacs-devel@gnu.org; Tue, 02 Nov 2021 15:58:19 -0400 Original-Received: from outbound.soverin.net ([116.202.126.228]:36233) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mhzvF-0001Bo-DF for emacs-devel@gnu.org; Tue, 02 Nov 2021 15:58:19 -0400 Original-Received: from smtp.soverin.net (unknown [10.10.3.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id 8CC3551; Tue, 2 Nov 2021 19:58:13 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.142]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1635883092; bh=xXopWo6Pskp2DoqFRxfqO6edAD9Kn9gISdWQDBzVPlY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=J0ZFeaKi7Iu9XNrdvnojnovZvGGbUo/PAEwloFlIigPOjD3DPqtVUmgUSoSNlawwE dDmlkRMMOy2aXTAfgYl1G1eU9R7+rOgwxCu78YV+WyDcpR5+zfgL57kCfqT32W29Ks 019HYEHg3NFXNfow9BVZiM4oFztQbVmxjaykEbiE4Aw39J7A2Y9P6hrM1f+4csNNiI PQunV5EEJWICdumoVjuEPpUiiDqtmL0rwm7cdNpRx13xmbH+KDARGLle0kEjy5Ik5Z CW9mAStrLZOnrFupuEkJ+vMrr1zzbvDaq311tNSPAz/xyVRSPtGobtTVkwd0dcafDl ODZEL6mrC+Bfw== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mhzv8-0009QK-1j; Tue, 02 Nov 2021 19:58:10 +0000 Mail-Followup-To: Alan Third , YAMAMOTO Mitsuharu , emacs-devel@gnu.org, Philipp Stephani Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=116.202.126.228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-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:278533 Archived-At: On Sat, Oct 30, 2021 at 07:30:49PM +0100, Alan Third wrote: > On Fri, Oct 29, 2021 at 06:46:47PM +0900, YAMAMOTO Mitsuharu wrote: > > According to the vfork man page below on macOS 12.0 released this > > week, it is deprecating vfork. > > > > YAMAMOTO Mitsuharu > > mituharu@math.s.chiba-u.ac.jp > > > > NAME > > vfork – deprecated system call to create a new process > > > > SYNOPSIS > > #include > > > > pid_t > > vfork(void); > > > > DESCRIPTION > > The vfork system call can be used to create new processes. As of macOS > > 12.0, this system call behaves identically to the fork(2) system call, > > except without calling any handlers registered with pthread_atfork(2). > > > > This system call is deprecated. In a future release, it may begin to return > > errors in all cases, or may be removed entirely. It is extremely strongly > > recommended to replace all uses with fork(2) or, ideally, posix_spawn(3). > > Ugh, so this completely undoes the work we did to improve process > spawning performance in Emacs 26. OK, so this is already causing complaints on reddit. When we put in the fix to use vfork on macOS back in Emacs 26 the measured difference between fork and vfork was something like 15x. Now Apple have turned vfork into fork I guess we're back to the same situation. Packages that make heavy use of external processes, such as Magit, are badly hit by this slow down. Is there anything we need to do to get scratch/posix-spawn-no-gnulib merged into master (or even emacs-28)? -- Alan Third