Re: [LTP] [RFC] autokdump - automated kdump testsuite

2014-09-22 Thread CAI Qian
- Original Message - From: Vivek Goyal vgo...@redhat.com To: CAI Qian caiq...@redhat.com Cc: linux-kernel linux-ker...@vger.kernel.org, ltp-list ltp-list@lists.sourceforge.net, crash-utility crash-util...@redhat.com, kexec ke...@lists.infradead.org, kexec kdump redhat mailing

Re: [LTP] [RFC] autokdump - automated kdump testsuite

2014-09-22 Thread CAI Qian
- Original Message - From: Vivek Goyal vgo...@redhat.com To: CAI Qian caiq...@redhat.com Cc: ltp-list sourceforge.net, kexec kdump redhat mailing list kexec-kdump-l...@redhat.com, kexec ke...@lists.infradead.org, linux-kernel vger.kernel.org, crash-utility redhat.com Sent

[LTP] [RFC] autokdump - automated kdump testsuite

2014-09-19 Thread CAI Qian
back into the 1st kernel. implementation: It will setup a daemon to handle reboots. plan: I might also to test the makedumpfile all together later. CAI Qian -- Slashdot TV. Video for Nerds. Stuff that Matters. http

Re: [LTP] [PATCH]KSM: full_scans will stop increasing after stopping ksm

2011-04-07 Thread CAI Qian
- Original Message - CAI Qian wrote: - Original Message - Qian Cai wrote: On 2011-4-4, at 0:47, Bian Naimeng bia...@cn.fujitsu.com wrote: There are some problem in ksm tests. 1. We should break the test when checking is failure. No, this is not the intention

Re: [LTP] [PATCH]KSM: full_scans will stop increasing after stopping ksm

2011-04-06 Thread CAI Qian
for a recent upstream kernel? There are some patches for ksm recently merged upstream. If the problem still persistent, please paste the EXACT OUTPUT from the ksm01 test. If it is hung, please upload sysrq-t output somewhere. CAI Qian 2. The condition new_num old_num * 3 seems uncomfortable, i

Re: [LTP] testcases/kernel/mem Makefile mess

2011-03-09 Thread CAI Qian
Hmm, it looks like the oom library is not used at all. Pehaps some misapplied patch? Indeed, I have sent some patches before to remove liboom to use something else instead a few months ago. CAI Qian -- Colocation vs

Re: [LTP] [ANNOUNCE] The Linux Test Project has been released for FEBRUARY 2011.

2011-03-08 Thread CAI Qian
the place, and some of good test cases are within commit logs as well which makes things harder to maintain, use... CAI Qian -- Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your

Re: [LTP] [ANNOUNCE] The Linux Test Project has been released for FEBRUARY 2011.

2011-03-07 Thread CAI Qian
Perhaps we need to get developer's tests into the kernel. We now have a tools/testing directory lets use it. There are a few test code span over other directories too. Documentation/vm/hugepage-mmap.c Documentation/vm/hugepage-shm.c Documentation/vm/map_hugetlb.c ... CAI Qian

Re: [LTP] [ANNOUNCE] The Linux Test Project has been released for FEBRUARY 2011.

2011-03-04 Thread CAI Qian
, it certainly make it easier to reference without dealing with two projects and trees. CAI Qian -- What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect

Re: [LTP] [ANNOUNCE] The Linux Test Project has been released for FEBRUARY 2011.

2011-03-02 Thread CAI Qian
, those could be a follow-up items with the kernel regression reports that after fixed/analyzed a regression in kernel, the next natural thing to do is to fix/add missing tests to close this gap in the future by providing efficient tests to our users if all possible. CAI Qian

Re: [LTP] [PATCH] Fix Makefile of testcase/kernel/mem/ksm/

2011-01-25 Thread CAI Qian
- Original Message - On Tue, Jan 25, 2011 at 10:54 PM, Bian Naimeng bia...@cn.fujitsu.com wrote: There is not any directory at testcase/kernel/mem/ksm/, so replace generic_trunk_target.mk by generic_leaf_target.mk Signed-off-by: Bian Naimeng bia...@cn.fujitsu.com ---  

Re: [LTP] [PATCH] check two possible pathes for cpuset

