Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp369646imd; Sat, 3 Nov 2018 02:02:20 -0700 (PDT) X-Google-Smtp-Source: AJdET5eyrbqsLqV6zR24opKhss0iQjq+vxgUND8n9D3dugnXdZlgK6KGXuFmfuBYmgklzeRddePR X-Received: by 2002:a17:902:503:: with SMTP id 3-v6mr14131726plf.252.1541235740074; Sat, 03 Nov 2018 02:02:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541235740; cv=none; d=google.com; s=arc-20160816; b=A/6CDcHpXw8jhxWWMw9Ld5cLYqVJ2MzS6x4JMOp/i0ndPbRKpRldpWwx3JV0FW9N1f P3bIdJU6N8wdK42xGxuD/rDyn2mldxk1gg+5SP0XuQR7GMS/RqjJ2GpdNcRvxlDrbRji Q3avb4npUZ2Wz81d5OTiLxqpaKOPi2bLB34EvHdD47WfAYBfbGZWQb/6VfhiO9gupXnD hL0iBz7L4+p438HpdS8ljyEru+88QoMlYgXvGNuXOfZT46b5CVJuW+DbMk24f86Eqks9 wHIEZU/giCKQj1Z9TGKir1vWm2KOXzB1R4kjloxDIAznf9OOkQtufqrWNknk5rPL3sTC Pf6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject; bh=ReX66PScl/8JBoiQHCCGrbajRUISjk8QpE9XXxQJnwc=; b=XCzTP+96nC615M2EjRrN2r2Eq17evDloMNkL6PkSSmnU7EIXNyX3ZPqMEbwdbotYxp qvMVEMQhKexzUnP+R/mW0J90c8ZUATM0v4OzewENRyaHT8qYsWHOPYSERm9fSI02imZN 4GzmYvB7jZqnm1cMlAlUAESdCglD4JwuwIRIFGFiOFVWsQV35Ra16bp8fzJarkgHrOmK ufC76d9ICLvM1uA7iV8dZExxuqrknsl5WzSBjysamZ8Xoe1HZR7aPZELDyreK3AflSY6 4GkWFHrEd7s6udrDQi8sfn3tEYLhI8WPmtcL91IQO23/GH9TIBfAekg/DxvgqPWjHQrc UQvQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8-v6si37989405pli.338.2018.11.03.02.01.50; Sat, 03 Nov 2018 02:02:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbeKCSL4 (ORCPT + 99 others); Sat, 3 Nov 2018 14:11:56 -0400 Received: from mx2.suse.de ([195.135.220.15]:43176 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726539AbeKCSL4 (ORCPT ); Sat, 3 Nov 2018 14:11:56 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 8FEAFB049; Sat, 3 Nov 2018 09:01:16 +0000 (UTC) Subject: Re: [PATCH] Change the total_dirty from SZ_256M to SZ_64M. To: hmsjwzb Cc: clm@fb.com, Josef Bacik , David Sterba , Omar Sandoval , Filipe Manana , linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org References: <20181103083654.655-1-weizhefix@gmail.com> From: Nikolay Borisov Openpgp: preference=signencrypt Autocrypt: addr=nborisov@suse.com; prefer-encrypt=mutual; keydata= xsFNBFiKBz4BEADNHZmqwhuN6EAzXj9SpPpH/nSSP8Ygf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446+5oEw8A9v5oonKV7zMAEQEAAcLBXwQYAQIACQUC WIoHPgIbDAAKCRBxvoJG5T8oV1pyD/4zdXdOL0lhkSIjJWGqz7Idvo0wjVHSSQCbOwZDWNTN JBTP0BUxHpPu/Z8gRNNP9/k6i63T4eL1xjy4umTwJaej1X15H8Hsh+zakADyWHadbjcUXCkg OJK4NsfqhMuaIYIHbToi9K5pAKnV953xTrK6oYVyd/Rmkmb+wgsbYQJ0Ur1Ficwhp6qU1CaJ mJwFjaWaVgUERoxcejL4ruds66LM9Z1Qqgoer62ZneID6ovmzpCWbi2sfbz98+kW46aA/w8r 7sulgs1KXWhBSv5aWqKU8C4twKjlV2XsztUUsyrjHFj91j31pnHRklBgXHTD/pSRsN0UvM26 lPs0g3ryVlG5wiZ9+JbI3sKMfbdfdOeLxtL25ujs443rw1s/PVghphoeadVAKMPINeRCgoJH zZV/2Z/myWPRWWl/79amy/9MfxffZqO9rfugRBORY0ywPHLDdo9Kmzoxoxp9w3uTrTLZaT9M KIuxEcV8wcVjr+Wr9zRl06waOCkgrQbTPp631hToxo+4rA1jiQF2M80HAet65ytBVR2pFGZF zGYYLqiG+mpUZ+FPjxk9kpkRYz61mTLSY7tuFljExfJWMGfgSg1OxfLV631jV1TcdUnx+h3l Sqs2vMhAVt14zT8mpIuu2VNxcontxgVr1kzYA/tQg32fVRbGr449j1gw57BV9i0vww== Message-ID: <8965ea1d-c29f-7bdf-44cb-874511899567@suse.com> Date: Sat, 3 Nov 2018 11:01:14 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <20181103083654.655-1-weizhefix@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3.11.18 г. 10:36 ч., hmsjwzb wrote: > The SZ_256M will cause trouble in platform with less than 256M memory. > For example, a qemu virtual machine. > > Signed-off-by: hmsjwzb If you have actually taken the care to understand the code in test_find_delalloc you would have seen that total_dirty and max_bytes are actually inter-dependent so you cannot really change total_bytes without adjusting max_bytes as well. Otherwise tests will start breaking. NACK on this (and likely any future postings of this) since the tests are sized in a such a way so as to test design limits (such as the max extent size which is 128MB) > --- > fs/btrfs/tests/extent-io-tests.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/btrfs/tests/extent-io-tests.c b/fs/btrfs/tests/extent-io-tests.c > index 9e0f4a01be14..cb23dce96a2d 100644 > --- a/fs/btrfs/tests/extent-io-tests.c > +++ b/fs/btrfs/tests/extent-io-tests.c > @@ -62,7 +62,7 @@ static int test_find_delalloc(u32 sectorsize) > struct page *page; > struct page *locked_page = NULL; > unsigned long index = 0; > - u64 total_dirty = SZ_256M; > + u64 total_dirty = SZ_64M; > u64 max_bytes = SZ_128M; > u64 start, end, test_start; > u64 found; >