History log of /spdk/lib/bdev/bdev_rpc.c (Results 1 – 25 of 55)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v25.01-rc1, v24.09, v25.01-pre, v24.09-rc1
# 63e0c25d 12-Sep-2024 Vasilii Ivanov <iwanovvvasilij@gmail.com>

bdev: add reset_mode to bdev_get_iostat

In current implementation of resetting stats explicit bdev_reset_iostat
call is needed. It is not optimal for usecases
when stat is obtained periodically and

bdev: add reset_mode to bdev_get_iostat

In current implementation of resetting stats explicit bdev_reset_iostat
call is needed. It is not optimal for usecases
when stat is obtained periodically and then resetted, because
some stats may be lost in between of get and reset.
Introduce new option for bdev_get_iostat that allows to reset stat
right after obtaining it.

Fixes #3525

Change-Id: I77a5ea9310718c25e678336e2450a04fb582c050
Signed-off-by: Vasilii Ivanov <iwanovvvasilij@gmail.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24900
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# fee788f6 11-Jul-2024 Jim Harris <jim.harris@samsung.com>

bdev: add numa.id to spdk_bdev

Note, we also need to add a "numa.id_valid" bit, so that we can
differentiate between bdevs that explicitly set a numa.id of 0, vs.
those that just calloc() the memory

bdev: add numa.id to spdk_bdev

Note, we also need to add a "numa.id_valid" bit, so that we can
differentiate between bdevs that explicitly set a numa.id of 0, vs.
those that just calloc() the memory and therefore just set 0
implicitly.

Signed-off-by: Jim Harris <jim.harris@samsung.com>
Change-Id: I23c6f1bd0fb976de395cc22f46e2fb121b96c244
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/24152
Reviewed-by: Ben Walker <ben@nvidia.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 8f6897f1 25-Jun-2024 Pierre Lestringant <plestringant@kalray.eu>

bdev: remove unused struct declaration rpc_bdev_get_bdevs_ctx

Apparently this struct is never used.

Change-Id: I73bc5455614218e65f02aa1d830fba2cbfcca090
Signed-off-by: Pierre Lestringant <plestring

bdev: remove unused struct declaration rpc_bdev_get_bdevs_ctx

Apparently this struct is never used.

Change-Id: I73bc5455614218e65f02aa1d830fba2cbfcca090
Signed-off-by: Pierre Lestringant <plestringant@kalray.eu>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23867
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Reviewed-by: Tomasz Zawadzki <tomasz@tzawadzki.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: GangCao <gang.cao@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# cdc37d69 18-Jun-2024 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Add PI format to bdev structure together with query function

Add enum dif_pi_format to spdk_bdev structure and add a public API
spdk_bdev_get_dif_pi_format() for the upper layer to get it.

Si

bdev: Add PI format to bdev structure together with query function

Add enum dif_pi_format to spdk_bdev structure and add a public API
spdk_bdev_get_dif_pi_format() for the upper layer to get it.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: Ie454d4d19dadf8534f29614389d8a91e75857fa7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23625
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <ben@nvidia.com>

show more ...


# f3cef5e1 12-Jun-2024 Atul Malakar <a.malakar@samsung.com>

bdev: Add bdev_enable_histogram filter

Added new --opc parameter to bdev_enable_histogram RPC.
It facilitates user to capture histogram data points for the specified
IO type.

Refer to bdev_get_bde

bdev: Add bdev_enable_histogram filter

Added new --opc parameter to bdev_enable_histogram RPC.
It facilitates user to capture histogram data points for the specified
IO type.

Refer to bdev_get_bdevs RPC for list of io types.

Change-Id: I3b70296ae32adc80f894e19426af22da0ac70802
Signed-off-by: Atul Malakar <a.malakar@samsung.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23488
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 3886567d 12-Jun-2024 Atul Malakar <a.malakar@samsung.com>

bdev: RPC bdev_get_bdevs modified to print all io types

Previously, bdev_get_bdevs RPC provided information of limited IO types.

To fix this, rpc_dump_bdev_info() is modified to print out all of th

bdev: RPC bdev_get_bdevs modified to print all io types

Previously, bdev_get_bdevs RPC provided information of limited IO types.

To fix this, rpc_dump_bdev_info() is modified to print out all of the
io types from spdk_bdev_io_type enum.

It uses spdk_bdev_get_io_type_name helper function from previous patch.

Change-Id: I4f87854a89d97acf29a23c0503092f790ff304f5
Signed-off-by: Atul Malakar <a.malakar@samsung.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/23661
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


