Skip to content
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

[storage] define statistics object #220

Merged
merged 1 commit into from
Dec 12, 2022
Merged

Conversation

glimchb
Copy link
Member

@glimchb glimchb commented Dec 9, 2022

Signed-off-by: Boris Glimcher Boris.Glimcher@emc.com

@glimchb glimchb requested a review from a team as a code owner December 9, 2022 15:50
@glimchb glimchb added Storage APIs or code related to storage area Merge Candidate in the open merge window, next candidate for merge labels Dec 9, 2022
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@glimchb
Copy link
Member Author

glimchb commented Dec 9, 2022

@ekaley FYI

@glimchb glimchb self-assigned this Dec 9, 2022
int32 write_latency_ticks = 8;
int32 unmap_latency_ticks = 9;
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shoudn't these be 64-bit counters ?

Copy link
Member Author

@glimchb glimchb Dec 12, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess, we can make them 64 bit. opened #221

@llabordehpe
Copy link

Not sure I understand why there are VolumeStats in the NVMe subsystem, controller and namespace objects. Are the stats for the subsystem an aggregate for all volumes/namespaces currently (or ever) attached to that subsystem, versus the namespace stats which are for this volume only ?

@glimchb
Copy link
Member Author

glimchb commented Dec 9, 2022

Not sure I understand why there are VolumeStats in the NVMe subsystem, controller and namespace objects. Are the stats for the subsystem an aggregate for all volumes/namespaces currently (or ever) attached to that subsystem, versus the namespace stats which are for this volume only ?

exactly, aggregate

@llabordehpe you can also refer to Marvell https://github.com/opiproject/opi-marvell-bridge/blob/main/mrvl_nvme_json.rpc_methods.pdf

  • mrvl_nvm_subsys_get_info
  • mrvl_nvm_ctrlr_get_stats
  • mrvl_nvm_ns_get_stats

@jainvipin
Copy link
Contributor

jainvipin commented Dec 9, 2022

I like this approach, where stats are associated clearly with the object itself at a given point in time i.e. it is clear and works for not so heavy stats users. I am commenting vis-a-vis OTEL as the method of exporting/streaming the stats.
To @llabordehpe's point it would good to document the desired behavior on the Volume stats in various objects where the object is embeded.

@glimchb
Copy link
Member Author

glimchb commented Dec 12, 2022

I like this approach, where stats are associated clearly with the object itself at a given point in time i.e. it is clear and works for not so heavy stats users. I am commenting vis-a-vis OTEL as the method of exporting/streaming the stats.

Good topic to discuss, how exactly we want to stream telems from OTEL perspective. I would imagine we should compile DPU SDK with OTEL SDK and stream directly. So what we can do in OPI is to define the OTEL format and telems needed streaming...

To @llabordehpe's point it would good to document the desired behavior on the Volume stats in various objects where the object is embeded.

Agree 100%, documentation is lacking.

@glimchb glimchb merged commit b1b2672 into opiproject:main Dec 12, 2022
@glimchb glimchb deleted the crypto branch December 12, 2022 16:13
@glimchb glimchb linked an issue Dec 12, 2022 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge Candidate in the open merge window, next candidate for merge Storage APIs or code related to storage area
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[storage] fix string stats
5 participants