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

Memory hotplug: how about respect auto_online_blocks value #336

Open
robert-hoo opened this issue May 1, 2021 · 0 comments
Open

Memory hotplug: how about respect auto_online_blocks value #336

robert-hoo opened this issue May 1, 2021 · 0 comments

Comments

@robert-hoo
Copy link

How about respect "auto_online_blocks"?
Unconditionally online newly-plugged memory blocks may confuse user.


@@ -9,6 +9,7 @@ ACTION!="add", GOTO="memory_hotplug_end"
PROGRAM="/bin/uname -p", RESULT=="s390*", GOTO="memory_hotplug_end"
PROGRAM="/bin/uname -p", RESULT=="ppc64*", GOTO="memory_hotplug_end"

+ATTRS{auto_online_blocks}=="offline", GOTO="memory_hotplug_end"
ENV{.state}="online"
PROGRAM="/bin/systemd-detect-virt", RESULT=="none", ENV{.state}="online_movable"
ATTR{state}=="offline", ATTR{state}="$env{.state}"

@robert-hoo robert-hoo changed the title Respect auto_online_blocks value Memory hotplug: how about respect auto_online_blocks value May 1, 2021
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

No branches or pull requests

1 participant