Revision tags: v24.05, v24.09-pre, v24.05-rc1, LTS, v24.01, v24.05-pre, v24.01-rc1
# 9b21ca0c 09-Nov-2023 Konrad Sztyber <konrad.sztyber@intel.com>

bdev: make iobuf caches configurable

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I5bf79dd434811cdd636880e4d26f23a0b1239f76
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/s

bdev: make iobuf caches configurable

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I5bf79dd434811cdd636880e4d26f23a0b1239f76
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20543
Community-CI: Mellanox Build Bot
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 411613fe 09-Nov-2023 Konrad Sztyber <konrad.sztyber@intel.com>

bdev: simplify bdev_set_options handling

There's no need for defining a separate structure, we can simply use
spdk_bdev_opts for parsing the RPC parameters sent by the user.

Signed-off-by: Konrad S

bdev: simplify bdev_set_options handling

There's no need for defining a separate structure, we can simply use
spdk_bdev_opts for parsing the RPC parameters sent by the user.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Icecf591e6ebc59d00dbcd8cd373e1b97e894144d
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20542
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <jim.harris@samsung.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>

show more ...


# 8cffbe01 26-Oct-2023 Konrad Sztyber <konrad.sztyber@intel.com>

rpc: use spdk_json_write_uuid() to dump UUIDs

While here, remove some of the empty lines between spdk_json_write*
calls, as they only made the code less readable.

Signed-off-by: Konrad Sztyber <kon

rpc: use spdk_json_write_uuid() to dump UUIDs

While here, remove some of the empty lines between spdk_json_write*
calls, as they only made the code less readable.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: I22909de1a04cd24322534971daf3128776c36855
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20473
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Reviewed-by: Jim Harris <jim.harris@samsung.com>

show more ...


Revision tags: v23.09, v24.01-pre, v23.09-rc1
# 38df3ad5 25-Aug-2023 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Add spdk_bdev_open_async() and use it for bdev_get_bdevs RPC

When the bdev library is finished, a bdev_get_bdevs RPC call may be
still in progress. We should abort it to avoid memory leak.

Po

bdev: Add spdk_bdev_open_async() and use it for bdev_get_bdevs RPC

When the bdev library is finished, a bdev_get_bdevs RPC call may be
still in progress. We should abort it to avoid memory leak.

Poller was created in bdev_rpc.c. If bdev.c aborts poller in bdev_rpc.c,
cross reference occurs and this causes a lot of cumbersome changes into
unit tests.

Hence, add a new API spdk_bdev_open_async() and move poller from
bdev_rpc.c to bdev.c. This simplifies the fix a lot.

Together with the previous patch, fixes the issue #3062.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I1e131732d149c8742e9584b2c9e588f62a0c0c56
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/19358
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Jim Harris <jim.harris@gmail.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


Revision tags: v23.05, v23.09-pre
# 92595a58 16-May-2023 Konrad Sztyber <konrad.sztyber@intel.com>

bdev: remove {small,large}_buf_pool_size from spdk_bdev_opts

These options were marked as deprecated and to be removed in v23.05.
Users should use iobuf_set_options instead.

Signed-off-by: Konrad S

bdev: remove {small,large}_buf_pool_size from spdk_bdev_opts

These options were marked as deprecated and to be removed in v23.05.
Users should use iobuf_set_options instead.

Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com>
Change-Id: Iaba5796c81f8bae89a1c779da9c3944539d9b658
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/18123
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot

show more ...


Revision tags: v23.01.1
# 11dc297c 06-Mar-2023 Krzysztof Karas <krzysztof.karas@intel.com>

bdev: always generate UUIDs

Make sure UUID is present for every bdev, even ephemeral ones.
Furthermore, this change removes assumption that bdev UUID
may remain empty.

Change-Id: I924c1ba9dedfe88a0

bdev: always generate UUIDs

Make sure UUID is present for every bdev, even ephemeral ones.
Furthermore, this change removes assumption that bdev UUID
may remain empty.

Change-Id: I924c1ba9dedfe88a05044bb1073f28085735b1c1
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17106
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Ben Walker <benjamin.walker@intel.com>

show more ...


Revision tags: v23.01, v23.05-pre, v23.01-rc1, v22.01.2
# a7eb6187 24-Oct-2022 Mike Gerdts <mgerdts@nvidia.com>

bdev: implement claims v2

This implements the v2 claims API. Compared to the original v1 claims,
v2 claims:

- Support read-write-once, read-write-many, and read-only-many claims.
- Are claimed with

