Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp526640pxb; Thu, 21 Oct 2021 04:33:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzNG3tytKa/FnwHEJ9Edh5K3F8mBjEZFO9xx0gklXmn4gCxDawpvj8Pu3RHanuVGiTz8+o7 X-Received: by 2002:a05:6402:40cf:: with SMTP id z15mr7033054edb.138.1634815984277; Thu, 21 Oct 2021 04:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634815984; cv=none; d=google.com; s=arc-20160816; b=t1P8lD7UcaRqgNprlUrJPjXv0uJmTkSRJcOeA+ybOpsK20OiTwbdg8D/ahvmtJeCzI p5H4pRFxyZ/REkItY/H4gNcRlUPWB+5J4QYTcb5DRfWWc7oqDddrrOkk1Ru0klcoSbwg xLbbiBAG5GnvLYU+zJeJOhCOFRm0KwqzehXru6oRgRHN0TfDiLS9zFPWD2M+quX6arZz BFSXwRWB31WbGRx93T9IGYQeIoZhkJDEOPCon4/RxqD9aJPGYq0jH8d3bSJLNp7qkeSV DkPV/Q55fLW5rDWdASHwHWTY55Jk+DlQG8j83XCERgEBWlpv9UpHfXV0LrB4sGOqg5ds mH6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=lxmdV0DbwuI/GlDa8XyPLQCRvSJQIuOek84CVUR0x8Y=; b=mRVojjU3gSfkiLXh8APHqxze7cTTmvhIh5zBZoRMnBQXVTcQwZ8yxM5WrdD7iy+Gj5 e6wK7tTMaOqAFL2fRRyuFNmKEbvaQek4idslWGK+zLuYbF4EakHFhwsjY1JRGSJcO6bx f84A4DJJSALnXVs8tq9OwifuL3HXIzXez7Gh2H61vg4vcPMI7kP6jHutSb26I3T2RO2r iahJsndHY5vG2258PVdyrI4+UCAQTq64HxHC1Y4VRTh7Sv1Q5g0BfcQqpg/ctcag/g9+ wz2Q16++55PMSRR/0sr8EBgpvYM8AmtSdP6K6elBJAryOvSsiSTCbrIm3/MgyNLHn01u Oyjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AIGa8F4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s23si7041222eju.267.2021.10.21.04.32.39; Thu, 21 Oct 2021 04:33:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=AIGa8F4h; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230413AbhJULbx (ORCPT + 99 others); Thu, 21 Oct 2021 07:31:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:43460 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbhJULbw (ORCPT ); Thu, 21 Oct 2021 07:31:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C2E8960EFE; Thu, 21 Oct 2021 11:29:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634815776; bh=mcc72ZcqDdMDWiL2WxtN09zO3LW9PCTKiI0ho3RGf3k=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=AIGa8F4hEJ9tysD3zEuLrV/8EzNpzbOIYGrO0kBy4fh+xFqC4Pxeg8KwwwPkTyGFG /SiGt8Rlaw5iZsW9mNKPUeHchALKfHAVmss2slYOu1KAqMe6FxpA/33Im/4+nuee6D 8EqYO+OmQUjMh7HCdZIJlNwqti6cc/WiC8eDgUuY+IlW8aqG4yT56LAfPeAi8O2QBc ajy60KmOnmJg43C0hj1ZhjK7KhTTgdRkUVuDjQt6e3+/wb6NgSqjCOjkMbeKCq8AKG rnj0YTE6R1EVI6dR0x9Mwib6f+ll4L6r61B4amIKRc5/RY8pdxg/j5+XYAcsdaQvyb vyaUVlm4J4Rng== Message-ID: <0e77ea3e-196e-cc41-91eb-abc89ca6d522@kernel.org> Date: Thu, 21 Oct 2021 19:29:33 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 Subject: Re: [f2fs-dev] [PATCH v5] f2fs: introduce fragment allocation mode mount option Content-Language: en-US To: Daeho Jeong , linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, kernel-team@android.com Cc: Daeho Jeong References: <20210929181203.1606675-1-daeho43@gmail.com> From: Chao Yu In-Reply-To: <20210929181203.1606675-1-daeho43@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2021/9/30 2:12, Daeho Jeong wrote: > From: Daeho Jeong > > Added two options into "mode=" mount option to make it possible for > developers to simulate filesystem fragmentation/after-GC situation > itself. The developers use these modes to understand filesystem > fragmentation/after-GC condition well, and eventually get some > insights to handle them better. > > "fragment:segment": f2fs allocates a new segment in ramdom position. > With this, we can simulate the after-GC condition. > "fragment:block" : We can scatter block allocation with > "max_fragment_chunk" and "max_fragment_hole" sysfs > nodes. f2fs will allocate 1.. > blocks in a chunk and make a hole in the length of > 1.. by turns in a newly allocated > free segment. Plus, this mode implicitly enables > "fragment:segment" option for more randomness. > > Signed-off-by: Daeho Jeong Reviewed-by: Chao Yu Thanks,