public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Wanlong Gao <gaowanlong@cn.fujitsu.com>
To: Zhouping Liu <zliu@redhat.com>
Cc: LTP List <ltp-list@lists.sourceforge.net>
Subject: Re: [LTP] [PATCH v2] mm/tunable: add a new testcase min_free_kbytes
Date: Mon, 26 Mar 2012 13:31:17 +0800	[thread overview]
Message-ID: <4F6FFF25.3020707@cn.fujitsu.com> (raw)
In-Reply-To: <5d69c51b5c6d10f19b2b49332418ae6771e34a3f.1332511710.git.zliu@redhat.com>

On 03/23/2012 10:12 PM, Zhouping Liu wrote:

> 
> The tune is used to control free memory, and system always
> reserve > min_free_kbytes memory at least.
> 
> Since the tune is not too large or too little, which will
> lead to the system hang, so I choose two cases, and test them
> on all overcommit_memory policy (0, 1, 2), at the same time,
> compare the current free memory with the tunable value
> repeatedly.
> 
> a) default min_free_kbytes with all overcommit memory policy
> b) half of mem_free with all overcommit memory policy


pushed, thanks Liu, if has problems, please feel free to send
further fixing patches.

Regards,
Wanlong Gao

> 
> Signed-off-by: Zhouping Liu <zliu@redhat.com>
> ---
>  runtest/mm                                     |    2 +
>  testcases/kernel/mem/tunable/min_free_kbytes.c |  237 ++++++++++++++++++++++++
>  2 files changed, 239 insertions(+), 0 deletions(-)
>  create mode 100644 testcases/kernel/mem/tunable/min_free_kbytes.c
> 
> thanks caspar's suggestions, I updated the patch.
> v1 -> v2:
>    1) using sig_handler to control the check_monitor thread,
>    2) moved tst_* funcs in child,
>    3) catch the return value in eatup_mem().



------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      reply	other threads:[~2012-03-26  5:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-23 14:12 [LTP] [PATCH v2] mm/tunable: add a new testcase min_free_kbytes Zhouping Liu
2012-03-26  5:31 ` Wanlong Gao [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=4F6FFF25.3020707@cn.fujitsu.com \
    --to=gaowanlong@cn.fujitsu.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=zliu@redhat.com \
    /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