public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
* [LTP] LTP mm test fails, may be test case have some unclear problem
@ 2014-03-04  3:15 Levi Wang
  2014-03-25 12:26 ` chrubis
  0 siblings, 1 reply; 2+ messages in thread
From: Levi Wang @ 2014-03-04  3:15 UTC (permalink / raw)
  To: ltp-list


[-- Attachment #1.1: Type: text/plain, Size: 2833 bytes --]

Hi guys,

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


according to the console log, all of the oom01 process was killed, but
process 31115 was missing.

----[cut here ]----

[ 4611.722530] [11114]     0 11114    43018      587      87     5020
           0 beah-rhts-task
[ 4611.724547] [11144]     0 11144    28804        0      14       57
           0 runtest
[ 4611.726410] [11182]     0 11182    28867       95      14       34
           0 rhts-test-runne
[ 4611.728430] [11210]     0 11210    27045        0      12       89
           0 make
[ 4611.730235] [30217]     0 30217     2936        1      10       98
           0 runtest.sh
[ 4611.732183] [ 6237]     0  6237    70947        0      36      145
           0 rsyslogd
[ 4611.734079] [16197]     0 16197    31348        1      17       61
           0 anacron
[ 4611.735968] [  972]     0   972     3001        1      10      173
           0 runltp
[ 4611.737869] [ 1089]     0  1089     1852        4       9       29
           0 ltp-pan
[ 4611.739497] [31114]     0 31114     2152       38      10        1
           0 oom01
[ 4611.740944] [31135]     0 31135  3934312  1872550    7647  2037330
           0 oom01
[ 4611.742386] [31495]     0 31495    26973       19      11        0
           0 sleep
[ 4611.743800] Out of memory: Kill process 31135 (oom01) score 932 or
sacrifice child
[ 4611.745158] Killed process 31135 (oom01) total-vm:15737248kB,
anon-rss:7490200kB, file-rss:0kB
[ 4682.545284] oom01 invoked oom-killer: gfp_mask=0x280da, order=0,
oom_score_adj=0

-- 
Regards,
Levi Wang
Email: wangli5665@gmail.com

[-- Attachment #1.2: Type: text/html, Size: 3158 bytes --]

[-- Attachment #2: Type: text/plain, Size: 451 bytes --]

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works. 
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk

[-- Attachment #3: Type: text/plain, Size: 155 bytes --]

_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LTP] LTP mm test fails, may be test case have some unclear problem
  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
  0 siblings, 0 replies; 2+ messages in thread
From: chrubis @ 2014-03-25 12:26 UTC (permalink / raw)
  To: Levi Wang; +Cc: ltp-list

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-25 12:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox