From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.devel Subject: Re: Migrating to sourcehut - what's missing? Date: Thu, 23 Dec 2021 10:11:23 +0100 Message-ID: <87czlnwuro.fsf@telefonica.net> References: <871r26w27h.fsf@thornhill.no> <8735mlpqes.fsf@thornhill.no> <87zgotoanj.fsf@thornhill.no> <87zgosg8de.fsf@gnus.org> <87k0fwq1av.fsf@yahoo.com> <350CDBCF-F913-4CD9-BB39-5E7D9D50FD9F@thornhill.no> <875yrgpzdh.fsf@yahoo.com> <4F1BB31A-3640-483D-919D-A413D3E0788F@thornhill.no> <874k70eqny.fsf@gnus.org> <5B4A020F-867E-4C4D-BC9A-EA47B64B231F@thornhill.no> <87mtksdajg.fsf@gnus.org> <6FF9E6B5-A969-490F-A94F-6E24293310B2@thornhill.no> <87ilvgda4f.fsf@gnus.org> <69BD4BEA-FC96-488A-B7A0-429EA5FD7D07@thornhill.no> <87ee64d9ix.fsf@gnus.org> <2032B9EC-BE8F-422E-8EC1-500A00281FC1@thornhill.no> <87mtksa6of.fsf@gnus.org> <87zgoswj8k.fsf@telefonica.net> <83mtkswioa.fsf@gnu.org> <87mtkswg5u.fsf@telefonica.net> <83czlnx1vk.fsf@gnu.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="10990"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) To: emacs-devel@gnu.org Cancel-Lock: sha1:O88ywQoXRS81WRp+n3kNs/9hxrk= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 23 10:15:07 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 1n0KBm-0002il-RV for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Dec 2021 10:15:06 +0100 Original-Received: from localhost ([::1]:39406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n0KBl-00025g-RO for ged-emacs-devel@m.gmane-mx.org; Thu, 23 Dec 2021 04:15:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0K8Q-0006a6-ID for emacs-devel@gnu.org; Thu, 23 Dec 2021 04:11:38 -0500 Original-Received: from ciao.gmane.io ([116.202.254.214]:37616) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n0K8M-0006zO-OP for emacs-devel@gnu.org; Thu, 23 Dec 2021 04:11:38 -0500 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1n0K8J-0008t6-Ug for emacs-devel@gnu.org; Thu, 23 Dec 2021 10:11:31 +0100 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:282889 Archived-At: Eli Zaretskii writes: >> From: Óscar Fuentes >> Date: Wed, 22 Dec 2021 21:14:37 +0100 >> >> Eli Zaretskii writes: >> >> >> The Emacs build has several parts with no paralellization. In my humble >> >> 8-thread machine most of the 4.5 minutes it takes to build (without >> >> native-comp) only one thread is active, and today's CPUs are not much >> >> faster than mine doing single-threaded tasks. >> > >> > If you have 8 threads, why don't you use "make -j8"? >> >> That's what I use. >> >> > Then most of the time you'd see 8 compilation processes run in >> > parallel. >> > >> > That's what I see here. >> >> Probably you are talking about an incremental build. > > No, I'm talking about a fresh build, or bootstrap, or a build after > all the *.elc files have been deleted. If I execute rm -rf * && time make bootstrap -j9 on the build directory, it takes 1m28s. If I go to the source directory and: git clean -fdx && ./autogen.sh then go back to the build directory and: rm -rf * && time ../emacs/configure --without-toolkit-scroll-bars --with-x-toolkit=lucid --with-modules --without-imagemagick 20s time make -j9 4m9s Apart from the configure script and dumping, the bulk of the time the build is running single-threaded is while doing: INFO Processing OKURI-NASI entries... and even longer: INFO Scraping files for loaddefs.el... BTW, this is in Debian Testing. > The only single-threaded parts I see is (a) the configure script (and > autogen.sh, if that needs to be run), and (b) the link stage of the > Emacs executable. Everything else runs in parallel, and if I says > "make -j8" I see load-average show numbers around 8 most of the time > on the mode line. Try building after `git clean -fdx'.