Return-Path: Received: from mail-wr1-f65.google.com (mail-wr1-f65.google.com [209.85.221.65]) by mail.openembedded.org (Postfix) with ESMTP id 0161D7F318 for ; Fri, 2 Aug 2019 15:20:57 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id g17so77579946wrr.5 for ; Fri, 02 Aug 2019 08:20:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=PfxtpFVks2uigQiEHmjOcNYh8G1CaA8iBIV3XVKXrJ0=; b=d5dLpNPkFFYcugAaLID913XQPpgOUzgYXoICer+l+vGiUP8JQJuHsN4b3S4Z3vqiqh WdqUWgC/8qrSG4tyZPAJBbz4TUiiipNVYmafCHfd0Rijqiq85Lz3xjw8Ea3zssuTUUI9 IpKQq3SoO3ZQKM7tZisMf2bTz7tVN4AyYVmPM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PfxtpFVks2uigQiEHmjOcNYh8G1CaA8iBIV3XVKXrJ0=; b=sZ0k3h/7cLwQGIeD1xxQiYvUzzxQq1rDj8sdFZdCssNi4wsGNJ4fvzKLqarDD4vbWM L3dUOal0Pyrg+HKnTIfUv4pKECnmqiF00R80Y2hS8HwCBk1lwMRB89ycnR7rGGteAwMz xAoANrMLvBrjFtYy8w9KtpUxDCDFo6AYt57/hmJnQfkTUuCvd64mEV1jDMtLedBr5hia 7aZp83glgSwbAC7fXfrHPRvXhpWLYBIpjayitBUvZIWgZE+alN7KBP696/Dgk1ibXhI1 7+DA8aw8jkgoppipSmfCIEGVTlBcqLYIDL7BiPyibxXLcv3bq6J/Ysxc4x+NHG3Mzet+ vFsA== X-Gm-Message-State: APjAAAXvHLiwtXOfJAUKfUJux6yG3aRkabzCiiuvC1DIpuNlcJPuEI2v Oz3t4dnOSxwbOJNCgBV9DOCh8vLCIIc= X-Google-Smtp-Source: APXvYqzNREVCdFBZaR1YBjKnNZbKQLvu2482wy88yF+lqvIcPhLXWjkvs4Q9OQUo1gR9tZSz5bVnLA== X-Received: by 2002:a5d:6508:: with SMTP id x8mr26980400wru.310.1564759258628; Fri, 02 Aug 2019 08:20:58 -0700 (PDT) Received: from hex.int.rpsys.net (5751f4a1.skybroadband.com. [87.81.244.161]) by smtp.gmail.com with ESMTPSA id p14sm62491785wrx.17.2019.08.02.08.20.57 for (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 02 Aug 2019 08:20:58 -0700 (PDT) From: Richard Purdie To: bitbake-devel@lists.openembedded.org Date: Fri, 2 Aug 2019 16:20:42 +0100 Message-Id: <20190802152049.16529-9-richard.purdie@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190802152049.16529-1-richard.purdie@linuxfoundation.org> References: <20190802152049.16529-1-richard.purdie@linuxfoundation.org> MIME-Version: 1.0 Subject: [PATCH 09/16] prserv: Use a memory journal X-BeenThere: bitbake-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussion that advance bitbake development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Aug 2019 15:20:58 -0000 Content-Transfer-Encoding: 8bit We've seen PR Server timeouts on the autobuilder, this is likely from the journal being blocked on disk IO generated by the build. Since we're running with synchronous off, we may as well put the journal into memory and avoid any IO related stalls. Signed-off-by: Richard Purdie --- lib/prserv/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/prserv/db.py b/lib/prserv/db.py index d6188a679b..117d8c052c 100644 --- a/lib/prserv/db.py +++ b/lib/prserv/db.py @@ -257,7 +257,7 @@ class PRData(object): self.connection=sqlite3.connect(self.filename, isolation_level="EXCLUSIVE", check_same_thread = False) self.connection.row_factory=sqlite3.Row self.connection.execute("pragma synchronous = off;") - self.connection.execute("PRAGMA journal_mode = WAL;") + self.connection.execute("PRAGMA journal_mode = MEMORY;") self._tables={} def disconnect(self): -- 2.20.1