bdev: implement claims v2

This implements the v2 claims API. Compared to the original v1 claims,
v2 claims:

- Support read-write-once, read-write-many, and read-only-many claims.
- Are claimed with spdk_bdev_module_claim_desc().
- Are associated with a bdev descriptor that is passed to
spdk_bdev_module_claim_bdev_desc().
- Are released upon close of the bdev descriptor used to obain the
claim.
- Cannot be taken when a descriptor other than the one passed to
spdk_bdev_module_claim_bdev_desc() has write access.

Later commits in this series are needed to fully integrate them with the
bdev subsystem.

Change-Id: I39a356f5893aa45ac346623ec9ce0ec659b38975
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15288
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>

show more ...


# a6b0b5b0 31-Jan-2023 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Use error_response() rather than bool_response(false) for JSON RPC

For JSON RPC, boolean response with false value may not be regarded as error.
Previously many cases were replaced to use
spdk

bdev: Use error_response() rather than bool_response(false) for JSON RPC

For JSON RPC, boolean response with false value may not be regarded as error.
Previously many cases were replaced to use
spdk_jsonrpc_send_error_response() explicitly. Replace one of the remaining
cases in this patch.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I1b4ffe015c2b2e28d411faf7763c2baca81f66f5
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16623
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 139940d6 20-Jan-2023 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev/rpc: Fix race condition for per channel bdev_get_iostat

With per channel stats called on thread A,
spdk_bdev_for_each_channel calls
spdk_for_each_channel which immediately sends
a message to th

bdev/rpc: Fix race condition for per channel bdev_get_iostat

With per channel stats called on thread A,
spdk_bdev_for_each_channel calls
spdk_for_each_channel which immediately sends
a message to thread B.
If thread B has no workload, it may execute the
message relatively fast trying to write stats to
json_write_ctx.
As result, we may have 2 scenarious:
1. json_write_ctx is still not initialized on
thread A, so thread B dereferences a NULL pointer.
1. json_write_ctx is initialized but thread A writes
response header while thread B writes stats - it leads
to corrupted json response.

To fix this race condition, initialize json_write_ctx
before iterating bdevs/channels

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Signed-off-by: Alexey Marchuk <alexeymar@nvidia.com>
Reported-by: Or Gerlitz <ogerlitz@nvidia.com>
Change-Id: I5dae37f1f527437528fc8a8e9c6066f69687dec9
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16366
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# db3869d1 20-Jan-2023 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev/rpc: Factor out start RPC response of bdev_get_iostat

This is a preparation for the next patch to fix the race condition of
per channel mode.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia

bdev/rpc: Factor out start RPC response of bdev_get_iostat

This is a preparation for the next patch to fix the race condition of
per channel mode.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I9eaefc527ccf82011af39b8261f5b3cc12983bda
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16365
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>

show more ...


# 567d6b53 19-Jan-2023 Richael Zhuang <richael.zhuang@arm.com>

bdev: rename values of enum spdk_bdev_reset_stat_mode

Add the prefix "SPDK_" to values of enum spdk_bdev_reset_stat_mode
for it's public.

Change-Id: If0e2a84849048ca03b5945f6155b9719f00254b4
Signed

bdev: rename values of enum spdk_bdev_reset_stat_mode

Add the prefix "SPDK_" to values of enum spdk_bdev_reset_stat_mode
for it's public.

Change-Id: If0e2a84849048ca03b5945f6155b9719f00254b4
Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16343
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>

show more ...


# 8ddc102a 21-Dec-2022 Richael Zhuang <richael.zhuang@arm.com>

bdev: add public APIs for IO statictics processing

Export functions bdev_reset_io_stat(), bdev_add_io_stat() and
bdev_dump_io_stat_json() as public APIs.

Change-Id: Ibd0bcf44f2967d79d1ceb9e183c0857

bdev: add public APIs for IO statictics processing

Export functions bdev_reset_io_stat(), bdev_add_io_stat() and
bdev_dump_io_stat_json() as public APIs.

Change-Id: Ibd0bcf44f2967d79d1ceb9e183c08579410061db
Signed-off-by: Richael Zhuang <richael.zhuang@arm.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16065
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>

show more ...


# 4bb902a6 24-Oct-2022 Mike Gerdts <mgerdts@nvidia.com>

bdev: add claim type

In preparation for supporting additional claim types, create a claim
type that represents the current claim type. Everything that sticks to
the public APIs should continue to w

bdev: add claim type

