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

buddyinfo: Add buddyinfo corelens module #41

Merged
merged 1 commit into from
Dec 4, 2023

Conversation

jianfenw
Copy link
Member

@jianfenw jianfenw commented Dec 4, 2023

This commit implements buddyinfo corelens module that can dump details of each zone's buddy page allocator.
The output is similar to 'cat /proc/buddyinfo', which lists the number of free memory blocks at each order.
This module supports UEK 4, 5, 6, 7 for both x86 and aarch64. It is tested for these settings without crash.

This commit implements buddyinfo corelens module that can dump details
of each zone's buddy page allocator. The output is similar to 'cat
/proc/buddyinfo', which lists the number of free memory blocks at each
order.

This module supports UEK 4, 5, 6, 7 for both x86 and aarch64. It is
tested for these settings without crash.

Signed-off-by: Jianfeng Wang <[email protected]>
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Dec 4, 2023
Copy link
Member

@brenns10 brenns10 left a comment

Choose a reason for hiding this comment

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

This looks good! I noticed the vmcore test failed on Gitlab. But I have a sneaking suspicion it's because there are some failures on main right now (fixed in my branch #40). I'm verifying that your tests pass if I rebase your branch on mine. If so, I'll merge it.

@jianfenw
Copy link
Member Author

jianfenw commented Dec 4, 2023

For future reference, here is an example output of this module on a UEK-7 vmcore with two NUMA nodes.

====== MODULE buddyinfo ======
Per-zone buddy allocator's information:
Node ID  Zone     Order 0        1        2        3        4        5        6        7        8        9       10  
Node 0   DMA            0        0        0        0        0        0        0        0        1        1        2  
Node 0   DMA32          6        5        7        4        6        6        6        4        8        5      275  
Node 0   Normal     15009     3297     1623      524     1914     1305      518      264      102       83    95121  
Node 0   Movable        0        0        0        0        0        0        0        0        0        0        0  
Node 0   Device         0        0        0        0        0        0        0        0        0        0        0  
Node 1   DMA            0        0        0        0        0        0        0        0        0        0        0  
Node 1   DMA32          0        0        0        0        0        0        0        0        0        0        0  
Node 1   Normal     22107    11599     3133      759     1017       78       34       19       20       38    95219  
Node 1   Movable        0        0        0        0        0        0        0        0        0        0        0  
Node 1   Device         0        0        0        0        0        0        0        0        0        0        0 

@brenns10 brenns10 merged commit 94cd163 into oracle-samples:main Dec 4, 2023
5 checks passed
@brenns10
Copy link
Member

brenns10 commented Dec 4, 2023

Tests passed with the fixes, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants