From: Caspar Zhang <caspar@casparzhang.com>
To: gaowanlong@cn.fujitsu.com
Cc: ltp-list@lists.sourceforge.net
Subject: Re: [LTP] [PATCH 2/5] hugemmap01.c : automatically mount hugetlbfs.
Date: Wed, 28 Dec 2011 14:43:26 +0800 [thread overview]
Message-ID: <4EFABA8E.6050008@casparzhang.com> (raw)
In-Reply-To: <4EFAB5FB.1070907@cn.fujitsu.com>
On 12/28/2011 02:23 PM, Wanlong Gao wrote:
>>> >> + tst_tmpdir();
>>> >> + mount_point = get_tst_tmpdir();
>>> >> + mount_hugetlbfs(mount_point);
>>> >> + hugepage_alloc(1024);
>
> sure, will change to a macro.
I don't think a macro can improve much. You patch reduces the testcase
scalability. A better way is passing hugepage size you want to set via
option:
./hugemmap01 -s 1024
The default value 1024 is not good enough, for x86 systems, it will
require at least 2GB free memory, for other systems, like powerpc, it
will require 16GB free memory. It would be better if you calculate how
much memory the system can be used for hugepages.
One more thing (on libmnt.c side), is there any action if hugepage_alloc
set 0, and is there any action if you want to set 1024 hpages, but only
allocated less amount than that?
Thanks,
Caspar
------------------------------------------------------------------------------
Write once. Port to many.
Get the SDK and tools to simplify cross-platform app development. Create
new or port existing apps to sell to consumers worldwide. Explore the
Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join
http://p.sf.net/sfu/intel-appdev
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
next prev parent reply other threads:[~2011-12-28 7:13 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1322044169-30851-1-git-send-email-gaowanlong@cn.fujitsu.com>
[not found] ` <1322044169-30851-2-git-send-email-gaowanlong@cn.fujitsu.com>
2011-12-28 5:21 ` [LTP] [PATCH 1/5] A library used to mount hugetlbfs automatically Caspar Zhang
2011-12-28 6:02 ` [LTP] [PATCH v2 " Wanlong Gao
2011-12-28 6:55 ` Caspar Zhang
[not found] ` <1322044169-30851-3-git-send-email-gaowanlong@cn.fujitsu.com>
2011-12-28 5:22 ` [LTP] [PATCH 2/5] hugemmap01.c : automatically mount hugetlbfs Caspar Zhang
2011-12-28 6:23 ` Wanlong Gao
2011-12-28 6:43 ` Caspar Zhang [this message]
2011-12-28 6:40 ` [LTP] [PATCH 7/5] hugemmap: change hard-coded page alloc size to a macro Wanlong Gao
[not found] ` <4EF308EF.9010604@cn.fujitsu.com>
[not found] ` <4EF9169B.2000106@cn.fujitsu.com>
2012-01-20 14:40 ` [LTP] [PATCH 0/5] Automatically mount hugetlbfs for hugemmap tests Cyril Hrubis
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=4EFABA8E.6050008@casparzhang.com \
--to=caspar@casparzhang.com \
--cc=gaowanlong@cn.fujitsu.com \
--cc=ltp-list@lists.sourceforge.net \
/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