2011-01-25 Thread CAI Qian
Garrett, any objection to merge this? - Original Message - It can be difficult to predict if cpuset files have prefix or not, so only to fail after checked both. Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/lib/mem.c | 20 1 files changed

Re: [LTP] [PATCH] check two possible pathes for cpuset

2011-01-21 Thread CAI Qian
This is the correct patch attached. - Original Message - It can be difficult to predict if cpuset files have prefix or not, so only to fail after checked both. Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/lib/mem.c | 20 1 files changed

Re: [LTP] [PATCH] check two possible pathes for cpuset

2011-01-21 Thread CAI Qian
Is there a requirement that documents this behavior? Garrett, there is one in the kernel doc, http://lxr.linux.no/#linux+v2.6.37/Documentation/cgroups/cpusets.txt Note that for legacy reasons, the cpuset filesystem exists as a wrapper around the cgroup filesystem. The command mount -t cpuset

[LTP] [PATCH] tests require root users

2011-01-19 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/cpuset/cpuset01.c |3 ++- testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c |1 + testcases/kernel/syscalls/mlock/mlock03.c |4 +++- testcases/kernel/syscalls/mmap/mmap10.c|3

[LTP] [PATCH] mbind: add a missing Makefile

2011-01-19 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/mbind/Makefile | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/mbind/Makefile diff --git a/testcases/kernel/mem/mbind/Makefile b/testcases/kernel/mem

[LTP] [PATCH] fork13: pid reuse race

2011-01-19 Thread CAI Qian
+ 1; Signed-off-by: CAI Qian caiq...@redhat.com --- runtest/syscalls|1 + testcases/kernel/syscalls/fork/fork13.c | 179 +++ 2 files changed, 180 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/syscalls/fork/fork13.c diff

[LTP] [PATCH] zram01: add a new test for zram feature

2011-01-19 Thread CAI Qian
zram: generic RAM based compressed R/W block devices http://lkml.org/lkml/2010/8/9/227 Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/zram/Makefile | 22 + testcases/kernel/mem/zram/zram01.c | 159 2 files changed, 181 insertions

[LTP] [PATCH 1/4] ksm02: KSM for NUMA

2011-01-19 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/ksm/ksm02.c | 137 ++ 1 files changed, 137 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/ksm/ksm02.c diff --git a/testcases/kernel/mem/ksm/ksm02.c b/testcases/kernel

[LTP] [PATCH 2/4] ksm03: KSM for Memory Resource Controller

2011-01-19 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/ksm/ksm03.c | 117 ++ 1 files changed, 117 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/ksm/ksm03.c diff --git a/testcases/kernel/mem/ksm/ksm03.c b/testcases/kernel

Re: [LTP] [PATCH] mbind: add a missing Makefile

2011-01-19 Thread CAI Qian
The patch is attached.From 8b8c99a02e0384e6af73ce596638c5436484f8e0 Mon Sep 17 00:00:00 2001 From: CAI Qian caiq...@redhat.com Date: Wed, 19 Jan 2011 15:54:19 +0800 Subject: [PATCH] mbind: add a missing Makefile Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/mbind/Makefile

Re: [LTP] [PATCH] mbind: add a missing Makefile

2011-01-19 Thread CAI Qian
Garrett, this patch still need to merge. Thanks. CAI Qian - Original Message - The patch is attached. -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how

Re: [LTP] [PATCH 3/4] ksm04: KSM for Memory Resource Controller and NUMA

2011-01-19 Thread CAI Qian
Commit pending. Garrett, the file had two copies of the code. -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact

Re: [LTP] [PATCH] mbind: add a missing Makefile

2011-01-19 Thread CAI Qian
Committed -- thanks! Garrett, the file had two copies of the code. -- Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the

[LTP] [PATCH] oom: fix compilation warnings

2011-01-19 Thread CAI Qian
warning: extra tokens at end of #ifdef directive Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/oom01.c |2 +- testcases/kernel/mem/oom/oom02.c |2 +- testcases/kernel/mem/oom/oom03.c |2 +- testcases/kernel/mem/oom/oom04.c |2 +- 4 files changed, 4

Re: [LTP] [PATCH v3 1/5] oom01: test OOM

2011-01-18 Thread CAI Qian
Hi Garrett, Any comment/feedback to merge this patchset? I have some new development want to push upstream but depends on this. Thanks. CAI Qian - Original Message - The previous version of this can be dropped. Signed-off-by: CAI Qian caiq...@redhat.com --- v3: use common

Re: [LTP] [PATCH] cpuset01: fix pathname to remove underscore

2011-01-18 Thread CAI Qian
Garrett, any comment/feedback to merge this too? CAI Qian - Original Message - Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/cpuset/Makefile | 25 + testcases/kernel/mem/cpuset/cpuset01.c | 6 +++--- 2 files changed, 28 insertions(+), 3

Re: [LTP] [PATCH] hugemmap05: fix pathname to remove underscore

2011-01-18 Thread CAI Qian
Garrett, any feedback/comment to merge this as well? - Original Message - Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c | 68 ++-- 1 files changed, 34 insertions(+), 34 deletions(-) diff --git a/testcases/kernel

Re: [LTP] [PATCH] oom: fix build failure and NUMA lib

2011-01-18 Thread CAI Qian
Garrett, are we good to merge this too? - Original Message - This should apply after the previous all 5 oom patches. Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/Makefile | 1 + testcases/kernel/mem/oom/lib/oom.c | 9 - 2 files changed, 9

Re: [LTP] [PATCH] oom: additonal fixes

2011-01-18 Thread CAI Qian
. - oom02/oom04: fix cpuset prefix. Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/lib/oom.c | 20 +--- testcases/kernel/mem/oom/lib/oom.h | 4 ++-- testcases/kernel/mem/oom/oom01.c | 10 ++ testcases/kernel/mem/oom/oom02.c | 4 ++-- testcases/kernel

Re: [LTP] [PATCH 00/13] check tests require root

2011-01-18 Thread CAI Qian
Garrett, this one is still waiting for merging... - Original Message - All tests in this series require to run as root user. -- Protect Your Site and Customers from Malware Attacks Learn about various malware

Re: [LTP] [PATCH] cpuset01: fix pathname to remove underscore

2011-01-18 Thread CAI Qian
- Original Message - On Tue, Jan 18, 2011 at 1:18 AM, CAI Qian caiq...@redhat.com wrote: Garrett, any comment/feedback to merge this too? Committed. Please add a runtest entry please. Yes, I can see it has already been added in runtest/mm cpuset01 cpuset01 -I 3600 However

[LTP] [PATCH 1/3] rework code for oom and ksm tests

2011-01-18 Thread CAI Qian
=129442718808733w=2 Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/ksm/ksm01.c | 448 + testcases/kernel/mem/oom/oom01.c |4 +- testcases/kernel/mem/oom/oom02.c |4 +- testcases/kernel/mem/oom/oom03.c |4 +- testcases/kernel/mem

[LTP] [PATCH 3/3] add a missing Makefile

2011-01-18 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/lib/Makefile | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/lib/Makefile diff --git a/testcases/kernel/mem/lib/Makefile b/testcases/kernel/mem/lib

[LTP] [PATCH 1/4] ksm04: KSM for Memory Resource Controller and NUMA

2011-01-18 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/ksm/ksm04.c | 142 ++ 1 files changed, 142 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/ksm/ksm04.c diff --git a/testcases/kernel/mem/ksm/ksm04.c b/testcases/kernel

[LTP] [PATCH 2/4] ksm03: KSM for Memory Resource Controller

2011-01-18 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/ksm/ksm03.c | 118 ++ 1 files changed, 118 insertions(+), 0 deletions(-) create mode 100644 testcases/kernel/mem/ksm/ksm03.c diff --git a/testcases/kernel/mem/ksm/ksm03.c b/testcases/kernel

[LTP] [PATCH 4/4] ksm: add new tests to runtest/mm

2011-01-18 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- runtest/mm | 15 +++ 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/runtest/mm b/runtest/mm index 9e514e7..7a5fec4 100644 --- a/runtest/mm +++ b/runtest/mm @@ -54,23 +54,30 @@ mmapstress08 mmapstress08 mmapstress09

Re: [LTP] [PATCH 1/3] rework code for oom and ksm tests

2011-01-18 Thread CAI Qian
I was in the middle of writing up a style guide before I accidentally quite mousepad and lost my progress... Please look at the last couple commits I signed off on and try to follow my example for how to do things in a more consistent manner according to I've been trying to do in the project

[LTP] [PATCH 00/13] check tests require root

