Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp876369lqs; Fri, 14 Jun 2024 08:08:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVwtcyxfP4cmC74NisSm8qqlk4bmkm0TwJANDYkvrW5ME7kxGF/aupuCgDkil1dqhfmSTCMODnm9fky1zpzRit8AT7m9PJwjdp5F3r5gQ== X-Google-Smtp-Source: AGHT+IEUJ9Se1mhZJlIwhZrvAGDMnth82hmVRcV1sp8P8rmzKBjHQO5qtUh4TweULylKWkOQ/5HR X-Received: by 2002:aa7:8b8d:0:b0:705:c029:c9a7 with SMTP id d2e1a72fcca58-705d715fd67mr2663509b3a.15.1718377698792; Fri, 14 Jun 2024 08:08:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718377698; cv=pass; d=google.com; s=arc-20160816; b=QOvWtA+4su2xO+IYEKieBtGtMR0O8E8vX1ArsKixFzzGLqPBHVknYRT+Dki1Er7rre 4BoT4zQ1r579K7TmokN0NPmskA4VM/5CHb+yngllap1ifBVNOI/ZP/TG95xSzyw6Nvm6 l8vcPUtszSynX9PJOz5BNSAXFxcI0uu1nmVsQbGH4s3S66R+CZF2Vp9Ox8dQ8SdKVMQR R3YPVKXlMQaK/jWdekbDdAJ/gP8FV/JB0C+HjU+WosPxPfTP4B/AYN87xdar58F2+bjv tz7+Gezp+8ZeyK3pP/hyT91HSDmdJOS9IMc8BuEGUnfv20wChgLVkdfIaFF29wTs+ljk MBLg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=2rJRg6kRQ6A4z9omnfII6w6KY3MnnOvY2HVa2sB5fm8=; fh=PBPOyiADex3OP+1MruFQnUHEQqViR7Blo2j4q5nHHrk=; b=cxvK6iPDFADWkJjmaAzcUq0jWoWvLUEg+zispPm/STHe94ZBAVXtNvsHi4q8iX4wtq FLD+QX3gNj34utTLlrDAemHVwGNUiuDpyHfAXrZRTqiBiGEPBb04BrxeIvP6N+/ItS4G S/zbnu6TlztGJD5mJSvrAnZ+4b2mL7Wwzq5yUaZji96B68Mr543OlnQ2Oq+J1EHjF5aG 77PatFgcFGoXcSOfcaNd+MkzMzmbavm1DIn5JeIHPAFY+a9etglVg8UvXN2J4KBt04iq neH80uYLrzTYLmY9+wlnLKIofpl/zRITCFvYcZ0Ce8JCIBqw3+xMpOuGbtwb9z/VY1Sg jutg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=qWUIBNXN; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-215050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fee310cfcbsi3756290a12.300.2024.06.14.08.08.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 08:08:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linux.dev header.s=key1 header.b=qWUIBNXN; arc=pass (i=1 spf=pass spfdomain=linux.dev dkim=pass dkdomain=linux.dev dmarc=pass fromdomain=linux.dev); spf=pass (google.com: domain of linux-kernel+bounces-215050-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215050-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linux.dev Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2CC3AB25FC3 for ; Fri, 14 Jun 2024 14:51:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 62CED376F1; Fri, 14 Jun 2024 14:50:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="qWUIBNXN" Received: from out-172.mta0.migadu.com (out-172.mta0.migadu.com [91.218.175.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C5ED8C132 for ; Fri, 14 Jun 2024 14:50:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718376655; cv=none; b=t6q2yVNPf0viDWRB7Sj99O8NNirHDzIzYvcVP4A6pqovDrnHKzNV1EDdRSGleEFCXc3Bvy6SPpB76ipNqliWLiDUWBdG2SBnqvLc4840r/3EXBTQPfj0ovP0KS/KiDCt/sfVKvYPxRSVIxxL3XqQkgsfqtwqdYf/EuKQKRoP4x0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718376655; c=relaxed/simple; bh=S0Y8/adRaiA65OlT4oLsf0s1kSP3BurOCFXn6UGKD2I=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rQ9egFecyBgDBbVww5a9SLZUAEjrr6etErlbIZBePvQ1s+vlUmOkFxxFGn//vWhlxFvCQQI5VvjWNgM8r9Yy15NjtqlwVUW6R/R2qN2h5JWVG3pQlY4ZYW0pteKTnVHwa6bFeHzFgImL0yxzqM93Mx8WFHuCL2Q7zmAuTjVf1xo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=qWUIBNXN; arc=none smtp.client-ip=91.218.175.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev X-Envelope-To: kernel@pankajraghav.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1718376651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=2rJRg6kRQ6A4z9omnfII6w6KY3MnnOvY2HVa2sB5fm8=; b=qWUIBNXNZmNnKYRNzYO9AxMvN727QJtIaoTXzxgclFw0T3pevOCiQKzgWTk36btftmGf9O sdC+12kgPbXgK2MrDM/5QAoD39LotaAddKZ+yh99Nk7NzumTbArUF1JK+2x4ZTW36AUEDd V6n/kaBiKw8/27YaRY3COk6h2Axmxq8= X-Envelope-To: bfoster@redhat.com X-Envelope-To: linux-bcachefs@vger.kernel.org X-Envelope-To: willy@infradead.org X-Envelope-To: linux-kernel@vger.kernel.org X-Envelope-To: p.raghav@samsung.com Date: Fri, 14 Jun 2024 10:50:46 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Kent Overstreet To: "Pankaj Raghav (Samsung)" Cc: Brian Foster , linux-bcachefs@vger.kernel.org, willy@infradead.org, linux-kernel@vger.kernel.org, Pankaj Raghav Subject: Re: [PATCH 0/2] improve buffered write performance with fgf order hint Message-ID: References: <20240614105031.57032-1-kernel@pankajraghav.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240614105031.57032-1-kernel@pankajraghav.com> X-Migadu-Flow: FLOW_OUT On Fri, Jun 14, 2024 at 10:50:29AM +0000, Pankaj Raghav (Samsung) wrote: > From: Pankaj Raghav > > Filesystems that support large folios can set the fgf order before > buffered write(see XFS iomap_write_begin()) that can provide as a hint > to page cache to allocate large folios, if possible. > > The first patch is a minor cleanup. > The second patch sets fgf order before starting the buffered write. > > I tested the performance on Samsung SSD 990 pro on a system with 64GB > RAM as follows: > > $ bcachefs format -f /dev/nvme0n1; > $ mount -t bcachefs /dev/nvme0n1 /mnt > $ fio --name=bcachefs --filename=/mnt/test --size=100G \ > --ioengine=io_uring --iodepth=16 --rw=write --bs=128k > > I measured the BW(MB/s) across three runs on 6.10-rc3: > Before patches: 2730 > After patches: 3430 (1.25x boost) > > With -o no_data_io mount option: > Before patches: 2920 > After patches: 4630 (1.5x boost) > > I was not able to test the patches with ktest due to some issue with > debian(some broken package issue). Maybe Kent can run it in his CI while > I try to fix ktest locally? It's in my testing branch, results will be showing up here: https://evilpiepirate.org/~testdashboard/ci?branch=bcachefs-testing