From: Can Guo <cang@codeaurora.org>
To: Bean Huo <huobean@gmail.com>
Cc: asutoshd@codeaurora.org, nguyenb@codeaurora.org,
hongwus@codeaurora.org, linux-scsi@vger.kernel.org,
kernel-team@android.com, Alim Akhtar <alim.akhtar@samsung.com>,
Avri Altman <avri.altman@wdc.com>,
"James E.J. Bottomley" <jejb@linux.ibm.com>,
"Martin K. Petersen" <martin.petersen@oracle.com>,
Stanley Chu <stanley.chu@mediatek.com>,
Bean Huo <beanhuo@micron.com>,
Adrian Hunter <adrian.hunter@intel.com>,
Jaegeuk Kim <jaegeuk@kernel.org>,
Kiwoong Kim <kwmad.kim@samsung.com>,
Satya Tangirala <satyat@google.com>,
open list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH v5 1/2] scsi: ufs: Introduce hba performance monitor sysfs nodes
Date: Thu, 13 May 2021 09:15:09 +0800 [thread overview]
Message-ID: <638d9eb678db15e95317c16f2313ea19@codeaurora.org> (raw)
In-Reply-To: <cb32c4e786ac73681b80b8af556543f08f076687.camel@gmail.com>
On 2021-05-13 04:21, Bean Huo wrote:
> On Wed, 2021-04-21 at 19:28 -0700, Can Guo wrote:
>> +
>>
>> +static DEVICE_ATTR_RW(monitor_enable);
>>
>> +static DEVICE_ATTR_RW(monitor_chunk_size);
>>
>> +static DEVICE_ATTR_RO(read_total_sectors);
>>
>> +static DEVICE_ATTR_RO(read_total_busy);
>>
>> +static DEVICE_ATTR_RO(read_nr_requests);
>>
>> +static DEVICE_ATTR_RO(read_req_latency_avg);
>>
>> +static DEVICE_ATTR_RO(read_req_latency_max);
>>
>> +static DEVICE_ATTR_RO(read_req_latency_min);
>>
>> +static DEVICE_ATTR_RO(read_req_latency_sum);
>>
>> +static DEVICE_ATTR_RO(write_total_sectors);
>>
>> +static DEVICE_ATTR_RO(write_total_busy);
>>
>> +static DEVICE_ATTR_RO(write_nr_requests);
>>
>> +static DEVICE_ATTR_RO(write_req_latency_avg);
>>
>> +static DEVICE_ATTR_RO(write_req_latency_max);
>>
>> +static DEVICE_ATTR_RO(write_req_latency_min);
>>
>> +static DEVICE_ATTR_RO(write_req_latency_sum);
>
> Can,
>
> I like this series of patches, which can help me monitor UFS
> performance online. I have a suggestion, how do you think that we add
> this to ufs-debugfs. Then we don't need to poll each parameter one by
> one, just one interface.
>
> Bean
Hi Bean,
Thanks for your suggestion, put it into debugfs is also an option.
But on Android, debugfs is not mounted by default (the requirement
from Google). So it is convenient to have it in sysfs, and one can
use below cmd (as I listed in the cover letter) to poll all parameters
at once : "grep ^ /dev/null *".
Thanks,
Can Guo.
next prev parent reply other threads:[~2021-05-13 1:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CGME20210422022910epcas2p1c28bc11ee4118559d967e83bd8434c7f@epcms2p5>
2021-04-22 2:28 ` [PATCH v5 0/2] Introduce hba performance monitoring sysfs nodes Can Guo
2021-04-22 2:28 ` [PATCH v5 1/2] scsi: ufs: Introduce hba performance monitor " Can Guo
2021-05-12 20:21 ` Bean Huo
2021-05-13 1:15 ` Can Guo [this message]
2021-05-13 21:10 ` Bean Huo
2021-04-22 2:28 ` [PATCH v5 2/2] scsi: ufs: Add support for hba performance monitor Can Guo
2021-05-13 21:11 ` Bean Huo
2021-05-06 5:00 ` [PATCH v5 0/2] Introduce hba performance monitoring sysfs nodes Daejun Park
2021-05-15 2:56 ` Martin K. Petersen
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=638d9eb678db15e95317c16f2313ea19@codeaurora.org \
--to=cang@codeaurora.org \
--cc=adrian.hunter@intel.com \
--cc=alim.akhtar@samsung.com \
--cc=asutoshd@codeaurora.org \
--cc=avri.altman@wdc.com \
--cc=beanhuo@micron.com \
--cc=hongwus@codeaurora.org \
--cc=huobean@gmail.com \
--cc=jaegeuk@kernel.org \
--cc=jejb@linux.ibm.com \
--cc=kernel-team@android.com \
--cc=kwmad.kim@samsung.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=martin.petersen@oracle.com \
--cc=nguyenb@codeaurora.org \
--cc=satyat@google.com \
--cc=stanley.chu@mediatek.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