All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] memcg_function tests failing on s390
@ 2010-03-22  9:05 Srinivasa R Chamarthy
  2010-03-22  9:57 ` Garrett Cooper
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivasa R Chamarthy @ 2010-03-22  9:05 UTC (permalink / raw)
  To: ltp-list

[-- 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® 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LTP] memcg_function tests failing on s390
  2010-03-22  9:05 [LTP] memcg_function tests failing on s390 Srinivasa R Chamarthy
@ 2010-03-22  9:57 ` Garrett Cooper
  0 siblings, 0 replies; 2+ messages in thread
From: Garrett Cooper @ 2010-03-22  9:57 UTC (permalink / raw)
  To: Srinivasa R Chamarthy; +Cc: ltp-list

On Mon, Mar 22, 2010 at 2:05 AM, Srinivasa R Chamarthy
<schamart@linux.vnet.ibm.com> wrote:
> 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.

    Already fixed on HEAD.
Thanks,
-Garrett

------------------------------------------------------------------------------
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
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-03-22  9:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-22  9:05 [LTP] memcg_function tests failing on s390 Srinivasa R Chamarthy
2010-03-22  9:57 ` Garrett Cooper

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.