-
Notifications
You must be signed in to change notification settings - Fork 633
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get SMART attributes by id #1558
Comments
I don't really see where these attributes are coming from. The spec doesn't know about these. Maybe @hanumanthuh might know it. |
TN-FD-21 explains how to retrieve the data. --- a/plugins/micron/micron-nvme.c
+++ b/plugins/micron/micron-nvme.c
@@ -3355,6 +3355,8 @@ static int micron_logpage_dir(int argc, char **argv, struct command *cmd,
{0xC0, 0, "SMART Cloud Health Log"},
{0xC2, 0, "Firmware Activation History"},
{0xC3, 0, "Latency Monitor Log"},
+ {0xF7, 0, "Host program page count"},
+ {0xF8, 0, "Background program page count"}
};
printf("Supported log page list\nLog ID : Description\n"); In theory |
It seems that it is difficult to get the SMART attributes on the drive mentioned since probably OCP specification is not supported by the drive. ID: 247 (0xF7): Host program page count seems to be gotten by the get log page command smart / health information log data unit written below. Bytes: 63:48 Desctiption: Data Units Written: Contains the number of 512 byte data units the host has written to the controller as part of processing a User Data Out Command; this value does not include metadata. This value is reported in thousands (i.e., a value of 1 corresponds to 1,000 units of 512 bytes written) and is rounded up (e.g., one indicates that the number of 512 byte data units written is from 1 to 1,000, three indicates that the number of 512 byte data units written is from 2,001 to 3,000). Refer to the specific I/O Command Set specification for the list of User Data Out Commands that affect this field. A value of 0h in this field indicates that the number of Data Units Written is not reported. Note: The value is reported in thousands and the unit is 512 bytes. ID: 248 (0xf8): Background program page count seems to be gotten by the get log page command smart / health information extended / smart cloud attributes log page physical media units written below. Requirement ID: SMART-1 Byte Address: 15:0 Field: Physical Media Units Written # of Bytes: 16 Field Description: Shall contain the number of bytes written to the media; this value includes both user and metadata written to the user and system areas. It shall be possible to use this attribute to calculate the Write Amplification Factor (WAF). https://www.opencompute.org/documents/nvme-cloud-ssd-specification-v1-0-3-pdf Req ID: SMART-1 Byte Address: 15:0 Field: Physical Media Units Written # of Bytes: 16 Field description: Contains the number of bytes written to the media; this value includes both user and metadata written to the user and system areas. It shall be possible to use this attribute to calculate the Write Amplification Factor (WAF). Note: It is needed to be supported the OCP speficication on the drive but those are for the datacenter NVMe SSD and the NVMe cloud SSD so it is possible to be not supported by the drive mentioned by this issue. |
Thanks for digging into it @ikegami-t! This is something Micron needs to implement from your research. Best chances is to contact Micron directly and ask for supporting this feature. |
The nvme-cli features are implemented as the following commands. Seems the drive not supported the OCP feature and any vendor specific feature as a client and cosumer SSD but not an enterprise and data center SSD. Also not sure about other way so the issue may be needed to be closed as unsupported without any supporting.
|
I agree, if it's vendor extension, this needs to be implemented in the plugins. I don't plan to work on this and it look no one else either. I am going to close this. |
Hi,
I'm trying to get SMART attributes 247 and 248 on my
Samsung SSD 970 EVO Plus 1TB
using nvme ctl but can't find proper way.How to get SMART attributes using nvme ctl (or maybe some other way)?
reference:
https://media-www.micron.com/-/media/client/global/documents/products/technical-note/solid-state-storage/tnfd23_m500_smart_attributes_calc_waf.pdf
The text was updated successfully, but these errors were encountered: