From: chrubis@suse.cz
To: Li Wang <liwang@redhat.com>
Cc: ltp-list@lists.sourceforge.net, liwan@redhat.com,
Li Wang <wangli.ahau@gmail.com>
Subject: Re: [LTP] [PATCH] hugemmap/hugemmap03.c: fix the ppc64 FAILED situation procedure
Date: Thu, 5 Jun 2014 15:36:21 +0200 [thread overview]
Message-ID: <20140605133552.GC13350@rei> (raw)
In-Reply-To: <1401240729-15260-1-git-send-email-liwang@redhat.com>
Hi!
> When testing on ppc64 arch, `./hugemmap03 -s 64` failed message as:
> hugemmap03 1 TFAIL : mmap into high region failed unexpectedly - expect errno=ENOMEM, got: errno=EINVAL(22): Invalid
>
> But it is not the system issue, MMAP(2) Programmer's Manual define the mmap() error return value like:
> EINVAL We don't like addr, length, or offset (e.g., they are too large, or not aligned on a page boundary).
> ENOMEM No memory is available, or the process's maximum number of mappings would have been exceeded.
> So, we should consider the EINVAL return situation on ppc64.
Which kernel version does this happen on?
Can you capture kernel function trace of the test?
We looked at the test (I've got help from Mel Gorman) and we concluded
that the test has nothing to do with hugepages and that it simply checks
that addresses outside of the process space are rejected by the kernel.
Which should return ENOMEM on ppc64 too (because the high address
constant in the test should be high enough for ppc64 too).
--
Cyril Hrubis
chrubis@suse.cz
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
prev parent reply other threads:[~2014-06-05 13:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-28 1:32 [LTP] [PATCH] hugemmap/hugemmap03.c: fix the ppc64 FAILED situation procedure Li Wang
2014-06-05 13:36 ` chrubis [this message]
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=20140605133552.GC13350@rei \
--to=chrubis@suse.cz \
--cc=liwan@redhat.com \
--cc=liwang@redhat.com \
--cc=ltp-list@lists.sourceforge.net \
--cc=wangli.ahau@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox