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
hwloc: Add weighted interleave support #662
base: master
Are you sure you want to change the base?
Conversation
Since a new memory policy MPOL_WEIGHTED_INTERLEAVE is added at [1], hwloc needs to support this flag. This new flag is expected to be released from linux-v6.9. [1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fa3bea4e1f8202d787709b7e3654eb0a99aed758 Signed-off-by: Honggyu Kim <honggyu.kim@sk.com>
Hi, this is my first time contribution to this project so please let me know if there is anything to fix. Thanks. |
Hello. Thanks for the reminder. I followed early versions of these patches but forgot about it when it became close to ready for inclusion. Given that this interface is supposed to interleave in a more clever way, should we use it by default for hwloc's interleave policy when supported? As long as the kernel doesn't set buggy weights on nodes, it should work fine, right? |
Hi @bgoglin, thanks for the quick response.
IMHO,
The weight values are set to 1 for all the nodes by default unless a system admin changes the values at And yeah, it would work fine when weights have sane values. |
When MPOL_PREFERRED_MANY was added, hwloc just used it instead of MPOL_PREFERRED because it was supposedly better in all cases. The situation isn't exactly the same here, but we could still envision using WEIGHTED by default in hwloc since it doesn't break the current specification of hwloc's INTERLEAVE flag (we could also switch back to the old MPOL_INTERLEAVE when the HWLOC_MEMBIND_STRICT flag is given). I need to think more about it. |
Hi @bgoglin,
Do you mean by 6abf03d?
It looks like you mean vma range weighted interleaving. It was previously suggested at https://lore.kernel.org/linux-mm/20240103224209.2541-1-gregory.price@memverge.com with a |
Since a new memory policy MPOL_WEIGHTED_INTERLEAVE is added at [1], hwloc needs to support this flag.
This new flag is expected to be released from linux-v6.9.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fa3bea4e1f8202d787709b7e3654eb0a99aed758
Signed-off-by: Honggyu Kim honggyu.kim@sk.com