From: chrubis@suse.cz
To: Levi Wang <wangli5665@gmail.com>
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] LTP mm test fails, may be test case have some unclear problem
Date: Tue, 25 Mar 2014 13:26:44 +0100 [thread overview]
Message-ID: <20140325122644.GA1806@rei> (raw)
In-Reply-To: <CAE1O6mijvWG84ntBC3eep6gStru_WXC_wMayOO0UcsNvsE4v8w@mail.gmail.com>
Hi!
> LTP testing on RHEL-7.0 hit this issue. it's re-emerge not often.
>
> Does anyone know this?
>
> -----[cut here ]----
>
> <<<test_start>>>
> tag=oom01 stime=1392954542
> cmdline="oom01"
> contacts=""
> analysis=exit
> <<<test_output>>>
> oom01 0 TINFO : set overcommit_memory to 2
> oom01 0 TINFO : allocating 3221225472 bytes.
> oom01 0 TINFO : allocating 3221225472 bytes.
> oom01 0 TINFO : allocating 3221225472 bytes.
> oom01 0 TINFO : allocating 3221225472 bytes.
> oom01 0 TINFO : set overcommit_memory to 2
> oom01 0 TINFO : expected victim is 31115.
> oom01 0 TINFO : set overcommit_memory to 0
> oom01 0 TINFO : expected victim is 31135.
> oom01 1 TFAIL : the victim unexpectedly failed: 9
> oom01 0 TINFO : set overcommit_memory to 1
> oom01 0 TINFO : start normal OOM testing.
> oom01 0 TINFO : expected victim is 31496.
> oom01 0 TINFO : start OOM testing for mlocked pages.
> oom01 0 TINFO : expected victim is 31514.
> oom01 0 TINFO : start OOM testing for KSM pages.
> oom01 0 TINFO : expected victim is 31525.
> oom01 0 TINFO : set overcommit_memory to 0
> <<<execution_status>>>
Hmm, the test does not expect to have it's children killed while the
child mmaps and dirties more and more memory. So it seems to be test
that asserts that mmap() returns failure before the test is killed with
oom although the documentation in the test source code says that the
test increases memory consumption untill OOM is triggered.
Anyway there seems to be something wrong with the test. I would say that
there is no guarantee that mmap() will fail before OOM tries to kill the
process if overcommit is set to 0 or 1.
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2014-03-25 12:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-04 3:15 [LTP] LTP mm test fails, may be test case have some unclear problem Levi Wang
2014-03-25 12:26 ` chrubis [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=20140325122644.GA1806@rei \
--to=chrubis@suse.cz \
--cc=ltp-list@lists.sourceforge.net \
--cc=wangli5665@gmail.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