All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] nvme-cli: make default error log entries to 128
@ 2018-09-11  0:41 Chaitanya Kulkarni
  2018-09-12  5:01 ` James Smart
  0 siblings, 1 reply; 3+ messages in thread
From: Chaitanya Kulkarni @ 2018-09-11  0:41 UTC (permalink / raw)


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(-)

diff --git a/nvme.c b/nvme.c
index 970fc0b..ad88aa6 100644
--- a/nvme.c
+++ b/nvme.c
@@ -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",
 	};
 
-- 
2.17.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] nvme-cli: make default error log entries to 128
  2018-09-11  0:41 [PATCH] nvme-cli: make default error log entries to 128 Chaitanya Kulkarni
@ 2018-09-12  5:01 ` James Smart
  2018-09-12 22:34   ` James Smart
  0 siblings, 1 reply; 3+ messages in thread
From: James Smart @ 2018-09-12  5:01 UTC (permalink / raw)


On 9/10/2018 5:41 PM, Chaitanya Kulkarni wrote:
> 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(-)
>
> diff --git a/nvme.c b/nvme.c
> index 970fc0b..ad88aa6 100644
> --- a/nvme.c
> +++ b/nvme.c
> @@ -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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH] nvme-cli: make default error log entries to 128
  2018-09-12  5:01 ` James Smart
@ 2018-09-12 22:34   ` James Smart
  0 siblings, 0 replies; 3+ messages in thread
From: James Smart @ 2018-09-12 22:34 UTC (permalink / raw)




On 9/11/2018 10:01 PM, James Smart wrote:
> On 9/10/2018 5:41 PM, Chaitanya Kulkarni wrote:
>> 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(-)
>>
>> diff --git a/nvme.c b/nvme.c
>> index 970fc0b..ad88aa6 100644
>> --- a/nvme.c
>> +++ b/nvme.c
>> @@ -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
>

I retract this - I was thinking it was discovery log. Error log entries 
are much smaller and is fine.

-- james

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-09-12 22:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-11  0:41 [PATCH] nvme-cli: make default error log entries to 128 Chaitanya Kulkarni
2018-09-12  5:01 ` James Smart
2018-09-12 22:34   ` James Smart

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.