public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Jan Stancek <jstancek@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] madvise06: make bug detection more reliable
Date: Mon, 1 Aug 2016 06:12:33 -0400 (EDT)	[thread overview]
Message-ID: <1077319971.10228993.1470046353126.JavaMail.zimbra@redhat.com> (raw)
In-Reply-To: <3b5c21485cf55776374b37327f39f5daa29f94da.1469184742.git.jstancek@redhat.com>





----- 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

      reply	other threads:[~2016-08-01 10:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22 10:56 [LTP] [PATCH] madvise06: make bug detection more reliable Jan Stancek
2016-08-01 10:12 ` Jan Stancek [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1077319971.10228993.1470046353126.JavaMail.zimbra@redhat.com \
    --to=jstancek@redhat.com \
    --cc=ltp@lists.linux.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox