[LTP] mem/min_free_kbytes: Add grace period for memory reclaim
linuxtestproject.agent@gmail.com
linuxtestproject.agent@gmail.com
Wed May 27 07:31:00 CEST 2026
Hi Wei,
On Wed, May 27 2026, Wei Gao wrote:
> mem/min_free_kbytes: Add grace period for memory reclaim
> +for (i = 1; i < 1024; i *= 2) {
> +usleep(i * 1000);
> +memfree = SAFE_READ_MEMINFO("MemFree:");
> +if (memfree >= tune)
> +break;
> +}
The exponential-backoff polling is the right approach here — async kernel
reclaim is exactly the case Ground Rule 2 calls out for this pattern.
> -sleep(2);
> +usleep(100000);
Reducing the polling interval from 2s to 100ms is fine.
[...]
All good. Approved.
---
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