All of lore.kernel.org
 help / color / mirror / Atom feed
From: Srinivasa R Chamarthy <schamart@linux.vnet.ibm.com>
To: ltp-list@lists.sourceforge.net
Subject: [LTP] memcg_function tests failing on s390
Date: Mon, 22 Mar 2010 14:35:55 +0530	[thread overview]
Message-ID: <20100322090555.GA6154@chamarthy> (raw)

[-- Attachment #1: Type: text/plain, Size: 649 bytes --]

Hi LTP,

The memcg_function tests were failing in s390 as the condition for checking
support for memory controller is not getting satisfied. Eventhough the cgroup
memory is enabled, the script comes out saying that the memory support is not
available in the kernel.

This patch changes the condition checking for memory cgroup support in kernel
in the script memcg_function_test.sh.

-- 
Srinivasa R Chamarthy (schamart@linux.vnet.ibm.com)
Linux on System z (RedHat & Novell SuSE) CSVT,
IBM India Systems & Technology Group/LTC - ISL,
Bangalore - 560071, KA, INDIA. Off: +91-80-41776451 
[ http://www.ibm.com/in/isl | http://www.ibm.com/linux/ltc ]

[-- Attachment #2: memcg_function_patch.patch --]
[-- Type: text/x-diff, Size: 543 bytes --]

diff -Naurp memcg_function_test_old.sh memcg_function_test.sh
--- memcg_function_test_old.sh  2010-03-22 09:50:56.000000000 +0100
+++ memcg_function_test.sh      2010-03-22 09:52:52.000000000 +0100
@@ -30,7 +30,7 @@ export TCID="memcg_function_test"
 export TST_TOTAL=38
 export TST_COUNT=0
 
-if [ ! "grep -w memory /proc/cgroups | cut -f4" == "1" ]
+if [ "$(grep -w memory /proc/cgroups | cut -f4)" != "1" ]
 then
         echo "WARNING:";
         echo "Either Kernel does not support for memory resource controller or feature not enabled";

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

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

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

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

             reply	other threads:[~2010-03-22  9:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-22  9:05 Srinivasa R Chamarthy [this message]
2010-03-22  9:57 ` [LTP] memcg_function tests failing on s390 Garrett Cooper

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=20100322090555.GA6154@chamarthy \
    --to=schamart@linux.vnet.ibm.com \
    --cc=ltp-list@lists.sourceforge.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.