[LTP] [PATCH] lib: memutils: don't pollute entire system memory to avoid OoM
Cyril Hrubis
chrubis@suse.cz
Wed Sep 8 15:37:45 CEST 2021
Hi!
I guess that this is another bug that should be fixed before the
release. I still think that the memory pollution is a best effort
operation and that we should be more conservative with the reserve. I
would go for a few percents of the free memory just to be extra sure
that we do not cause memory pressure.
If we go for 2% we will add following;
safety = MAX(safety, info.freeram / 50);
Also it looks like info.freeram is the same as MemFree: from
/proc/meminfo, I guess that this is not wrong, since memory that have
been used in buffers is dirty enough for our case.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list