[LTP] Holidays and LTP release

Naresh Kamboju naresh.kamboju@linaro.org
Wed Jan 20 10:31:30 CET 2021


On Thu, 14 Jan 2021 at 19:44, Martin Doucha <mdoucha@suse.cz> wrote:
>
> On 14. 01. 21 12:12, Naresh Kamboju wrote:
> > on x86_64:
> > The ioctl_sg01 test killed and reported failed.
> >
> > tst_test.c:1263: TINFO: Timeout per run is 0h 15m 00s
> > ioctl_sg01.c:81: TINFO: Found SCSI device /dev/sg1
> > [  332.383394] ioctl_sg01 invoked oom-killer:
>
> Looks like the safety margin in tst_pollute_memory() is too small. Edit
> lib/tst_memutils.c and try setting the "safety" variable on line 23 to a
> higher value. I'd recommend something like MAX(4096 pages, 64MB).

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;

        if (info.freeswap > safety)
                safety = 0;


After the above change the test case ioctl_sg01 fails intermittently
when running
multiple times.
https://lkft.validation.linaro.org/scheduler/job/2170593#L1357


- Naresh


More information about the ltp mailing list