[LTP] cpuset_memory_spread: count only the test file's page cache

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Sat Sep 5 05:06:47 CEST 2026


Hi Changwei,

On Sat, Sep 5, 2026, Changwei Zou wrote:
> cpuset_memory_spread: count only the test file's page cache

> 	for i in $nodelist
> 	do
> 		# every expected node must hold a share of the cache
> 		if [ $(get_memsinfo_val $i) -eq 0 ]; then
> 			return 1
> 		fi
> 		expected_sum=$((expected_sum + $(get_memsinfo_val $i)))
> 	done

This accepts any nonzero share on each expected node. In a two-node spread
case, one page on one node and the rest on the other still passes, although
the kernel contract requires an even spread; check the balance among expected
nodes against an appropriate tolerance.

Verdict - Needs revision

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list