Skip to content

Conversation

sanilkumar0
Copy link
Contributor

@sanilkumar0 sanilkumar0 commented Jan 4, 2024

Resolves: #248

@sanilkumar0 sanilkumar0 marked this pull request as draft January 4, 2024 21:59
@sanilkumar0 sanilkumar0 marked this pull request as ready for review January 4, 2024 21:59
@aravindksg
Copy link
Contributor

- if count is zero, the driver shall update the value with the total number of memory stats available.
- if count is greater than the total number of memory stats available, the driver shall update the value with the correct number of memory stats available.
- The count returned is the sum of number of VF instances currently available and the PF instance.
- type: $s_vf_util_mem_exp_t*
Copy link
Contributor

Choose a reason for hiding this comment

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

Mem type can be MEM_TYPE_SYSTEM and DEVICE right ?
So each VF can have MEM_TYPE_SYSTEM and DEVICE utilizations seperately ?
Please share whether we would be able to retrieve both information for each VF and the PF using this API.

Copy link
Contributor

Choose a reason for hiding this comment

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

@aravindksg @sanilkumar0 this clarification still seems valid.
Could you see if there is a misunderstanding.
Thanks

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, it is intended that from API PoV we have capability to expose system and device mem utilizations for each VF from the PF.

Copy link
Contributor

Choose a reason for hiding this comment

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

Since the count is"count returned is the sum of number of VF instances currently available and the PF instance", please share how this API would return both in a single call ?

Copy link
Contributor

Choose a reason for hiding this comment

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

@sanilkumar0 I think Santosh's point is valid, in these APIs, the input is a VF handle so we return the utilization stats wrt that VF. So for PF the expectation might be use existing zesMemoryGetState call for gathering utilization info. @sanilkumar0 could you please verify that.

We might need to clarify the description around these APIs if that's the case.

name: "flag"
desc: "[in] Use bitf field of utilization flags to set sampling interval."
- type: uint64_t
name: "samplingInterval"
Copy link
Contributor

Choose a reason for hiding this comment

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

We could mention units as well

name: "activeCounterValue"
desc: "[out] Represents active counter."
- type: uint64_t
name: "samplingCounterValue"
Copy link
Contributor

Choose a reason for hiding this comment

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

since "timestamp" already has the wall clock time, please share if we need the "samplingCounterValue" ?

@wdamon-intel wdamon-intel force-pushed the VirtualFunctionManagement branch from bc137e1 to 8430c9c Compare February 1, 2024 17:12
@wdamon-intel
Copy link
Contributor

Moving forward with merge. As this is an experimental extension, any necessary adjustments may be done in 1.9.x.

@wdamon-intel wdamon-intel merged commit 05880d1 into oneapi-src:master Feb 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Define new set of Sysman interfaces for operations on virtual function telemetry
4 participants