- 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
- 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
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
- 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
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
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
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
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
, 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
, 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
- 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
---
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
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
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
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
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
+ 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
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
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
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
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
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
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
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
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
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
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
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
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
.
- 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
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
- 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
=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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
- 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
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
-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
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
)
- 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
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
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
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
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
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
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
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
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
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
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
- 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
+#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
+#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
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
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
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
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
-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
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
-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
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
-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
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
- 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
- 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
- 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
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
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
/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 - 100 of 345 matches
Mail list logo