2011-01-11 Thread CAI Qian
All tests in this series require to run as root user. -- Gaining the trust of online customers is vital for the success of any company that requires sensitive data to be transmitted over the Web. Learn how to best

[LTP] [PATCH 01/13] hugemmap05: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c b/testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c index 8768b69

[LTP] [PATCH 02/13] mmap10: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/syscalls/mmap/mmap10.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/mmap/mmap10.c b/testcases/kernel/syscalls/mmap/mmap10.c index fe9d622..58754df 100644 --- a/testcases/kernel

[LTP] [PATCH 03/13] ksm01: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/ksm/ksm01.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/ksm/ksm01.c b/testcases/kernel/mem/ksm/ksm01.c index 1143791..da488ba 100644 --- a/testcases/kernel/mem/ksm/ksm01.c +++ b

[LTP] [PATCH 04/13] cpuset01: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/cpuset/cpuset01.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/cpuset/cpuset01.c b/testcases/kernel/mem/cpuset/cpuset01.c index 27e2d68..6e2f356 100644 --- a/testcases/kernel/mem

[LTP] [PATCH 05/13] mbind01: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/mbind/mbind01.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/mbind/mbind01.c b/testcases/kernel/mem/mbind/mbind01.c index 5c9c955..b6a1f68 100644 --- a/testcases/kernel/mem/mbind

[LTP] [PATCH 06/13] mlock03: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/syscalls/mlock/mlock03.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/mlock/mlock03.c b/testcases/kernel/syscalls/mlock/mlock03.c index d11e42d..b8500b4 100644 --- a/testcases

[LTP] [PATCH 07/13] mmap11: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/syscalls/mmap/mmap11.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/mmap/mmap11.c b/testcases/kernel/syscalls/mmap/mmap11.c index 0cd32d4..1929d1a 100644 --- a/testcases/kernel

[LTP] [PATCH 08/13] fork13: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/syscalls/fork/fork13.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/syscalls/fork/fork13.c b/testcases/kernel/syscalls/fork/fork13.c index 2fe0770..1a40a30 100644 --- a/testcases/kernel

[LTP] [PATCH 09/13] zram01: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/zram/zram01.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/zram/zram01.c b/testcases/kernel/mem/zram/zram01.c index e63cec4..1f1a5f4 100644 --- a/testcases/kernel/mem/zram/zram01

[LTP] [PATCH 10/13] oom01: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/oom01.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/oom/oom01.c b/testcases/kernel/mem/oom/oom01.c index 8fb58c3..73311a3 100644 --- a/testcases/kernel/mem/oom/oom01.c +++ b

[LTP] [PATCH 11/13] oom02: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/oom02.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/oom/oom02.c b/testcases/kernel/mem/oom/oom02.c index 38533ef..f9060d5 100644 --- a/testcases/kernel/mem/oom/oom02.c +++ b

[LTP] [PATCH 12/13] oom03: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/oom03.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/oom/oom03.c b/testcases/kernel/mem/oom/oom03.c index 12c2063..8cdff78 100644 --- a/testcases/kernel/mem/oom/oom03.c +++ b

[LTP] [PATCH 13/13] oom04: check root

2011-01-11 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/oom04.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/oom/oom04.c b/testcases/kernel/mem/oom/oom04.c index 5b403f4..befb7e9 100644 --- a/testcases/kernel/mem/oom/oom04.c +++ b

Re: [LTP] [PATCH 13/13] oom04: check root

2011-01-11 Thread CAI Qian
- Original Message - On Jan 11, 2011, at 12:57 AM, CAI Qian wrote: Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/oom04.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/testcases/kernel/mem/oom/oom04.c b/testcases/kernel/mem

Re: [LTP] [PATCH] hugemmap05 issues

2011-01-10 Thread CAI Qian
you please be elaborate the failure? I can't see why it would work that way. The cleanup routine does this. - restore nr_hugepages - restore nr_overcommit_hugepages - unlink umount (mmap case) - shmdt (shmget case) Thanks. CAI Qian

Re: [LTP] [PATCH] hugemmap05 issues

2011-01-10 Thread CAI Qian
-predictable what went wrong. The cleanup routine just do its best to cleaning up the system. There was no grantee it would be succeed. Thanks. CAI Qian -- Gaining the trust of online customers is vital for the success of any

