From: Cyril Hrubis <chrubis@suse.cz>
To: ltp@lists.linux.it
Subject: [LTP] LTP msgstress03, msgstress04 failure on linux 5.10.19 and 5.10.22
Date: Thu, 8 Apr 2021 12:28:02 +0200 [thread overview]
Message-ID: <YG7asu6B4EEa1HUD@yuki> (raw)
In-Reply-To: <BM1PR01MB28686329F64867227F9F9279EE749@BM1PR01MB2868.INDPRD01.PROD.OUTLOOK.COM>
Hi!
> sorry, i forgot to attach log file.The LTP version i am using is LTP Version: 20200515 and even i have tried with latest master sources as well
Using anything older than the latest stable release is strongly discouraged.
<<<test_start>>>
tag=msgstress03 stime=1617104557
cmdline="msgstress03"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
Fork failed (may be OK if under stress)
Fork failed (may be OK if under stress)
Fork failed (may be OK if under stress)
Fork failed (may be OK if under stress)
Fork failed (may be OK if under stress)
Fork failed (may be OK if under stress)
msgstress03 1 TFAIL : msgstress03.c:155: Fork failed (may be OK if under stress)
<<<execution_status>>>
Here is the real reason for the failures, the test fails to fork() a few times,
that is since the machine seems to have 8GB RAM and for the default maximal
number of message queues 32000 (as set in /proc/sys/kernel/msgmni) is too high.
In other words we do have 8GB RAM and try to fork 64000 (two processes per
message queue) that leaves us about 125kB per process (aprox: 8 * 1024 * 1024 /
64000) which is likely too low. You can try to set the /proc/sys/kernel/msgmni
to half of it's default i.e. 16000 and re-run the test.
The test should be cleaned up changed to scale better with available memory
however estimating how much memory will the test process need is not an easy
task.
The rest of the messages you see are as I've said fallout from the test doing
unclean exit, i.e. the main process exits without waiting for it's children.
Which should be fixed as well, when the test is being rewritten.
--
Cyril Hrubis
chrubis@suse.cz
next prev parent reply other threads:[~2021-04-08 10:28 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-29 9:07 [LTP] msgstress03, msgstress04 failure on linux 5.10.19 and 5.10.22 Pankaj Vinodrao Joshi
2021-03-29 9:26 ` xuyang2018.jy
2021-03-29 12:40 ` Pankaj Vinodrao Joshi
2021-04-08 9:02 ` [LTP] LTP " Pankaj Vinodrao Joshi
2021-04-08 9:27 ` Cyril Hrubis
2021-04-08 9:38 ` Pankaj Vinodrao Joshi
2021-04-08 10:28 ` Cyril Hrubis [this message]
2021-04-12 5:18 ` Pankaj Vinodrao Joshi
2021-04-12 11:28 ` Cyril Hrubis
2021-05-17 7:41 ` Pankaj Vinodrao Joshi
2021-05-18 7:23 ` Pankaj Vinodrao Joshi
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=YG7asu6B4EEa1HUD@yuki \
--to=chrubis@suse.cz \
--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