public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Li Wang <liwang@redhat.com>
To: ltp@lists.linux.it
Subject: [LTP] [PATCH] swapping: replace mem_free by mem_available
Date: Mon, 1 Aug 2016 15:36:31 +0800	[thread overview]
Message-ID: <20160801073631.GB20856@gmail.com> (raw)
In-Reply-To: <1136451928.10175289.1470035714396.JavaMail.zimbra@redhat.com>

On Mon, Aug 01, 2016 at 03:15:14AM -0400, Jan Stancek wrote:
> 
> ----- Original Message -----
> > 
> > How much should the X defined?
> 
> I'd say at least 10 as with original testcase.
> 
> > 
> > >   i++;
> > >   swapped = read_meminfo("SwapFree:");
> > >   sleep(1);
> > >   if (abs(swapped - read_meminfo("SwapFree:")) < 512)
> > 
> > Why set the limitation as 512?  why not 1024 or others?
> 
> I picked that by rule of thumb, the value should be smaller
> than what any system can write to swap within 1s. But if we
> go too low then some noise from background processes could be
> falsely recognized as swap usage.

Ok, thanks for the explanaiton. Patch V2 is coming.

Regards,
Li Wang

  reply	other threads:[~2016-08-01  7:36 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-20  7:48 [LTP] [PATCH] swapping: replace mem_free by mem_available Li Wang
2016-07-20  8:28 ` Li Wang
2016-07-28 11:28 ` Jan Stancek
2016-08-01  6:43   ` Li Wang
2016-08-01  7:15     ` Jan Stancek
2016-08-01  7:36       ` Li Wang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-07-12  5:51 Li Wang
2016-07-12  9:22 ` Li Wang

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=20160801073631.GB20856@gmail.com \
    --to=liwang@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