[LTP] [PATCH] oom: additonal fixes

2011-01-05 Thread CAI Qian
There are some bugs for the latest oom series and some cleanup. - oom01: with overcommit=2 is looping due to no check for return from mmap. - oom03: should not check for cpuset since it is a non-NUMA test. - oom02/oom04: fix cpuset prefix. Signed-off-by: CAI Qian caiq...@redhat.com

Re: [LTP] [PATCH] hugemmap05 issues

2011-01-03 Thread CAI Qian
) - tst_brkm(TBROK|TERRNO, cleanup, shmdt); - } else { - munmap(addr, (long)(length * MB)); - close(fd); - unlink(s); - } Same here. We call shmdt only in case of shmget(), and call munmap for mmap(). Thanks. CAI Qian + shmaddr = shmat(shmid, ADDR, SHMAT_FLAGS); + if (shmaddr == (void *)-1

Re: [LTP] [PATCH] hugemmap05 issues

2011-01-03 Thread CAI Qian
to understand what the intention is behind these tests. OK. Thanks. CAI Qian -- Learn how Oracle Real Application Clusters (RAC) One Node allows customers to consolidate database storage, standardize their database

[LTP] [PATCH] oom: fix build failure and NUMA lib

2010-12-31 Thread CAI Qian
This should apply after the previous all 5 oom patches. Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/oom/Makefile |1 + testcases/kernel/mem/oom/lib/oom.c |9 - 2 files changed, 9 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/mem/oom

[LTP] [PATCH] hugemmap05: add missing temp directory creation

2010-12-31 Thread CAI Qian
This is in order to use *TESTDIR. Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c |5 - 1 files changed, 4 insertions(+), 1 deletions(-) diff --git a/testcases/kernel/mem/hugetlb/hugemmap/hugemmap05.c b/testcases/kernel/mem/hugetlb

Re: [LTP] [PATCH] cpuset01: fix pathname to remove underscore

2010-12-30 Thread CAI Qian
This patch is also to add the missing Makefile. CAI Qian - Original Message - Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/cpuset/Makefile | 25 + testcases/kernel/mem/cpuset/cpuset01.c | 6 +++--- 2 files changed, 28 insertions(+), 3

[LTP] [PATCH v3 1/5] oom01: test OOM

2010-12-26 Thread CAI Qian
The previous version of this can be dropped. Signed-off-by: CAI Qian caiq...@redhat.com --- v3: use common functions. v2: code cleanup and skip 32-bit since there is no guarantee of running out of virtual memory address space there. testcases/kernel/mem/oom/Makefile | 42

[LTP] [PATCH v3 2/5] oom02: test OOM for NUMA using mempolicy and cpuset

2010-12-26 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- v3: use common functions. v2: code cleanup and skip 32-bit since there is no guarantee of running out of virtual memory address space there. testcases/kernel/mem/oom/oom02.c | 129 ++ 1 files changed, 129

[LTP] [PATCH v3 3/5] oom03: test OOM for memcg

2010-12-26 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- v3: use common functions. v2: code cleanup and skip 32-bit since there is no guarantee of running out of virtual memory address space there. testcases/kernel/mem/oom/oom03.c | 133 ++ 1 files changed, 133

[LTP] [PATCH v3 4/5] oom04: test OOM for NUMA with memcg

2010-12-26 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- v3: use common functions. v2: code cleanup and skip 32-bit since there is no guarantee of running out of virtual memory address space there. testcases/kernel/mem/oom/oom04.c | 174 ++ 1 files changed, 174

Re: [LTP] [PATCH v3 1/5] oom01: test OOM

2010-12-26 Thread CAI Qian
The patch is also attached.From a3f8cf44e5d15e5271fe226f20c33b137a6ecd3b Mon Sep 17 00:00:00 2001 From: CAI Qian caiq...@redhat.com Date: Mon, 27 Dec 2010 12:28:28 +0800 Subject: [PATCH v3 1/5] oom01: test OOM The previous version of this can be dropped. Signed-off-by: CAI Qian caiq

Re: [LTP] [PATCH v2 4/5] oom04: test OOM for NUMA with memcg

2010-12-26 Thread CAI Qian
Overall comment is that these tests do share some constats/functions, it would be wise to put them into common header/library. As it reduces maintanence costs. Thanks for the commenting. The new versions were posted to address those. CAI Qian

Re: [LTP] [PATCH]Fix building error.

2010-12-26 Thread CAI Qian
- Original Message - On Dec 22, 2010, at 11:02 PM, CAI Qian caiq...@redhat.com wrote: However, many people use the LTP to test their own linux system, if those kernel is not support KSM, at least we should make sure they can build successfully. In that case, why not use

Re: [LTP] [PATCH]Fix building error.

2010-12-22 Thread CAI Qian
However, many people use the LTP to test their own linux system, if those kernel is not support KSM, at least we should make sure they can build successfully. In that case, why not use an older version? CAI Qian

[LTP] [PATCH] zram01: add a new test for zram feature.

2010-12-20 Thread CAI Qian
zram: generic RAM based compressed R/W block devices http://lkml.org/lkml/2010/8/9/227 Signed-off-by: CAI Qian caiq...@redhat.com --- testcases/kernel/mem/zram/Makefile | 22 + testcases/kernel/mem/zram/zram01.c | 157 2 files changed, 179 insertions

[LTP] [PATCH v2 2/5] oom02: test OOM for NUMA using mempolicy and cpuset

2010-12-20 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- v2: code cleanup and skip 32-bit since there is no guarantee of running out of virtual memory address space there. testcases/kernel/mem/oom/oom02.c | 312 ++ 1 files changed, 312 insertions(+), 0 deletions

[LTP] [PATCH v2 3/5] oom03: test OOM for memcg

2010-12-20 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- v2: code cleanup and skip 32-bit since there is no guarantee of running out of virtual memory address space there. testcases/kernel/mem/oom/oom03.c | 253 ++ 1 files changed, 253 insertions(+), 0 deletions

[LTP] [PATCH v2 4/5] oom04: test OOM for NUMA with memcg

2010-12-20 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- v2: code cleanup and skip 32-bit since there is no guarantee of running out of virtual memory address space there. testcases/kernel/mem/oom/oom04.c | 400 ++ 1 files changed, 400 insertions(+), 0 deletions

[LTP] [PATCH v2 5/5] mm/runtest: add oom tests

2010-12-20 Thread CAI Qian
Signed-off-by: CAI Qian caiq...@redhat.com --- runtest/mm |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/runtest/mm b/runtest/mm index 8be3025..9e514e7 100644 --- a/runtest/mm +++ b/runtest/mm @@ -72,3 +72,8 @@ mmap10_4 mmap10 -a -s -c 60 ksm01 ksm01 cpuset01

Re: [LTP] [PATCH v2 4/5] oom04: test OOM for NUMA with memcg

2010-12-20 Thread CAI Qian
Forget about the attachment.From 8c1e4f307180ee80be9273c7dbc6643bfab5bb85 Mon Sep 17 00:00:00 2001 From: CAI Qian caiq...@redhat.com Date: Tue, 21 Dec 2010 10:34:46 +0800 Subject: [PATCH v2 4/5] oom04: test OOM for NUMA with memcg Signed-off-by: CAI Qian caiq...@redhat.com --- v2: code cleanup

Re: [LTP] [PATCH]Fix building error.

2010-12-20 Thread CAI Qian
Hi, What do you think about it? Any comments are welcome. ^_^ This test is not designed for older kernels like RHEL5.5. Even if fixed the compilation error, the test will not be working correctly due to old KSM interfaces and implementation there. CAI Qian

Re: [LTP] [PATCH]Fix building error.

2010-12-20 Thread CAI Qian
is unsupported! Anyway, it would be more code to test here and there rather than kernel version. Isn't LTP's guideline to only support the latest and greatest kernels? CAI Qian -- Lotusphere 2011 Register now for Lotusphere 2011

Re: [LTP] oom01: Out Of Memory (OOM)

2010-12-08 Thread CAI Qian
behaviours. It simply increase the memory consumption 3G each time until all the available memory is consumed and OOM is triggered. Signed-off-by: CAI Qian caiq...@redhat.com --- runtest/mm|2 + testcases/kernel/mem/oom/Makefile | 22 + testcases/kernel

Re: [LTP] [PATCH] munmap() don't check sysctl_max_mapcount

2010-12-06 Thread CAI Qian
the check() to void. OK, I did not look the code carefully. No it just creates unique directory and changes CWD to it. OK, I will remove it if no one think it would be useful although I think the standard template should correct this in the first place. CAI Qian

Re: [LTP] [PATCH v2] mbind_range() vma merge

2010-12-03 Thread CAI Qian
What about using /proc/self/maps here and get rid of sprintf() and buf here. OK. Empty line here please. It was removed explicitly to make the code compact. Could you explain the benefit? Thanks. CAI Qian -- What

Re: [LTP] [PATCH] mbind_range() vma merge

2010-11-25 Thread CAI Qian
You should also create corresponding runtest file entires, otherwise the tests won't get executed by default. The syntax is simple name command to execute. See runtest/* files. Yes, I have fixed that in my local version already. Thanks. CAI Qian

Re: [LTP] [PATCH] mbind_range() vma merge

2010-11-25 Thread CAI Qian
for places where they are really needed. OK. + if (addr == MAP_FAILED) + tst_brkm(TBROK|TERRNO, NULL, mmap), exit(1); You should use tst_brkm(TBROK|TERRNO, tst_exit, mmap) here. As tst_brkm() exits when pointer to cleanup is not NULL. Yes, just figured that out. CAI

Re: [LTP] [PATCH v2] Out Of Memory when changing cpuset's mems on NUMA

2010-11-25 Thread CAI Qian
+#define UNUSED __attribute__ ((unused)) You are using both LTP_ATTRIBUTE_UNUSED and your UNUSED see sighandler below. Found that myself yesterday, and already fixed it my local tree. CAI Qian

Re: [LTP] [PATCH] mbind_range() vma merge

2010-11-25 Thread CAI Qian
+#include numaif.h +#include numa.h +#include sys/mman.h +#include stdio.h +#include unistd.h +#include stdlib.h +#include string.h +#include test.h +#include usctest.h gcooper This will cause breakage on systems without proper numa lib support *cues some RHEL users from

Re: [LTP] [PATCH] Out Of Memory when changing cpuset's mems on NUMA

2010-11-22 Thread CAI Qian
confusing. I would merge the path_exist and path_vcreate functions into one so that you could declare pathbuf as local variable. OK. Thanks. CAI Qian -- Increase Visibility of Your 3D Game App Earn a Chance To Win $500

Re: [LTP] [PATCH v3] functional testing for Kernel Samepage Merging

2010-11-11 Thread CAI Qian
Can we get a V4 quickly. I can see that the initial submission has been quite long back :-) Hi, v5 has already submit, http://marc.info/?l=ltp-listm=128938165226055w=2 CAI Qian -- Centralized Desktop Delivery: Dell

