[Libhugetlbfs-devel] [PATCH] exhaust malloc arenas before malloc tests

2012-09-06 Thread Jan Stancek
RECORE() before actual malloc/malloc_manysmall test begins. Signed-off-by: Jan Stancek --- tests/hugetests.h|1 + tests/malloc.c |3 +++ tests/malloc_manysmall.c |3 +++ tests/testutils.c| 36 4 files changed, 43 insertions(

[Libhugetlbfs-devel] [PATCH] ignore return value from readahead()

2012-09-06 Thread Jan Stancek
Remove implementation of readpage from the hugetlbfs_aops So this is going to always return EINVAL on patched kernels. Ignore return value, regardless of readahead() outcome testcase will still check if reservation counter gets corrupted. Signed-off-by: Jan Stancek --- tests/readahead_rese

[Libhugetlbfs-devel] [PATCH] limit core dumping for stack_grow_into_huge

2012-09-07 Thread Jan Stancek
o_huge) to /var/spool/abrt/ccpp-2012-09-07-06:27:42-24258 (1098439983104 bytes) With patch: Starting testcase "./obj64/stack_grow_into_huge", pid 24384 PASS real0m0.206s user0m0.013s sys 0m0.193s Signed-off-by: Jan Stancek --- tests/stack_grow_into_huge.c | 10

[Libhugetlbfs-devel] [PATCH] dont include base_size in fake hugepagesizes

2012-09-07 Thread Jan Stancek
getpagesizes() adds pagesize to page sizes from gethugetpagesizes(). This testcase fakes sysfs data, so there is 64K hugepage size and then getpagesizes() adds base_size to that, which is also 64K. Signed-off-by: Jan Stancek --- tests/gethugepagesizes.c | 46

[Libhugetlbfs-devel] [PATCH] set slice boundary at runtime

2012-09-10 Thread Jan Stancek
do_readback(0x2ffff00, 0x100, "huge below") Attempting to remap...disallowed PASS Signed-off-by: Jan Stancek --- tests/mremap-expand-slice-collision.c | 64 + 1 files changed, 57 insertions(+), 7 deletions(-) diff --git a/tests/mremap-expand-sl

Re: [Libhugetlbfs-devel] [PATCH] set slice boundary at runtime

2012-09-10 Thread Jan Stancek
- Original Message - > From: "Jan Stancek" > To: libhugetlbfs-devel@lists.sourceforge.net > Cc: an...@redhat.com > Sent: Monday, 10 September, 2012 4:33:15 PM > Subject: [Libhugetlbfs-devel] [PATCH] set slice boundary at runtime > > This testcase failed on so

[Libhugetlbfs-devel] [PATCH] fail test only when MAP_FIXED fails on free slices

2012-09-12 Thread Jan Stancek
apped). If they are not free and mmap fails, test will PASS as inconclusive. Signed-off-by: Jan Stancek --- tests/huge_at_4GB_normal_below.c| 25 +--- tests/huge_below_4GB_normal_above.c | 37 +- tests/hugetests.h |

[Libhugetlbfs-devel] linkhuge_rw tests failing on ppc64

2012-09-12 Thread Jan Stancek
Hi, I'm seeing following tests failing on ppc64: HUGETLB_ELFMAP=W linkhuge_rw (16M: 32): Failed to map hugepage segment 0: 2f00-3100 (errno=16) HUGETLB_ELFMAP=RW linkhuge_rw (16M: 32):Failed to map hugepage segment 1: 2f00-3100 (errno=16) HUGETLB_ELFMAP=W HUGETLB_MINIMAL_

Re: [Libhugetlbfs-devel] [PATCH] fail test only when MAP_FIXED fails on free slices

2012-09-12 Thread Jan Stancek
- Original Message - > From: "David Gibson" > To: "Jan Stancek" > Cc: libhugetlbfs-devel@lists.sourceforge.net, an...@redhat.com > Sent: Thursday, 13 September, 2012 3:37:39 AM > Subject: Re: [Libhugetlbfs-devel] [PATCH] fail test only when MAP_FIXED

[Libhugetlbfs-devel] [PATCH] build 4G-edge testcases as -static

2012-09-14 Thread Jan Stancek
001955-1001958 rw-p 00:00 0[heap] fffac38-fffac39 rw-p 00:00 0 fffac39-fffac3b r-xp 00:00 0[vdso] fffdca1-fffdca4 rw-p 00:00 0[stack] Signed-off-by: Jan Stancek --- tests/Makefile | 10 +++--- tests/ru

