Skip to content

RFC Convert LTP kernel/mem/testcase to New API

Jan Stancek ltp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 13 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 13 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [LTP] [RFC PATCH 00/13] Convert LTP kernel/mem/testcase to New API

----- Original Message -----

Quoted 7 lines

From: "Cyril Hrubis" <[email protected]>
To: "Li Wang" <[email protected]>
Cc: [email protected]
Sent: Thursday, 30 March, 2017 5:43:58 PM
Subject: Re: [LTP] [RFC PATCH 00/13] Convert LTP kernel/mem/testcase to New API

Hi!

Quoted 8 lines
Quoted 3 lines

Seems the failed reason in oom02/5 is not testcase issue, it just because New API sets
test time in 5mins.

The test_test structure has .timeout variable that, if set, overrides the default timeout. All you need to do is to to measure how long the test takes, then multiply it by something as 2 to be on a safe side and set the .timeout correspondingly.

OOM tests depend on amount of RAM+swap, so it's going to vary a lot. I'd say safe side is in order of hours.

Other options that come to mind:
- formula based on amount of RAM and swap
- we measure how long it takes to fill 1GB of RAM/swap, and scale that up
- we run all OOM tests in mem cgroup with fixed mem/swap limit, and set timeout according to worse case / slowest system

Quoted 8 lines

--
Cyril Hrubis
[email protected]

--
Mailing list info: https://lists.linux.it/listinfo/ltp