Re: [LTP] [PATCH v8] mmap/munmap /dev/zero: a common way of malloc()/free() anonymous memory on Solaris

2010-11-11 Thread CAI Qian
Yes, a combined patch adding an entry to the runtest file is required. Please send me. I will push it. Subrata, v9 has already included that, http://marc.info/?l=ltp-listm=128919900402045w=2 CAI Qian -- Centralized

Re: [LTP] [PATCH v3] functional testing for Kernel Samepage Merging

2010-11-09 Thread CAI Qian
Well... ok. How about doing the memcmp, and if things fail narrow it down from there? Comparing things byte-by-byte is a long and lengthy task :/... OK. Thanks. CAI Qian -- The Next 800 Companies to Lead

[LTP] [PATCH v3] functional testing for Kernel Samepage Merging

2010-11-04 Thread CAI Qian
-by: CAI Qian caiq...@redhat.com --- v3: fixed expected values based on the feedback from KSM developers; fixed madvise return code; replaced malloc with mmap calls to better align page boundaries; added additional memory content verification after each run. v2: fixed stupid mistakes about

[LTP] [PATCH v3] overcommit libhugetlbfs and check the statistics

2010-11-04 Thread CAI Qian
and nr_overcommit_hugepages. Then, set both to a specify value - N, and allocate N + %50 x N hugepages. Finally, it reads and writes every page. There are command options to choose either to manage hugepages from sysfs or procfs, and reserve them by mmap or shmget. Signed-off-by: CAI Qian caiq