In preparation for supporting additional claim types, create a claim
type that represents the current claim type. Everything that sticks to
the public APIs should continue to work as before.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: I0d02e4b3f4bbf4eb5a7391028aa31e999f9da915
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15286
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


# 9fd2f931 24-Oct-2022 Mike Gerdts <mgerdts@nvidia.com>

bdev: claim_module becomes claim.v1.module

In preparation for an updated claims API, refactor
bdev->internal.claim_module into a union that will eventually hold
different information based on the th

bdev: claim_module becomes claim.v1.module

In preparation for an updated claims API, refactor
bdev->internal.claim_module into a union that will eventually hold
different information based on the the type of claim.

Change-Id: I7ade6f03128bdb0f8375a95ae953cb63d6aa686d
Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15285
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot

show more ...


# 8c439a67 15-Dec-2022 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Add function pointers to display and reset module specific I/O statistics

However, when querying or resetting module specific statistics,
the generic bdev layer have to access it.

For this pu

bdev: Add function pointers to display and reset module specific I/O statistics

However, when querying or resetting module specific statistics,
the generic bdev layer have to access it.

For this purpose, add functions pointers.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: Ie86d0a4a406cec7e0f1e9a62de5982cd3d877eae
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14839
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>

show more ...


# 53a9a8c4 15-Dec-2022 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Add counts per I/O error status into I/O statistics

Define struct spdk_bdev_io_error_stat privately in lib/bdev/bdev.c.

Add a pointer to struct spdk_bdev_io_error_stat to struct
spdk_bdev_io_

bdev: Add counts per I/O error status into I/O statistics

Define struct spdk_bdev_io_error_stat privately in lib/bdev/bdev.c.

Add a pointer to struct spdk_bdev_io_error_stat to struct
spdk_bdev_io_stat.

Allocate spdk_bdev_io_error_stat for bdev and RPC, but do not allocate
spdk_bdev_io_error_stat for I/O channel.

Dump the contents of spdk_bdev_io_error_stat only if its total is
non-zero.

As a result of these, only spdk_bdev_get_device_stat() can query
spdk_bdev_io_error_stat for the bdev_get_iostat RPC. This will be
acceptable.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: Idae868afe65347a96529eedc3dcc692101de4a29
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14826
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>

show more ...


# c134d11c 13-Dec-2022 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Rename io_stat helper functions to bdev_ + verb + _io_stat

The following patches will make some of io_stat helper functions
public APIs. Then, for consistency, bdev_ + verb + _io_stat will
be

bdev: Rename io_stat helper functions to bdev_ + verb + _io_stat

The following patches will make some of io_stat helper functions
public APIs. Then, for consistency, bdev_ + verb + _io_stat will
be better naming rules.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: If36d4ed29253e87954c23c270e8414731d083f03
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15896
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot
Reviewed-by: Konrad Sztyber <konrad.sztyber@intel.com>
Reviewed-by: Paul Luse <paul.e.luse@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>

show more ...


# d7ad7bca 07-Dec-2022 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Add mode to bdev_reset_iostat RPC to reset only max/min fields

Both max and min should be reset periodically. We can use the queue
depth sampling poller to reset these but the queue depth samp

bdev: Add mode to bdev_reset_iostat RPC to reset only max/min fields

Both max and min should be reset periodically. We can use the queue
depth sampling poller to reset these but the queue depth sampling poller
is optional. We extend the bdev_reset_iostat RPC to support mode to
reset all or only max/min fields.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I9ce54892f6e808f6a82754b6930092f3a16d51ff
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15444
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Community-CI: Mellanox Build Bot

show more ...


# cf4e8664 07-Dec-2022 Shuhei Matsumoto <smatsumoto@nvidia.com>

bdev: Add bdev_reset_iostat RPC

Add a helper function bdev_reset_device_stat() to reset I/O statistics.
This funciton is used for the bdev_reset_iostat RPC.

We do not have any plan to use bdev_rese

bdev: Add bdev_reset_iostat RPC

Add a helper function bdev_reset_device_stat() to reset I/O statistics.
This funciton is used for the bdev_reset_iostat RPC.

We do not have any plan to use bdev_reset_device_stat() outside
lib/bdev. Hence, we do not add this as a public API.

Then, add a new RPC bdev_reset_iostat to reset I/O statistics of a
single bdev or all bdevs.

Resetting I/O statistics affects all consumers. Add a note to CHANGELOG
and doc/jsonrpc.md.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: I97af09107b5c3ad1f9c19bf3cbf027457c4fbae7
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15350
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>

show more ...


123