[LTP] [PATCH] tst_pollute_memory(): Set minimal safety margin to 64MB

Cyril Hrubis chrubis@suse.cz
Tue Jan 19 13:43:23 CET 2021


Hi!
>  	SAFE_SYSINFO(&info);
> -	safety = 4096 * SAFE_SYSCONF(_SC_PAGESIZE) / info.mem_unit;
> +	safety = MAX(4096 * SAFE_SYSCONF(_SC_PAGESIZE), 64 * 1024 * 1024);
> +	safety /= info.mem_unit;

I guess that this is safe enough for the release, since it will only
increase the safety margin.

Naresh can you please test this patch ASAP?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list