[LTP] [PATCH v7] mmap/munmap /dev/zero: a common way of malloc()/free() anonymous memory on Solaris

2010-10-19 Thread CAI Qian
-by: CAI Qian caiq...@redhat.com --- v7: another (void) fix v6: really use git format; check return from children; cleanup. v5: add an option to test anonymous pages; move open() into setup(). v4: comment fix; code cleanup. v3: really mmap /dev/zero; replace _exit() with exit(); fix patch format

[LTP] [PATCH v2] overcommit libhugetlbfs and check the statistics

2010-10-19 Thread CAI Qian
and nr_overcommit_hugepages. Then, set both to a specify value - N, and allocate N + %50 x N hugepages. Finally, it reads and writes every page. There are command options to choose either to manage hugepages from sysfs or procfs, and reserve them by mmap or shmget. Signed-off-by: CAI Qian caiq

[LTP] [PATCH v2] functional testing for Kernel Samepage Merging (KSM)

2010-10-19 Thread CAI Qian
-by: CAI Qian caiq...@redhat.com --- v2: fixed stupid mistakes about memory content assignment. testcases/kernel/mem/ksm/Makefile | 22 ++ testcases/kernel/mem/ksm/ksm01.c | 435 + 2 files changed, 457 insertions(+), 0 deletions(-) create mode 100644 testcases

