mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chaitanya Kulkarni <chaitanyak@nvidia.com>
To: Wenchao Chen <wenchao.chen666@gmail.com>,
	"ulf.hansson@linaro.org" <ulf.hansson@linaro.org>
Cc: "axboe@kernel.dk" <axboe@kernel.dk>,
	"avri.altman@wdc.com" <avri.altman@wdc.com>,
	"adrian.hunter@intel.com" <adrian.hunter@intel.com>,
	Chaitanya Kulkarni <chaitanyak@nvidia.com>,
	"CLoehle@hyperstone.com" <CLoehle@hyperstone.com>,
	"vincent.whitchurch@axis.com" <vincent.whitchurch@axis.com>,
	"bigeasy@linutronix.de" <bigeasy@linutronix.de>,
	"s.shtylyov@omp.ru" <s.shtylyov@omp.ru>,
	"michael@allwinnertech.com" <michael@allwinnertech.com>,
	"linux-mmc@vger.kernel.org" <linux-mmc@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"megoo.tang@gmail.com" <megoo.tang@gmail.com>,
	"lzx.stg@gmail.com" <lzx.stg@gmail.com>
Subject: Re: [PATCH] mmc: block: Support Host to control FUA.
Date: Thu, 20 Oct 2022 03:07:17 +0000	[thread overview]
Message-ID: <b9ca56af-cb06-4fb1-d5d8-7426629dfe2b@nvidia.com> (raw)
In-Reply-To: <20221020024529.25227-1-wenchao.chen666@gmail.com>

On 10/19/22 19:45, Wenchao Chen wrote:
> From: Wenchao Chen <wenchao.chen@unisoc.com>
> 
> This patch introduces host->fua_disable for MMC host controller.
> The host can turn off FUA to improve performance.
> 
> 1. fua_disable = 1
> /sys/block/mmcblk0/queue # cat fua 0
> I tested 5 times for each case and output a average speed.
> 
> 1) Sequential read:
> Speed: 266.8MiB/s, 265.1MiB/s, 262.9MiB/s, 268.7MiB/s, 265.2MiB/s
> Average speed: 265.74MiB/s
> 
> 2) Random read:
> Speed: 98.75MiB/s, 98.7MiB/s, 98.5MiB/s, 99.4MiB/s, 98.7MiB/s
> Average speed: 98.81MiB/s
> 
> 3) Sequential write:
> Speed: 199.94MiB/s, 199.1MiB/s, 205.5MiB/s, 206.5MiB/s, 191.5MiB/s
> Average speed: 200.5MiB/s
> 
> 4) Random write:
> Speed: 68.6MiB/s, 71.8MiB/s, 77.1MiB/s, 64.8MiB/s, 69.3MiB/s
> Average speed: 70.32MiB/s
> 
> 2. fua_disable = 0 (default 0)
> /sys/block/mmcblk0/queue # cat fua 1
> I tested 5 times for each case and output a average speed.
> 
> 1) Sequential read:
> Speed: 259.3MiB/s, 258.8MiB/s, 258.2MiB/s, 259.5MiB/s, 253.5MiB/s
> Average speed: 257.86MiB/s
> 
> 2) Random read:
> Speed: 98.9MiB/s, 101MiB/s, 101MiB/s, 99MiB/s, 101.1MiB/s
> Average speed: 100.2MiB/s
> 
> 3) Sequential write:
> Speed: 153.7MiB/s, 146.2MiB/s, 151.2MiB/s, 148.8MiB/s, 147.5MiB/s
> Average speed: 149.48MiB/s
> 
> 4) Random write:
> Speed: 12.9MiB/s, 12.3MiB/s, 12.6MiB/s, 12.8MiB/s, 12.8MiB/s
> Average speed: 12.68MiB/s
> 
> According to the above data, disable FUA (fua_disable = 1) improves the
> performance. Therefore, it is recommended to support the host to control
> FUA.
> 
> Signed-off-by: Wenchao Chen <wenchao.chen@unisoc.com>

Based on the data provided seems it does increase the performance.
Perhaps it is worth mentioning the reason behind the performance
increase and other side effects of doing so ?

Also, it is usually helpful to mention performance increase in the
% in the commit log so you can move verbose log (like above) into
the cover-letter for documentation purpose, this is based on
the feedback I got, unless maintainer(s) prefers is this way :).

-ck


  reply	other threads:[~2022-10-20  3:07 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-20  2:45 Wenchao Chen
2022-10-20  3:07 ` Chaitanya Kulkarni [this message]
2022-10-20  8:04   ` Wenchao Chen
2022-10-20  7:44 ` Avri Altman
2022-10-20  7:59   ` Wenchao Chen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b9ca56af-cb06-4fb1-d5d8-7426629dfe2b@nvidia.com \
    --to=chaitanyak@nvidia.com \
    --cc=CLoehle@hyperstone.com \
    --cc=adrian.hunter@intel.com \
    --cc=avri.altman@wdc.com \
    --cc=axboe@kernel.dk \
    --cc=bigeasy@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=lzx.stg@gmail.com \
    --cc=megoo.tang@gmail.com \
    --cc=michael@allwinnertech.com \
    --cc=s.shtylyov@omp.ru \
    --cc=ulf.hansson@linaro.org \
    --cc=vincent.whitchurch@axis.com \
    --cc=wenchao.chen666@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®