From debbugs-submit-bounces@debbugs.gnu.org Mon Oct 19 04:19:02 2020 Received: (at 44053) by debbugs.gnu.org; 19 Oct 2020 08:19:02 +0000 Received: from localhost ([127.0.0.1]:39888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUQNh-00038D-Ph for submit@debbugs.gnu.org; Mon, 19 Oct 2020 04:19:02 -0400 Received: from mail-qv1-f54.google.com ([209.85.219.54]:44235) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kUQNg-00037r-30 for 44053@debbugs.gnu.org; Mon, 19 Oct 2020 04:19:00 -0400 Received: by mail-qv1-f54.google.com with SMTP id s17so3946293qvr.11 for <44053@debbugs.gnu.org>; Mon, 19 Oct 2020 01:19:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Y6R7bUOsVCVV3n9qJcG28DjVtCwbDazSaRmy3kDaSG0=; b=GPb0RrK7C0iPgUGLcXbToDplXf/lHDFkl6/GB4/SybLqIoZSdBTU/QssQo2Gp3iV6T R0eNwU1dQmhMukU5u2zqoj6a5g5q5VjBLT4kITP7i6Qsf+XjAHXpV2WwZhW19/p1LPAA vZ5uwVbebCh/mluUqLUPqBvHIRFGjbQiilc0auf6To/v2fHq3J2D6mou1U5+llHJz+pP EWsLCpryO/EQQXeTOK4boQgqRd2pLxqqfFhsqBybTKWzxp7hkJYvW/0GdMxScXcVn29Y 747d41RxHtOrCiJH5P4Dsy7EAcYSroNxK7s9I4GEbUoqoP+cRRMqcl0Hr1C9Q9hWVgAw GSRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Y6R7bUOsVCVV3n9qJcG28DjVtCwbDazSaRmy3kDaSG0=; b=pll6TYty60k9tS9T9NHX8pTelUgjWrBK1iaxvaiZjelTlgCa+uqpGxDCIuqutSuIwl SVnIFjK92qsbdiog3ZvkK8I8HboBvw1alKenzcXD5AzAK+wODX3aVqX283Y3NW/rzavH /OLQwjCJIadpiT4CEhHSaJWTUSBL/WTqjvgf6aUPk6x4ZjBYWDz82Uav9Ru5l6n8MXEX 3dzX3Qa8wU13a/xvCK5oiDS4keatjwtKSXLunBnPlsx6oitQ9Al6DFMRnfoa9cFsdSVO Jqerc0eaQgyRcBTFn8ZlxUnhPLRydAkuuTOkXd/8cHEhDX7UWmKbB3zFCYufXLe489IT THHQ== X-Gm-Message-State: AOAM5329VsTu3w1ZDaS4OzBVRXTKWgT/wCMG7r2AQ2cw7lm/TKlYKUS0 Qr6MuIXz531vPrGbq/8ImL03qhpeuokFAMHNZYw= X-Google-Smtp-Source: ABdhPJzPPPUiakSLPW6PDy7lI0XGMlrd4bPjiC5t6AtHIfUbu9ssUE5NwE0BJYPgdIWcqZawcWaZWkkKA6k9ebNQ4yw= X-Received: by 2002:ad4:4eaf:: with SMTP id ed15mr16304955qvb.40.1603095534641; Mon, 19 Oct 2020 01:18:54 -0700 (PDT) MIME-Version: 1.0 References: <87zh4k435a.fsf@gmail.com> In-Reply-To: <87zh4k435a.fsf@gmail.com> From: zimoun Date: Mon, 19 Oct 2020 10:18:43 +0200 Message-ID: Subject: Re: bug#44053: Poor profile generation performance on spinning disks To: Maxim Cournoyer Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44053 Cc: 44053@debbugs.gnu.org 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: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Hi Maxim, On Sun, 18 Oct 2020 at 05:37, Maxim Cournoyer wrote: > On my home machine, will is still relying on 2 x 1 TB spinning drives in > RAID1, rebuilding my user profile, which contains 182 entries, takes on > average about 20 minutes, even when there are no packages to be built: The database build time seems correlated to the number of packages in the very profile. Well, I have not benchmarked to see if it is linear, quadratic; or worse or better. > --8<---------------cut here---------------start------------->8--- [...] > building XDG MIME database... > successfully built /gnu/store/cir84qj587i6is4akgqand7ahg9bj938-xdg-mime-database.drv > successfully built /gnu/store/cir84qj587i6is4akgqand7ahg9bj938-xdg-mime-database.drv > /gnu/store/j0bznlj2ibnhirijhnwpkkxzz4qfk8wb-xdg-mime-database > > real 1m7.344s > user 0m1.331s > sys 0m0.053s > --8<---------------cut here---------------end--------------->8--- Well, it is all clear to me, but I do not know if we can do better because these 2 XDG updates seem relying on the external binaries "/bin/update-desktop-database" and "/bin/update-mime-database". I have not timed the function 'xdg-desktop-database' but all the time should be spent on these, I bet. :-) All the best, simon