The stress-ng numa stress fails because of a miscalculation of the maximum number of NUMA nodes.
Previously we were getting an upper bound to the number of max nodes instead of the actual number.
That made migrate_pages() fail in some devices due to having bits in the masks set beyond the maximum node identifier. We use now the count of bits in "Mems_allowed" to calculate the maximum number of NUMA nodes.
The stress-ng numa stress fails because of a miscalculation of the maximum number of NUMA nodes.
Previously we were getting an upper bound to the number of max nodes instead of the actual number.
That made migrate_pages() fail in some devices due to having bits in the masks set beyond the maximum node identifier. We use now the count of bits in "Mems_allowed" to calculate the maximum number of NUMA nodes.
Fix is https:/ /kernel. ubuntu. com/git/ cking/stress- ng.git/ commit/ ?id=2d4859745fd 35f82081ddf8087 350f85f2964971