nvme-cli: make default error log entries to 128
PATCH 1/1 nvme-cli: make default error log entries to 128
NVMeOF target defines default error log entries to be 128, use the same number as a default value in the nvme-cli when retrieving error-log.
--- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
nvme.c +1 -1
@@ -557,7 +557,7 @@ static int get_error_log(int argc, char **argv, struct command *cmd, struct plug };struct config cfg = { - .log_entries =64 , + .log_entries =128 , .output_format ="normal" , };
Signature · 1 line
2.17.0
PATCH 1/1 nvme-cli: make default error log entries to 128
Quoted 14 lines · Chaitanya Kulkarni
NVMeOF target defines default error log entries to be 128, use the same number as a default value in the nvme-cli when retrieving error-log.
Signed-off-by Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>--- nvme.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)nvme.c +0
-0
nvme.c static int get_error_log(int argc, char **argv, struct command *cmd, struct plug · line 563
Quoted 8 lines
nvme.c +1
-1@@ -557,7 +557,7 @@ static int get_error_log(int argc, char **argv, struct command *cmd, struct plug };struct config cfg = { - .log_entries =64 , + .log_entries =128 , .output_format ="normal" , };
I disagree with this change based on the current implementation. Today's implementation tries to do the entire log read in an single read operation. Thus you are doubling the size of the io payload to something over 128k. It can be beyond the capacity of the host port or the device.? I think it's already high at 64k.
Now, if you wanted to change the nvme read log code to read the log in multiple transactions up to this count, that would be good.
-- james
PATCH 1/1 nvme-cli: make default error log entries to 128
Quoted 29 lines · James Smart
Quoted 14 lines · Chaitanya Kulkarni
NVMeOF target defines default error log entries to be 128, use the same number as a default value in the nvme-cli when retrieving error-log.
Signed-off-by Chaitanya Kulkarni <chaitanya.kulkarni at wdc.com>---
?nvme.c| 2 +-
? 1 file changed, 1 insertion(+), 1 deletion(-)nvme.c +0
-0@@ -557,7 +557,7 @@ static int get_error_log(int argc, char **argv,Quoted 7 lines
struct command *cmd, struct plug
????? };
? ????? struct config cfg = {
-??????? .log_entries? = 64,
+??????? .log_entries? = 128,
????????? .output_format = "normal",
????? };I disagree with this change based on the current implementation. Today's implementation tries to do the entire log read in an single read operation. Thus you are doubling the size of the io payload to something over 128k. It can be beyond the capacity of the host port or the device.? I think it's already high at 64k.
Quoted 5 lines
Now, if you wanted to change the nvme read log code to read the log in multiple transactions up to this count, that would be good.
-- james
I retract this - I was thinking it was discovery log. Error log entries are much smaller and is fine.
-- james