From: Poornima Nayak <mpnayak@linux.vnet.ibm.com>
To: ltp-list@lists.sourceforge.net, svaidy@linux.vnet.ibm.com,
ego@in.ibm.com, arun@linux.vnet.ibm.com
Subject: [LTP] [Patch 5/6] Modified master script to pass appropriate arguments
Date: Tue, 13 Oct 2009 13:14:14 +0530 [thread overview]
Message-ID: <20091013074414.22414.46233.sendpatchset@localhost.localdomain> (raw)
In-Reply-To: <20091013074337.22414.20968.sendpatchset@localhost.localdomain>
Modified master script to pass appropriate arguments for cpu consolidation
test cases.
Signed-off-by: poornima nayak <mpnayak@linux.vnet.ibm.com>
diff -uprN ltp-full-20090930/testcases/kernel/power_management/runpwtests.sh ltp-full-20090930_patched/testcases/kernel/power_management/runpwtests.sh
--- ltp-full-20090930/testcases/kernel/power_management/runpwtests.sh 2009-10-05 02:10:56.000000000 -0400
+++ ltp-full-20090930_patched/testcases/kernel/power_management/runpwtests.sh 2009-10-12 22:43:46.000000000 -0400
@@ -210,7 +210,7 @@ fi
if [ $# -gt 0 -a "$1" = "-exclusive" ]; then
# Test CPU consolidation
if [ $multi_socket -eq $YES -a $multi_core -eq $YES ]; then
- for sched_mc in `seq 0 $max_sched_mc`; do
+ for sched_mc in `seq 0 $max_sched_mc`; do
: $(( TST_COUNT += 1 ))
sched_mc_pass_cnt=0
if [ $sched_mc -eq 2 ]; then
@@ -243,111 +243,108 @@ if [ $# -gt 0 -a "$1" = "-exclusive" ];
done
fi
- if [ $hyper_threaded -eq $YES -a $multi_socket -eq $YES ]; then
- #Testcase to validate consolidation at core level
- work_load="ebizzy"
- sched_smt_pass_cnt=0
- : $(( TST_COUNT += 1 ))
- stress="thread"
- for repeat_test in `seq 1 10`; do
- if cpu_consolidation.py -c $sched_mc -t $sched_smt -w $work_load -s $stress; then
- : $(( sched_smt_pass_cnt += 1 ))
- fi
- done
- analyze_core_consolidation_result $sched_smt $work_load $sched_smt_pass_cnt
- # Vary only sched_smt from 1 to 0 when workload is running and ensure that
- # tasks do not consolidate to single core when sched_smt is set to 0
- : $(( TST_COUNT += 1 ))
- if cpu_consolidation.py -vt; then
- tst_resm TPASS "CPU consolidation test by varying sched_smt"
- else
- tst_resm TFAIL "CPU consolidation test by varying sched_smt"
- fi
+ if [ $hyper_threaded -eq $YES -a $multi_socket -eq $YES -a $multi_core -eq $NO ]; then
+ #Testcase to validate consolidation at core level
+ for sched_smt in `seq 0 $max_sched_smt`; do
+ if [ $sched_smt -eq 2 ]; then
+ work_load="kernbench"
+ else
+ work_load="ebizzy"
+ fi
+ sched_smt_pass_cnt=0
+ : $(( TST_COUNT += 1 ))
+ stress="thread"
+ for repeat_test in `seq 1 10`; do
+ if cpu_consolidation.py -t $sched_smt -w $work_load -s $stress; then
+ : $(( sched_smt_pass_cnt += 1 ))
+ fi
+ done
+ analyze_core_consolidation_result $sched_smt $sched_smt_pass_cnt
+ done
fi
# Verify threads consolidation stops when sched_mc &(/) sched_smt is disabled
if [ $multi_socket -eq $YES -a $multi_core -eq $YES ]; then
- : $(( TST_COUNT += 1 ))
- # Vary sched_mc from 1 to 0 when workload is running and ensure that
- # tasks do not consolidate to single package when sched_mc is set to 0
- if cpu_consolidation.py -v -c 1; then
- tst_resm TPASS "CPU consolidation test by varying sched_mc 1 to 0"
- else
- tst_resm TFAIL "CPU consolidation test by varying sched_mc 1 to 0"
- fi
-
- # Vary sched_mc from 2 to 0 when workload is running and ensure that
- # tasks do not consolidate to single package when sched_mc is set to 0
- : $(( TST_COUNT += 1 ))
- if cpu_consolidation.py -v -c 2; then
- tst_resm TPASS "CPU consolidation test by varying sched_mc 2 to 0"
- else
- tst_resm TFAIL "CPU consolidation test by varying sched_mc 2 to 0"
- fi
-
- if [ $hyper_threaded -eq $YES ]; then
- # Vary sched_mc & sched_smt from 1 to 0 & 2 to 0 when workload is running and ensure that
- # tasks do not consolidate to single package when sched_mc is set to 0
- : $(( TST_COUNT += 1 ))
- if cpu_consolidation.py -v -c 1 -t 1; then
- tst_resm TPASS "CPU consolidation test by varying sched_mc \
-& sched_smt from 1 to 0"
- else
- tst_resm TFAIL "CPU consolidation test by varying sched_mc \
-& sched_smt from 1 to 0"
- fi
-
+ for sched_mc in `seq 1 $max_sched_mc`; do
: $(( TST_COUNT += 1 ))
- if cpu_consolidation.py -v -c 2 -t 2; then
- tst_resm TPASS "CPU consolidation test by varying sched_mc \
- & sched_smt from 2 to 0"
- else
- tst_resm TFAIL "CPU consolidation test by varying sched_mc \
- & sched_smt from 2 to 0"
+
+ # Vary sched_mc from 1/2 to 0 when workload is running and ensure that
+ # tasks do not consolidate to single package when sched_mc is set to 0
+ if cpu_consolidation.py -v -c $sched_mc; then
+ tst_resm TPASS "CPU consolidation test by varying sched_mc $sched_mc to 0"
+ else
+ tst_resm TFAIL "CPU consolidation test by varying sched_mc $sched_mc to 0"
+ fi
+
+ if [ $hyper_threaded -eq $YES ]; then
+ for sched_smt in `seq 1 $max_sched_smt`; do
+ if [ $sched_smt -eq $sched_mc ]; then
+ # Vary sched_mc & sched_smt from 1 to 0 & 2 to 0 when workload is running and ensure that
+ # tasks do not consolidate to single package when sched_mc is set to 0
+ : $(( TST_COUNT += 1 ))
+ if cpu_consolidation.py -v -c $sched_mc -t $sched_smt; then
+ tst_resm TPASS "CPU consolidation test by varying sched_mc \
+& sched_smt from $sched_mc to 0"
+ else
+ tst_resm TFAIL "CPU consolidation test by varying sched_mc \
+& sched_smt from $sched_mc to 0"
+ fi
+ fi
+ done
fi
- fi
+ done
fi
- # Verify threads consolidation stops when is disabled in HT systems
+ # Verify threads consolidation stops when sched_smt is disabled in HT systems
if [ $hyper_threaded -eq $YES -a $multi_socket -eq $YES ]; then
# Vary only sched_smt from 1 to 0 when workload is running and ensure that
# tasks do not consolidate to single core when sched_smt is set to 0
: $(( TST_COUNT += 1 ))
if cpu_consolidation.py -v -t 1; then
- tst_resm TPASS "CPU consolidation test by varying sched_smt 1 to 0"
+ tst_resm TPASS "CPU consolidation test by varying sched_smt from 1 to 0"
else
- tst_resm TFAIL "CPU consolidation test by varying sched_smt 1 to 0"
+ tst_resm TFAIL "CPU consolidation test by varying sched_smt from 1 to 0"
fi
+
+ # Vary only sched_smt from 2 to 0 when workload is running and ensure that
+ # tasks do not consolidate to single core when sched_smt is set to 0
+ : $(( TST_COUNT += 1 ))
+ if cpu_consolidation.py -v -t 2; then
+ tst_resm TPASS "CPU consolidation test by varying sched_smt 2 to 0"
+ else
+ tst_resm TFAIL "CPU consolidation test by varying sched_smt 2 to 0"
+ fi
+
fi
# Verify ILB runs in same package as workload
if [ $multi_socket -eq $YES -a $multi_core -eq $YES ]; then
- for sched_mc in `seq 0 $max_sched_mc`; do
+ for sched_mc in `seq 1 $max_sched_mc`; do
: $(( TST_COUNT += 1 ))
- ilb_test.py -c $sched_mc; RC=$?
+ if [ $sched_mc -eq 2 ]; then
+ work_load="kernbench"
+ else
+ work_load="ebizzy"
+ fi
+
+ ilb_test.py -c $sched_mc -w $work_load; RC=$?
if [ $RC -eq 0 ]; then
tst_resm TPASS "ILB & workload in same package for sched_mc=$sched_mc"
else
- if [ $sched_mc -eq 0 ]; then
- tst_resm TPASS "ILB & workload is not in same package when sched_mc=0"
- else
- tst_resm TFAIL "ILB did not run in same package"
- fi
+ tst_resm TFAIL "ILB & workload did not run in same package for sched_mc=$sched_mc\
+. Ensure CONFIG_NO_HZ is set"
fi
if [ $hyper_threaded -eq $YES ]; then
- for sched_smt in `seq 0 $max_sched_smt`; do
+ for sched_smt in `seq 1 $max_sched_smt`; do
: $(( TST_COUNT += 1 ))
- ilb_test.py -c $sched_mc -t sched_smt; RC=$?
+ ilb_test.py -c $sched_mc -t sched_smt -w $work_load; RC=$?
if [ $RC -eq 0 ]; then
- tst_resm TPASS "ILB & workload in same package for sched_mc=$sched_mc"
+ tst_resm TPASS "ILB & workload in same package for sched_mc=$sched_mc \
+& sched_smt=$sched_smt"
else
- if [ $sched_mc -eq 0 -a $sched_smt -eq 0 ]; then
- tst_resm TPASS "ILB & workload is not in same package when\
-sched_mc & sched_smt is 0"
- else
- tst_resm TFAIL "ILB did not run in same package"
- fi
+ tst_resm TFAIL "ILB & workload did not execute in same package for \
+sched_mc=$sched_mc & sched_smt=$sched_smt. Ensure CONFIG_NO_HZ is set"
fi
done
fi
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2009-10-13 7:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-13 7:43 [LTP] [Patch 1/6] Fix issues in cpu consolidation verification functions Poornima Nayak
2009-10-13 7:43 ` [LTP] [Patch 2/6] Developed new functions and fixed issues causing ilb test failure Poornima Nayak
2009-10-13 10:12 ` Subrata Modak
2009-10-14 2:17 ` Garrett Cooper
2009-10-14 9:25 ` Gautham R Shenoy
2009-11-27 10:09 ` poornima nayak
2009-10-13 7:43 ` [LTP] [Patch 3/6] Modified ilb test to run with ebizzy as default workload Poornima Nayak
2009-10-13 10:12 ` Subrata Modak
2009-10-13 7:44 ` [LTP] [Patch 4/6] Enhanced & Modified cpu_consolidation testcase Poornima Nayak
2009-10-13 10:12 ` Subrata Modak
2009-10-13 7:44 ` Poornima Nayak [this message]
2009-10-13 10:12 ` [LTP] [Patch 5/6] Modified master script to pass appropriate arguments Subrata Modak
2009-10-14 1:38 ` Garrett Cooper
2009-10-13 7:44 ` [LTP] [Patch 6/6] Patch to fix workload installation issue Poornima Nayak
2009-10-13 10:12 ` Subrata Modak
2009-10-14 1:39 ` Garrett Cooper
2009-10-13 10:12 ` [LTP] [Patch 1/6] Fix issues in cpu consolidation verification functions Subrata Modak
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=20091013074414.22414.46233.sendpatchset@localhost.localdomain \
--to=mpnayak@linux.vnet.ibm.com \
--cc=arun@linux.vnet.ibm.com \
--cc=ego@in.ibm.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=svaidy@linux.vnet.ibm.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