public inbox for ltp@lists.linux.it
 help / color / mirror / Atom feed
From: Rishikesh <risrajak@linux.vnet.ibm.com>
To: LTP <ltp-list@lists.sourceforge.net>
Cc: iranna.ankad@in.ibm.com, svishuku@in.ibm.com
Subject: [LTP] [PATCH 0/2 ] LTP Memory controller smarter check for enable/disable functionality
Date: Mon, 28 Dec 2009 16:16:00 +0530	[thread overview]
Message-ID: <4B388C68.9000304@linux.vnet.ibm.com> (raw)

Hi All,

Current memory controller implelementation in LTP does not check if 
memory controller is enabled or not. It only check for memory contorller 
kernel support. It may happen that some distro would have disabled 
functionality. e.g:

mhs21a:/opt/ltp # cat /proc/cgroups  | grep -e num_ -e memory -e freezer
#subsys_name    hierarchy    num_cgroups    enabled
memory    0    1    0
freezer    0    1    1
mhs21a:/opt/ltp #


Here 4th parameter shows the exact support for functionality as 
enabled/disabled. As here clearly it shows that memory controller is 
disabled and freezer is enabled.

My patch supports for this functionality.

[PATCH 1/2 ] : Added check for all controller to LTP.
[PATCH 2/2 ] : Added check to memory controller functiona,regression & 
stress testcase scripts.

Comments are welcome.

It has been tested and here are the result.

Without applying patch:

===========================================

<<snip>>
<<<execution_status>>>
initiation_status="ok"
duration=124 termination_type=exited termination_id=0 corefile=no
cutime=2046 cstime=4111
<<<test_end>>>
<<<test_start>>>
tag=memcg_regression stime=1261991350
cmdline="memcg_regression_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
mount: wrong fs type, bad option, bad superblock on xxx,
        missing codepage or helper program, or other error
        (for several filesystems (e.g. nfs, cifs) you might
        need a /sbin/mount.<type> helper program)
        In some cases useful info is found in syslog - try
        dmesg | tail  or so

memcg_regression_test    1  TFAIL  :  failed to mount memory subsytem
mount: wrong fs type, bad option, bad superblock on xxx,
        missing codepage or helper program, or other error
        (for several filesystems (e.g. nfs, cifs) you might
        need a /sbin/mount.<type> helper program)
        In some cases useful info is found in syslog - try
        dmesg | tail  or so
<<snip>>

==============================================




And with patch:


===========================================
<<snip>>

Running tests.......
<<<test_start>>>
tag=memcg_regression stime=1261996253
cmdline="memcg_regression_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
WARNING:
Kernel does not support for memory resource controller
Skipping all memcgroup testcases....
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=memcg_function stime=1261996253
cmdline="    memcg_function_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
WARNING:
Kernel does not support for memory resource controller
Skipping all memcgroup testcases....
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=1 cstime=0
<<<test_end>>>
<<<test_start>>>
tag=memcg_stress stime=1261996253
cmdline="    memcg_stress_test.sh"
contacts=""
analysis=exit
<<<test_output>>>
incrementing stop
WARNING:
Kernel does not support for memory resource controller
Skipping all memcgroup testcases....
<<<execution_status>>>
initiation_status="ok"
duration=0 termination_type=exited termination_id=0 corefile=no
cutime=0 cstime=0
<<<test_end>>>
INFO: ltp-pan reported all tests PASS
LTP Version: LTP-20091130
<<snip>>
=============================================

Thanks
Rishi


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

                 reply	other threads:[~2009-12-28 10:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=4B388C68.9000304@linux.vnet.ibm.com \
    --to=risrajak@linux.vnet.ibm.com \
    --cc=iranna.ankad@in.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    --cc=svishuku@in.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