From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id u9UeLHoth1+dMAAA0tVLHw (envelope-from ) for ; Wed, 14 Oct 2020 16:55:22 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id sG5aJ3oth1+PXwAAB5/wlQ (envelope-from ) for ; Wed, 14 Oct 2020 16:55:22 +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 4821794053C for ; Wed, 14 Oct 2020 16:55:22 +0000 (UTC) Received: from localhost ([::1]:35314 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSk3d-0000vo-2O for larch@yhetil.org; Wed, 14 Oct 2020 12:55:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40966) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kSk2M-00008H-Na for bug-guix@gnu.org; Wed, 14 Oct 2020 12:54:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:41360) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kSk2M-0007zg-Ea for bug-guix@gnu.org; Wed, 14 Oct 2020 12:54:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kSk2M-0000LS-DV for bug-guix@gnu.org; Wed, 14 Oct 2020 12:54:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#43850: cuirass: inconsistent SQL queries execution time. Resent-From: Mathieu Othacehe Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Wed, 14 Oct 2020 16:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 43850 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 43850@debbugs.gnu.org Received: via spool by 43850-submit@debbugs.gnu.org id=B43850.16026944101285 (code B ref 43850); Wed, 14 Oct 2020 16:54:02 +0000 Received: (at 43850) by debbugs.gnu.org; 14 Oct 2020 16:53:30 +0000 Received: from localhost ([127.0.0.1]:52906 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSk1p-0000Kf-Qr for submit@debbugs.gnu.org; Wed, 14 Oct 2020 12:53:30 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kSk1o-0000KQ-BZ for 43850@debbugs.gnu.org; Wed, 14 Oct 2020 12:53:28 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:32822) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kSk1j-0007w2-1a for 43850@debbugs.gnu.org; Wed, 14 Oct 2020 12:53:23 -0400 Received: from [2a01:cb18:832e:5f00:1013:8f9a:f686:d929] (port=37156 helo=cervin) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kSk1i-00034V-Li for 43850@debbugs.gnu.org; Wed, 14 Oct 2020 12:53:22 -0400 From: Mathieu Othacehe References: <87a6wyhviz.fsf@gnu.org> Date: Wed, 14 Oct 2020 18:53:20 +0200 In-Reply-To: <87a6wyhviz.fsf@gnu.org> (Mathieu Othacehe's message of "Wed, 07 Oct 2020 18:04:52 +0200") Message-ID: <87362gg35r.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -3.3 (---) X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Spam-Score: -1.51 X-TUID: UVYzFKdAJCmN Hello, I pushed and deployed several patches that: - update metrics in a single transaction - register builds in a single transaction - use a single write database worker, queuing queries and submitting them by batches (in a single transaction). - optimize some SQLite parameters (decrease WAL size, use more RAM caching) this should improve the situation, even if I still observe some inconsistent execution duration. I still have a few improvement ideas such as pre-allocating a large database file to decrease fragmentation and running periodic vacuums. Thanks, Mathieu