[Devel] [PATCH hci-8.1 2/2] selftests/ve: check memory.numa_migrate keeps the folio order

Konstantin Khorenko khorenko at virtuozzo.com
Wed Oct 28 17:12:23 MSK 2026


On 10/28/26 14:09, Vasileios Almpanis wrote:
...

>> +	/* From here on a failure means eviction would crash the kernel. */
>> +	self->leave_mounted = 1;
>> +	snprintf(list, sizeof(list), "%d,%d", self->node_from, self->node_to);
>> +	ASSERT_EQ(write_file_at(self->cg_fd, "cpuset.mems", list), 0);
>> +	ASSERT_EQ(write_u64_at(self->cg_fd, "memory.numa_migrate",
>> +			       self->node_to), 0);
>> +
>> +	ASSERT_EQ(file_bytes_on_node(self->cg_fd, self->node_to,
>> +				     &on_to_after), 0);
>> +	TH_LOG("file bytes on node %d: %llu -> %llu", self->node_to,
>> +	       on_to_before, on_to_after);
> 
> Non blocker: in hosts with many CPUs we could read unflushed stats.
> Maybe do the memcmp loop first and retry numa_stat read for a few
> seconds.

Yeah, will try to handle this in v2.



More information about the Devel mailing list