From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6C8DD158023 for ; Sat, 17 Dec 2022 19:33:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A67E3E095E; Sat, 17 Dec 2022 19:33:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 542B8E095D for ; Sat, 17 Dec 2022 19:33:19 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 761FF341151 for ; Sat, 17 Dec 2022 19:33:18 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 129DF7AF for ; Sat, 17 Dec 2022 19:33:17 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1671305583.458eb130c93bbd0fd29912cd097c53921b43f9a6.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/bees/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-fs/bees/bees-0.7.ebuild X-VCS-Directories: sys-fs/bees/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 458eb130c93bbd0fd29912cd097c53921b43f9a6 X-VCS-Branch: master Date: Sat, 17 Dec 2022 19:33:17 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 51a4c0f0-7def-46fa-9eca-9dc614fd9a95 X-Archives-Hash: 53eaa75c3adb5bf29e7ef108e54babfd commit: 458eb130c93bbd0fd29912cd097c53921b43f9a6 Author: Kai Krakow kaishome de> AuthorDate: Sat Dec 17 11:40:53 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 17 19:33:03 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=458eb130 sys-fs/bees: update 0.7 pretend phase Signed-off-by: Kai Krakow kaishome.de> Signed-off-by: Sam James gentoo.org> sys-fs/bees/bees-0.7.ebuild | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/sys-fs/bees/bees-0.7.ebuild b/sys-fs/bees/bees-0.7.ebuild index a37916aa1764..5ceba33ee963 100644 --- a/sys-fs/bees/bees-0.7.ebuild +++ b/sys-fs/bees/bees-0.7.ebuild @@ -42,6 +42,12 @@ pkg_pretend() { ewarn "with more recent kernels:" ewarn "# WARNING: CPU: 3 PID: 18172 at fs/btrfs/backref.c:1391 find_parent_nodes+0xc41/0x14e0" ewarn + elif kernel_is -lt 5 7 0; then + ewarn "With kernel versions below 5.4.96 and 5.7, the kernel may hold file system" + ewarn "locks for a long time while at the same time CPU usage increases when bees is" + ewarn "operating. bees tries to avoid this behavior by excluding very common extents" + ewarn "from deduplication. This has only a minimal impact on dedupe effectiveness." + ewarn fi if kernel_is -lt 5 1 0; then ewarn "IMPORTANT: With kernel versions below 5.1.0, you may experience data corruption" @@ -51,8 +57,8 @@ pkg_pretend() { ewarn "# commit 8e92821 btrfs: fix corruption reading shared and compressed extents after hole punching" ewarn fi - if kernel_is -lt 5 3 4; then - ewarn "With kernel versions below 5.3.4, bees may trigger a btrfs bug when running" + if kernel_is -lt 5 4 19; then + ewarn "With kernel versions below 5.4.19, bees may trigger a btrfs bug when running" ewarn "btrfs-balance in parallel. This may lead to meta-data corruption in the worst" ewarn "case. Especially, kernels 5.1.21 and 5.2.21 should be avoided. Kernels 5.0.x" ewarn "after 5.0.21 should be safe. In the best case, affected kernels may force" @@ -60,6 +66,14 @@ pkg_pretend() { ewarn "https://github.com/Zygo/bees/blob/master/docs/btrfs-kernel.md" ewarn fi + if kernel_is -ge 5 4 0; then + ewarn "With kernel version 5.4 or later, the kernel may hang when multiple threads" + ewarn "are running LOGICAL_INO and dedupe ioctl. This is not exclusively triggered" + ewarn "by bees but also other software running such operations, bees will just more" + ewarn "likely to trigger the bug. You can work around this issue by reducing the" + ewarn "thread count of bees to 1." + ewarn + fi elog "Bees recommends running the latest current kernel for performance and" elog "reliability reasons, see README.md."