public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Subrata Modak <subrata@linux.vnet.ibm.com>
To: Poornima Nayak <mpnayak@linux.vnet.ibm.com>
Cc: ltp-list@lists.sourceforge.net, arun@linux.vnet.ibm.com,
	svaidy@linux.vnet.ibm.com, ego@in.ibm.com
Subject: Re: [LTP] [Patch 1/8] New testcase to validate Ideal Load Balancer	Functionality
Date: Sun, 30 Aug 2009 23:06:29 +0530	[thread overview]
Message-ID: <1251653791.12120.19.camel@subratamodak.linux.ibm.com> (raw)
In-Reply-To: <20090828101440.12177.32012.sendpatchset@localhost.localdomain>

On Fri, 2009-08-28 at 15:44 +0530, Poornima Nayak wrote: 
> New testcase to validate Ideal Load Balancer Functionality.
> By default sets sched_mc_power_savings & sched_smt_power savings to the value
> passed as argument and then triggers kernbench by pinning it to the CPUn
> 
> Signed-off-by: poornima nayak <mpnayak@linux.vnet.ibm.com>

Done. Thanks.

Regards--
Subrata

> 
> diff -uprN ltp_orig/testcases/kernel/power_management/ilb_test.py ltp/testcases/kernel/power_management/ilb_test.py
> --- ltp_orig/testcases/kernel/power_management/ilb_test.py	1970-01-01 05:30:00.000000000 +0530
> +++ ltp/testcases/kernel/power_management/ilb_test.py	2009-08-28 12:13:27.000000000 +0530
> @@ -0,0 +1,57 @@
> +#!/usr/bin/python
> +''' This Python script interprets interrupt values.
> +    Validates Ideal load balancer runs in same package where workload is running
> +'''
> +
> +import os
> +import sys
> +LIB_DIR = "%s/testcases/kernel/power_management/lib" % os.environ['LTPROOT']
> +sys.path.append(LIB_DIR)
> +from optparse import OptionParser
> +from sched_mc import *
> +
> +__author__ = "Poornima Nayak <mpnayak@linux.vnet.ibm.com>"
> +
> +class Usage(Exception):
> +    def __init__(self, msg):
> +        self.msg = msg
> +
> +def main(argv=None):
> +    if argv is None:
> +        argv = sys.argv
> +
> +    usage = "-w"
> +    parser = OptionParser(usage)
> +    parser.add_option("-c", "--mc_level", dest="mc_level",
> +        default=0, help="Sched mc power saving value 0/1/2")
> +    parser.add_option("-t", "--smt_level", dest="smt_level",
> +        default=0, help="Sched smt power saving value 0/1/2")
> +    parser.add_option("-w", "--workload", dest="work_ld",
> +        default="kernbench", help="Workload can be ebizzy/kernbench")
> +    (options, args) = parser.parse_args()
> +
> +    try:
> +        count_num_cpu()
> +        count_num_sockets()
> +        if is_multi_socket():
> +            set_sched_mc_power(options.mc_level)
> +        if is_hyper_threaded():
> +            set_sched_smt_power(options.smt_level)
> +        map_cpuid_pkgid()
> +        print "INFO: Created table mapping cpu to package"
> +        background="no"
> +        duration=60
> +        pinned="yes"
> +        trigger_workld(options.work_ld, "single_job", duration, background, pinned)
> +        generate_loc_intr_report()
> +        status = validate_ilb(options.mc_level, options.smt_level)
> +        reset_schedmc()
> +        if is_hyper_threaded():
> +            reset_schedsmt()
> +        return(status)        
> +    except Exception, details:
> +        print "INFO: Idle Load Balancer test failed", details
> +        return(1)
> +
> +if __name__ == "__main__":
> +    sys.exit(main())
> 
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
> trial. Simplify your report design, integration and deployment - and focus on 
> what you do best, core application coding. Discover what's new with 
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Ltp-list mailing list
> Ltp-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ltp-list


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

      parent reply	other threads:[~2009-08-30 17:36 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-28 10:14 [LTP] [Patch 1/8] New testcase to validate Ideal Load Balancer Functionality Poornima Nayak
2009-08-28 10:14 ` [LTP] [Patch 2/8] Power management master script modified to integrate ILB testcase Poornima Nayak
2009-08-30 17:36   ` Subrata Modak
2009-08-28 10:14 ` [LTP] [Patch 3/8] Patch to integrate ILB testcase to LTP Poornima Nayak
2009-08-30 17:36   ` Subrata Modak
2009-08-28 10:15 ` [LTP] [Patch 4/8] Addional new reusable functions for ILB testing Poornima Nayak
2009-08-30 17:36   ` Subrata Modak
2009-08-28 10:15 ` [LTP] [Patch 5/8] Modified library functions based on review comments Poornima Nayak
2009-08-30 17:36   ` Subrata Modak
2009-08-28 10:15 ` [LTP] [Patch 6/8] Included new function to check feature versus kernel version Poornima Nayak
2009-08-30 17:36   ` Subrata Modak
2009-08-28 10:15 ` [LTP] [Patch 7/8] Patch for cpu_consolidation to incorporate changes in reusable function Poornima Nayak
2009-08-30 17:36   ` Subrata Modak
2009-08-28 10:15 ` [LTP] [Patch 8/8]Patch to modify Readme file as new functionality testcase is integrated Poornima Nayak
2009-08-30 17:37   ` Subrata Modak
2009-08-30 17:36 ` Subrata Modak [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=1251653791.12120.19.camel@subratamodak.linux.ibm.com \
    --to=subrata@linux.vnet.ibm.com \
    --cc=arun@linux.vnet.ibm.com \
    --cc=ego@in.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=mpnayak@linux.vnet.ibm.com \
    --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