From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id qEvMK55WpV/TGgAA0tVLHw (envelope-from ) for ; Fri, 06 Nov 2020 13:58:54 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id KP+SJ55WpV8oaQAAbx9fmQ (envelope-from ) for ; Fri, 06 Nov 2020 13:58:54 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 717F49402C2 for ; Fri, 6 Nov 2020 13:58:54 +0000 (UTC) Received: from localhost ([::1]:37704 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kb2GT-0002dK-9x for larch@yhetil.org; Fri, 06 Nov 2020 08:58:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb2Fj-0002cK-1X for guix-devel@gnu.org; Fri, 06 Nov 2020 08:58:07 -0500 Received: from mail-40132.protonmail.ch ([185.70.40.132]:43964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kb2Fb-0002bY-Sl for guix-devel@gnu.org; Fri, 06 Nov 2020 08:58:05 -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 Cc: zimoun , guix-devel , "44053@debbugs.gnu.org" <44053@debbugs.gnu.org>, Maxim Cournoyer 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 Received-SPF: pass client-ip=185.70.40.132; envelope-from=luis.felipe.la@protonmail.com; helo=mail-40132.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/06 08:57:57 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Luis Felipe Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=LAPQum4f; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: H39UMrV8ZfzE =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.