New issue
Advanced search Search tips

Issue 659262 link

Starred by 2 users

Issue metadata

Status: Verified
Owner: ----
Closed: Jan 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug

Blocking:
issue 655192



Sign in to add a comment

nvme: no per partition usage on NVMe

Project Member Reported by gwendal@chromium.org, Oct 25 2016

Issue description

Using 3.18 with a device with NVMe, I notice there is no per-partition statistics:

iostat -p ALL
NVME:
...
Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
...
nvme0n1          11.91       187.01        79.49     390648     166056
nvme0n1p1         0.00         0.00         0.00          0          0
nvme0n1p2         0.00         0.00         0.00          0          0
nvme0n1p3         0.00         0.00         0.00          0          0
nvme0n1p4         0.00         0.00         0.00          0          0
nvme0n1p5         0.00         0.00         0.00          0          0
nvme0n1p6         0.00         0.00         0.00          0          0
nvme0n1p7         0.00         0.00         0.00          0          0
nvme0n1p8         0.00         0.00         0.00          0          0
nvme0n1p9         0.00         0.00         0.00          0          0
nvme0n1p10        0.00         0.00         0.00          0          0
nvme0n1p11        0.00         0.00         0.00          0          0
nvme0n1p12        0.00         0.00         0.00          0          0

eMMC:
mmcblk0           1.55        37.50        81.88      78340     171036
mmcblk0p1         0.33         7.41        81.87      15485     171032
mmcblk0p2         0.14         2.45         0.00       5112          0
mmcblk0p3         0.13         6.92         0.00      14448          0
mmcblk0p4         0.14         2.45         0.00       5112          0
mmcblk0p5         0.13         6.92         0.00      14448          0
mmcblk0p6         0.00         0.00         0.00          5          0
mmcblk0p7         0.00         0.00         0.00          1          0
mmcblk0p8         0.12         2.03         0.00       4249          4
mmcblk0p9         0.00         0.00         0.00          1          0
mmcblk0p10        0.00         0.00         0.00          2          0
mmcblk0p11        0.18         3.59         0.00       7496          0
mmcblk0p12        0.11         1.90         0.00       3976          0
mmcblk0rpmb       0.05         0.19         0.00        400          0
mmcblk0boot1      0.46         1.84         0.00       3840          0
mmcblk0boot0      0.46         1.84         0.00       3840          0


The per device counters are correct, just per partition /stat counters are missing.

The issue has been reported on stack overflow:
http://serverfault.com/questions/784639/no-partition-statistics-with-iostat-on-nvme-devices-with-linux
 
Status: Verified (was: Untriaged)
Fixed in 4.4.
For 4.4 in the device, stats are reported:

nvme0n1          43.16      1662.43        41.10     297874       7364
nvme0n1p1        10.60       202.42        40.65      36269       7284
nvme0n1p2         0.76        12.68         0.00       2272          0
nvme0n1p3        28.89      1401.93         0.00     251198          0
nvme0n1p4         0.76        12.68         0.00       2272          0
nvme0n1p5         0.39        17.28         0.00       3096          0
nvme0n1p6         0.01         0.00         0.00          0          0
nvme0n1p7         0.01         0.00         0.00          0          0
nvme0n1p8         0.29         1.66         0.00        297          0
nvme0n1p9         0.01         0.00         0.00          0          0
nvme0n1p10        0.01         0.00         0.00          0          0
nvme0n1p11        0.76         5.58         0.00       1000          0
nvme0n1p12        0.30         4.75         0.00        852          0

Project Member

Comment 2 by bugdroid1@chromium.org, Jan 21 2017

Labels: merge-merged-chromeos-4.4
The following revision refers to this bug:
  https://chromium.googlesource.com/chromiumos/third_party/kernel/+/4ebd93b131fba48f12de0ad71b5b175b80a54d01

commit 4ebd93b131fba48f12de0ad71b5b175b80a54d01
Author: Gwendal Grignou <gwendal@chromium.org>
Date: Wed Jan 18 22:55:55 2017

CHROMIUM: config: Add NVMe stack

BUG= chromium:659262 
TEST=Install 4.4 kernel on a device with NVMe. Check we can boot from
NVMe. Check partition statistics are reported.

Change-Id: Id561353ff31630d135c4f1f9f1ac22e581e56ae0
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/430213
Reviewed-by: Guenter Roeck <groeck@chromium.org>

[modify] https://crrev.com/4ebd93b131fba48f12de0ad71b5b175b80a54d01/chromeos/config/x86_64/common.config

Sign in to add a comment