From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 822F7C3A5A9 for ; Mon, 4 May 2020 18:55:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 50096206B9 for ; Mon, 4 May 2020 18:55:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nTZlPKyC" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726410AbgEDSzK (ORCPT ); Mon, 4 May 2020 14:55:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725956AbgEDSzK (ORCPT ); Mon, 4 May 2020 14:55:10 -0400 Received: from mail-qk1-x732.google.com (mail-qk1-x732.google.com [IPv6:2607:f8b0:4864:20::732]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3576C061A0E for ; Mon, 4 May 2020 11:55:09 -0700 (PDT) Received: by mail-qk1-x732.google.com with SMTP id f13so700127qkh.2 for ; Mon, 04 May 2020 11:55:09 -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=b55riKebKIuodP45FjgT5oUWng13z38QCNAKl6Q6iZs=; b=nTZlPKyCKfCicG7hseEz4EDY6WB8gJX25vEBcTgExO41Ma3T2YmteqmECZVOgLKqCI F2wO5YVU7FYxNzDwYTWSJ4E3BBYNM5C2T/OQoyfxl9YFSalfYmsKrVHYvfBjxFgoHhsI K5gtQWPFftW7wy/gLn/zffTjLEZ3Gw62kCfHd/YQwvCMxlpcHPjGWqNgiiJaCeE/LKx0 NOfAIGOF5cALf8AkdOk42fHBE8E41zgsUCgGAN0psGAVuhh1t6GgvxKAQyXFUGEANs+M xhcEebhFtywSOJexaPjSgEBzwb2/FFnWBj2nFWL0jM4tyAkav+vymNHCe7rtN5RdjNS1 VCWg== 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=b55riKebKIuodP45FjgT5oUWng13z38QCNAKl6Q6iZs=; b=mXzAfW/C6WAGJHhUAtpExGzeu1NW1jcOTiIdAWzckl+r8H6EgZVXawZSaYSgwlTBL1 eb7xjLvW0CffsQ1UlWgMYrwZdcfBAK/XIZ7ptf+Vdarq+jXTeLzf7JsdFYHiqlIhbBTi MS2/F5YYKsapm+5LyDr5Ycd3ZQdjwj2KRvD8wzkGtoKeIOty9/NQXopRD7vHZTX3K19k 77QUbRqa8W8NuVRY2CtquohBFnDzDf6fLdMRSjFDzq3LmpFdOpNlAsuZC27zGeKYrflk 8afANpYTgLp4iD3hYXQmSIeZLtDG0/ytp7ubKNU7vHgTclVjdSKErHsNP0jyijrU2CpD jl7w== X-Gm-Message-State: AGi0PualGXa1phGIc5D51A1gBNGYaZvciHwyxMy8VbaD5EM3WAJ5ialF u1enbi6vCKyigD8KnMLT+8FZRKL+9mwfy1vO4uRwPKVG X-Google-Smtp-Source: APiQypImhb+r7OatxMqyS2E+SuG/uxGbN9JZfgLXuVvnvdicKdz7eJ8k6xdfWXsekaKsD9RHvVz91s0+JGOlxBhF+bo= X-Received: by 2002:a05:620a:662:: with SMTP id a2mr634956qkh.304.1588618508825; Mon, 04 May 2020 11:55:08 -0700 (PDT) MIME-Version: 1.0 References: <20200411211414.GP13306@hungrycats.org> <20200428045500.GA10769@hungrycats.org> In-Reply-To: From: Andrea Gelmini Date: Mon, 4 May 2020 20:54:57 +0200 Message-ID: Subject: Re: Balance loops: what we know so far To: Qu Wenruo Cc: Zygo Blaxell , Linux BTRFS Content-Type: text/plain; charset="UTF-8" Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org Il giorno mar 28 apr 2020 alle ore 12:00 Qu Wenruo ha scritto: > > Would you please take an image dump of the fs when runaway balance happened? > > Both metadata and data block group loop would greatly help. Hi Qu, and thanks a lot for your work. I have a VirtualBox machine (in save-state) with the problem running. So, I can send it to you, if you are comfortable with VirtulBox, or we can work together on my machine. Short story: a) system running is live CD ubuntu 20.04 with kernel 5.4.0-21 b) partition of 10 giga (not /) mounted; c) shrinked to 4 giga; d) then removed files and left just 59 mega of data; e) started balance -m (not -d), then it loops forever (or, at least, I left it running for hours, guess it should be enough). If I reset it, at restart no more loop. Thanks again, Gelma