[Libhugetlbfs-devel] [PATCH] mremap can't extend shared anon memory

2012-10-01 Thread Jan Stancek
(). Signed-off-by: Jan Stancek --- tests/mremap-expand-slice-collision.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tests/mremap-expand-slice-collision.c b/tests/mremap-expand-slice-collision.c index 0cbff15..7178c6a 100644 --- a/tests/mremap-expand-slice-collision.c

[Libhugetlbfs-devel] [PATCH] avoid calling munmap with zero length

2012-12-10 Thread Jan Stancek
Linux 2.6.12) length was 0. Signed-off-by: Jan Stancek --- tests/mremap-fixed-huge-near-normal.c | 20 +--- 1 files changed, 13 insertions(+), 7 deletions(-) diff --git a/tests/mremap-fixed-huge-near-normal.c b/tests/mremap-fixed-huge-near-normal.c index 2c41813..e0f2ae4 100644

[Libhugetlbfs-devel] [PATCH] misalign: misaligned length allowed on kernels >= 3.10-rc1

2013-05-28 Thread Jan Stancek
as PASS. See also: Bug 56881 - MAP_HUGETLB mmap fails for certain sizes https://bugzilla.kernel.org/show_bug.cgi?id=56881 Signed-off-by: Jan Stancek --- tests/misalign.c | 36 ++-- 1 files changed, 30 insertions(+), 6 deletions(-) diff --git a/tests/misalign.c

Re: [Libhugetlbfs-devel] [PATCH] misalign: misaligned length allowed on kernels >= 3.10-rc1

2014-02-06 Thread Jan Stancek
- Original Message - > From: "Jan Stancek" > To: libhugetlbfs-devel@lists.sourceforge.net > Cc: n-horigu...@ah.jp.nec.com, an...@redhat.com > Sent: Tuesday, 28 May, 2013 1:02:20 PM > Subject: [Libhugetlbfs-devel] [PATCH] misalign: misaligned length allowed o

[Libhugetlbfs-devel] [PATCH] simplify slice boundary search

2014-02-19 Thread Jan Stancek
enied { mmap_zero }. This patch simplifies search function, so that it tries mmap 2 huge pages (from each side) around slice boundary. If successful this slice boundary is used for the rest of test. Signed-off-by: Jan Stancek --- tests/mremap-expand-slice-collision.c |

Re: [Libhugetlbfs-devel] [PATCH] libhugetlbfs: segment-based alignment restrictions exist on pseries

2014-02-28 Thread Jan Stancek
ot defined. > > I believe the right fix is to only define this flag when we are on a > natively 32-bit platform. With this change, the malloc testcase pass > again. > > Signed-off-by: Nishanth Aravamudan Tested-by: Jan Stancek I can confirm, that this patch fixes the failu

[Libhugetlbfs-devel] [PATCH] fix plt_extrasz() always returning 0 on ppc64le

2014-11-05 Thread Jan Stancek
links also elf64lppc.o, which defines powerpc specific version of plt_extrasz(). Signed-off-by: Jan Stancek --- Makefile |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index b24bd0f..8cf469f 100644 --- a/Makefile +++ b/Makefile @@ -142,6 +142,9 @@ endif ife

Re: [Libhugetlbfs-devel] [PATCH] put address of zero size file segment above 0x80000000

2014-11-26 Thread Jan Stancek
- Original Message - > From: "Petr Holasek" > To: libhugetlbfs-devel@lists.sourceforge.net > Cc: "Jan Stancek" , "Eric B Munson" , > phola...@redhat.com > Sent: Tuesday, 25 November, 2014 3:00:40 PM > Subject: [PATCH] put ad

Re: [Libhugetlbfs-devel] [PATCH] put address of zero size file segment above 0x80000000

2014-11-27 Thread Jan Stancek
- Original Message - > From: "Jan Stancek" > To: "Petr Holasek" > Cc: libhugetlbfs-devel@lists.sourceforge.net, "Eric B Munson" > > Sent: Wednesday, 26 November, 2014 10:14:42 AM > Subject: Re: [PATCH] put ad

[Libhugetlbfs-devel] [PATCH] lower mmap size of map_high_truncate_2 on 32bit s390

2014-12-05 Thread Jan Stancek
2000, which is more likely to suit address space constraints of 32-bit s390. Signed-off-by: Jan Stancek --- tests/map_high_truncate_2.c |6 +- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/tests/map_high_truncate_2.c b/tests/map_high_truncate_2.c index daabd00..2a