From debbugs-submit-bounces@debbugs.gnu.org Fri Nov 06 08:58:05 2020 Received: (at 44053) by debbugs.gnu.org; 6 Nov 2020 13:58:05 +0000 Received: from localhost ([127.0.0.1]:55414 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb2Fh-0006SR-2P for submit@debbugs.gnu.org; Fri, 06 Nov 2020 08:58:05 -0500 Received: from mail-40132.protonmail.ch ([185.70.40.132]:38783) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kb2Ff-0006Rx-7Y for 44053@debbugs.gnu.org; Fri, 06 Nov 2020 08:58:03 -0500 Date: Fri, 06 Nov 2020 13:57:49 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1604671076; bh=u4NE+5NSbmWyJNbRdPr99q0Dszi4RKnyK1r46hMefyE=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=LAPQum4fQPTU/3HWOYqu6etKcZkuK2SovBsvqHFaWTbjegdMd+l8vuz5wdr2mXn2A CWG8dikTbaVeelQCSiLCfFRLVfVA36zMvTjtVzDu8O0WNNxiVRKjeZcShD+7JXA0FM f/DSNawLo8ZBbDseA+GnVhbFPL2fhTtR0xmKbBvU= To: =?utf-8?Q?Ludovic_Court=C3=A8s?= From: Luis Felipe Subject: =?utf-8?Q?Re:_bug#44053:_=E2=80=98xdg-mime-database=E2=80=99_profile_hook_is_slow?= Message-ID: In-Reply-To: <87blga3l7e.fsf@gnu.org> References: <87o8l7pple.fsf@gnu.org> <87v9f7gspm.fsf@dismail.de> <874kmn9adz.fsf_-_@gnu.org> <87ft5zqn2a.fsf@dismail.de> <87sg9sm2qf.fsf@gnu.org> <87ft5rncn5.fsf@gnu.org> <86blgeggo8.fsf@gmail.com> <87blga3l7e.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44053 Cc: guix-devel , "44053@debbugs.gnu.org" <44053@debbugs.gnu.org>, Maxim Cournoyer , zimoun X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Luis Felipe Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Original Me= ssage =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 On Friday, November 6, 2020 9:10 AM, Ludovic Court=C3=A8s wr= ote: > Hi, > > Luis Felipe luis.felipe.la@protonmail.com skribis: > > > =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90 Origina= l Message =E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80=90=E2=80= =90 > > On Tuesday, November 3, 2020 11:32 PM, zimoun zimon.toutoune@gmail.com = wrote: > > > > > Hi, > > > > > > > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=3D76ea70bd70a= eb76570445c11cea2f98139192b54 > > > > > > Clever workaround! What are now the performances on previous examples > > > (same profiles and same packages)? > > > > In my case there seem to be no improvement (using Guix 5e7cf66fb35780f9= 30ad0bc5fe21ac330df4411d). > > Please note that the change above addresses only one specific source of > slowness, the =E2=80=98xdg-mime-database=E2=80=99 hook, and only in speci= fic cases. > > It=E2=80=99s good to look at the overall timing of =E2=80=98guix install= =E2=80=99, because > that=E2=80=99s what matters in the end, but as we work on optimizing it, = we have > to look at specific aspects of it. > > > $ time guix package -i perl --max-jobs=3D1 Yeah, sorry I was more focused on the general issue (#44053), but I underst= and. > [...] > > > injertando 12 paquetes en /gnu/store/anknpdyhmfirw3rz2k9zm9kiyak8yy1s-c= ups-filters-1.27.4.drv ... > > construyendo la base de datos MIME XDG... > > injertando 3 paquetes en /gnu/store/xgny7xbl635g8na8x03x4cdr7abiphiw-cu= ps-2.3.3.drv ... > > injertando 20 paquetes en /gnu/store/yhjl68x7kcjbv40v823x4hl8rvv8l50b-g= tk+-2.24.32.drv ... > > injertando 21 paquetes en /gnu/store/kq37fnw8335f1hqc3j4hhqqcdnhl371p-g= tk+-3.24.20.drv ... > > creando la cach=C3=A9 de temas de iconos de GTK+... > > construyendo los ficheros de cach=C3=A9 para los m=C3=A9todos de entrad= a de GTK+... > > construyendo perfil con 86 paquetes... > > real 8m38,121s > > user 0m2,742s > > sys 0m0,338s > > Here it=E2=80=99s likely that grafting is what=E2=80=99s taking the most = time on a > spinning disk. It does take some time, but since I can see the output change from grafting= to grafting, I at least can tell guix is doing something, so I just let it= be. Compared to grafting, the last step "construyendo perfil con X paquetes..."= ("building profile with X packages..."), just stays there without change f= or several minutes, so it actually seems slower to me. Initially, I thought= that guix had frozen. Also, even though, the "building profile" step has a throbber (| / - \) to = indicate that something is being done, it frequently stops in one of the fr= ames of the sequence and stays there until the end. > We should hack (guix status) so it can optionally prefix each event with > a timestamp. > > As far as =E2=80=98xdg-mime-database=E2=80=99 is concerned, it should be = down to 0s, > unless your profile contains one of the packages I cited (libreoffice, > gcr, hugin, etc.). Yes, I have Libreoffice installed.