[LTP] [PATCH] madvise06: make bug detection more reliable

Jan Stancek jstancek@redhat.com
Mon Aug 1 12:12:33 CEST 2016





----- Original Message -----
> From: "Jan Stancek" <jstancek@redhat.com>
> To: ltp@lists.linux.it
> Cc: liwan@redhat.com
> Sent: Friday, 22 July, 2016 12:56:41 PM
> Subject: [LTP] [PATCH] madvise06: make bug detection more reliable
> 
> 1. set up memory cgroup
> This allows us to get swapped memory faster, and also
> eliminates problems with running testcase on big systems.
> 
> 2. check for expected effects in a loop
> madvise_willneed() reads memory asynchronously, so we check
> multiple times with delay in-between. Because we can't
> distinguish between bad kernel and slow I/O, bad kernel
> will make test check for 5 seconds before giving up.
> As last resort we check presence of first page.
> 
> Signed-off-by: Jan Stancek <jstancek@redhat.com>
> ---
>  testcases/kernel/syscalls/madvise/madvise06.c | 142
>  ++++++++++++++++++--------
>  1 file changed, 101 insertions(+), 41 deletions(-)
> 

I tested this on 4.7-rc7 and pushed.

Regards,
Jan


More information about the ltp mailing list