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

configs: Enable TRANSPARENT_HUGEPAGE_MADVISE #6390

Draft
wants to merge 1 commit into
base: rpi-6.12.y
Choose a base branch
from

Conversation

popcornmix
Copy link
Collaborator

Upstream v3d patches are adding support for big (64K) and super (1MB) pages, which require these options.

See:
https://lore.kernel.org/dri-devel/[email protected]/

There are also some potential performance benefits linked from:
#6297

@popcornmix
Copy link
Collaborator Author

Putting this up as a draft PR, so it's not forgotten.
We won't get the v3d benefits until we backport them to 6.6, or switch to a newer upstream kernel.

My brief testing suggests TRANSPARENT_HUGEPAGE_MADVISE doesn't have performance hit on NUMA that TRANSPARENT_HUGEPAGE_ALWAYS did, but perhaps wait until NUMA is more final (and we don't spot any other adverse results) before merging this.

@satmandu
Copy link

satmandu commented Apr 9, 2025

Current testing kernels from the rpi-firmware repo now show this in the dmesg:

[   16.662538] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[   16.678470] v3d fec00000.v3d: [drm] Transparent Hugepage support is recommended for optimal performance on this platform!
[   16.688136] [drm] Initialized v3d 1.0.0 for fec00000.v3d on minor 0

@popcornmix
Copy link
Collaborator Author

Yes. A todo is to profile various use cases, including v3d and check what the benefits are, and if any negatives are observed.

Based on the testing TRANSPARENT_HUGEPAGE_MADVISE may well be enabled in future.

We're happy to heard of any positive (or negative) effects from users.

@popcornmix popcornmix changed the base branch from rpi-6.6.y to rpi-6.12.y April 11, 2025 15:23
Upstream v3d patches are adding support for big (64K) and super (1MB) pages,
which require these options. See:
https://lore.kernel.org/dri-devel/[email protected]/

There are also some potential performance benefits linked from:
raspberrypi#6297

Signed-off-by: Dom Cobley <[email protected]>
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.

2 participants