On Thu, Mar 13, 2025 at 03:33:37PM +0900, Rakie Kim wrote:
I'm fairly certain this logic is wrong. If I add two memory blocks and
then remove one, would this logic not remove the sysfs entries despite
there being a block remaining?
Regarding the assumption about node configuration:
Are you assuming that a node has two memory blocks and that
MEM_OFFLINE is triggered when one of them is offlined? If so, then
you are correct that this logic would need modification.
I performed a simple test by offlining a single memory block:
# echo 0 > /sys/devices/system/node/node2/memory100/online
In this case, MEM_OFFLINE was not triggered. However, I need to
conduct further analysis to confirm this behavior under different
conditions. I will review this in more detail and share my
findings, including the test methodology and results.
+David - might have a quick answer to this. I would have expected a
single memory block going offline to cause a notification.