[LTP] [PATCH] mmap/munmap /dev/zero

2010-10-12 Thread CAI Qian
Add a new test to mmap/munmap /dev/zero. Signed-off-by: CAI Qian caiq...@redhat.com --- /dev/null +++ b/testcases/kernel/syscalls/mmap/mmap10.c @@ -0,0 +1,131 @@ +/* + * mmap/munmap /dev/zero + * + * Copyright (C) 2010 Red Hat, Inc. + * This program is free software; you can redistribute

Re: [LTP] [PATCH] mmap/munmap /dev/zero

2010-10-12 Thread CAI Qian
- Mike Frysinger vap...@gentoo.org wrote: On Tuesday, October 12, 2010 10:07:16 CAI Qian wrote: +/* main setup function of test */ +void setup(); +/* cleanup function for the test */ +void cleanup(); +int mmapzero(); functins that take no args should be (void) and not () Fixed

Re: [LTP] [PATCH] mmap/munmap /dev/zero

2010-10-12 Thread CAI Qian
- Garrett Cooper yaneg...@gmail.com wrote: On Tue, Oct 12, 2010 at 12:15 PM, Mike Frysinger vap...@gentoo.org wrote: On Tuesday, October 12, 2010 10:07:16 CAI Qian wrote: +/* main setup function of test */ +void setup(); +/* cleanup function for the test */ +void cleanup

Re: [LTP] [PATCH] mmap/munmap /dev/zero

2010-10-12 Thread CAI Qian
- Mike Frysinger vap...@gentoo.org wrote: On Tuesday, October 12, 2010 22:06:29 CAI Qian wrote: - Mike Frysinger wrote: On Tuesday, October 12, 2010 10:07:16 CAI Qian wrote: +x = mmap(/dev/zero, SIZE+SIZE-4096, PROT_READ|PROT_WRITE, +MAP_PRIVATE

[LTP] [PATCH v3] mmap/munmap /dev/zero

2010-10-12 Thread CAI Qian
on RHEL5 that has been removed/changed upstream. Signed-off-by: CAI Qian caiq...@redhat.com --- v3: really mmap /dev/zero; replace _exit() with exit(); fix patch format. v2: incorporate comments from Mike and Garrett. testcases/kernel/syscalls/mmap/mmap10.c | 159

Re: [LTP] [PATCH v2] mmap/munmap /dev/zero

2010-10-12 Thread CAI Qian
faster? has been removed/changed upstream. Reference? Signed-off-by: CAI Qian caiq...@redhat.com ... +#include test.h +#include usctest.h +#include errno.h +#include sys/mman.h +#include unistd.h +#include stdlib.h +#include sys/wait.h +#include stdio.h It's not linux

[LTP] [PATCH v4] mmap/munmap /dev/zero

2010-10-12 Thread CAI Qian
/changed upstream. Signed-off-by: CAI Qian caiq...@redhat.com --- v4: comment fix; code cleanup. v3: really mmap /dev/zero; replace _exit() with exit(); fix patch format. v2: incorporate comments from Mike and Garrett. testcases/kernel/syscalls/mmap/mmap10.c | 177

  1   2   3   4   >