From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Hrubis Date: Wed, 20 Jan 2021 11:26:10 +0100 Subject: [LTP] Holidays and LTP release In-Reply-To: References: <20210113095724.214c904a@kmaincent-XPS-13-7390> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi! > do you mean something like this ? > But this change did not solve the problem (ioctl_sg01) i have reported. > > diff --git a/lib/tst_memutils.c b/lib/tst_memutils.c > index f134d90c9..00bf45e9c 100644 > --- a/lib/tst_memutils.c > +++ b/lib/tst_memutils.c > @@ -20,7 +20,7 @@ void tst_pollute_memory(size_t maxsize, int fillchar) > struct sysinfo info; > > SAFE_SYSINFO(&info); > - safety = 4096 * SAFE_SYSCONF(_SC_PAGESIZE) / info.mem_unit; > + safety = 8192 * SAFE_SYSCONF(_SC_PAGESIZE) / info.mem_unit; Actually Martin sugessted a different patch that chooses the margin to be the greater of 4096 pages or 64MB, which would effectivelly set the safety to "16384 * SAFE_SYSCONF(_SC_PAGESIZE) / info.mem_unit" on most systems. Also I've been playing with a VM and I've been able to reproduce occasional failures with swap turned off and memory_overcommit set to 1 that Martin's patch fixed for me. -- Cyril Hrubis chrubis@suse.cz