Skip to content

Conversation

@wjablon1
Copy link
Collaborator

@wjablon1 wjablon1 commented Oct 28, 2025

Option that allows collecting statistics on individual regions of a virtual
memory heap. By defaults the following states are output per region:

  1. Maximal number of blocks allocated at any given moment during the heap
    lifespan
  2. How many times the region was full, and an allocation had to be redirected
    to another region (with greater/less optimal block size)
    By default, stats are outputted only on allocation error

This feature depends on SYS_MEM_BLOCKS_RUNTIME_STATS Zephyr option and
hence is controlled by the same config option

@sofci
Copy link
Collaborator

sofci commented Oct 28, 2025

Can one of the admins verify this patch?

reply test this please to run this test once

Copy link
Member

@lgirdwood lgirdwood left a comment

Choose a reason for hiding this comment

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

@wjablon1 can you add add more context and sign off the commit message. Thanks !

@wjablon1 wjablon1 force-pushed the add_vmh_stats branch 6 times, most recently from 37a3940 to a8c18b0 Compare October 29, 2025 12:16
@lgirdwood
Copy link
Member

test this please

Copy link
Contributor

@tmleman tmleman left a comment

Choose a reason for hiding this comment

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

Looks good, just please resolve the issue reported by checkpatch.

Copy link
Collaborator

@softwarecki softwarecki left a comment

Choose a reason for hiding this comment

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

It will be ready to merge after fixing a checkpatch error.

@kv2019i
Copy link
Collaborator

kv2019i commented Nov 6, 2025

@wjablon1 Please check testbench and cmocka failures.

@lgirdwood
Copy link
Member

rerun CI, it was stuck.

@lgirdwood
Copy link
Member

SOFCI TEST

@lgirdwood
Copy link
Member

SOFCI TEST

Option that allows collecting statistics on individual allocator of
a virtual memory heap. By defaults the following stats are output
per allocator:
1. Maximal number of blocks allocated at any given moment during the heap
   lifespan
2. How many times the allocator was full, and an allocation had to be
   redirected to another allocator (with greater/less optimal block size)
By default, stats are outputted only on allocation error

This feature depends on SYS_MEM_BLOCKS_RUNTIME_STATS Zephyr option and
hence is controlled by the same config option

Signed-off-by: Wojciech Jablonski <[email protected]>
@kv2019i
Copy link
Collaborator

kv2019i commented Dec 1, 2025

SOFCI TEST

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.

6 participants