[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] [PATCH] Add a regression test for get_huge_pages()

2008-07-02 Thread Mel Gorman
This patch adds a regression test for the get_huge_pages() API. It tests
the allocation of two differently sized allocations and confirms that the
region returned is really backed by huge pages. On free, it double checks
the region is actually freed.

Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---

 Makefile |2 +-
 get_huge_pages.c |   55 ++
 run_tests.sh |3 +++
 3 files changed, 59 insertions(+), 1 deletion(-)

diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
libhugetlbfs-userspace-alloc-v3/tests/get_huge_pages.c 
libhugetlbfs-userspace-testcase/tests/get_huge_pages.c
--- libhugetlbfs-userspace-alloc-v3/tests/get_huge_pages.c  2008-07-02 
12:32:02.0 -0700
+++ libhugetlbfs-userspace-testcase/tests/get_huge_pages.c  2008-07-02 
12:30:57.0 -0700
@@ -0,0 +1,55 @@
+/*
+ * libhugetlbfs - Easy use of Linux hugepages
+ * Copyright (C) 2005-2006 David Gibson & Adam Litke, IBM Corporation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+#include "hugetests.h"
+
+void test_get_huge_pages(int num_largepages)
+{
+   int err;
+   long hpage_size = check_hugepagesize();
+   void *p = get_huge_pages(num_largepages * hpage_size, GHP_DEFAULT);
+   if (p == NULL)
+   FAIL("get_huge_pages() for %d hugepages", num_largepages);
+
+   memset(p, 1, hpage_size);
+
+   err = test_addr_huge(p + (num_largepages -1) * hpage_size);
+   if (err != 1)
+   FAIL("Returned page is not hugepage");
+
+   free_huge_pages(p);
+   err = test_addr_huge(p);
+   if (err == 1)
+   FAIL("hugepage was not correctly freed");
+}
+
+int main(int argc, char *argv[])
+{
+   test_init(argc, argv);
+   test_get_huge_pages(1);
+   test_get_huge_pages(4);
+
+   PASS();
+}
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
libhugetlbfs-userspace-alloc-v3/tests/Makefile 
libhugetlbfs-userspace-testcase/tests/Makefile
--- libhugetlbfs-userspace-alloc-v3/tests/Makefile  2008-05-16 
13:43:11.0 -0700
+++ libhugetlbfs-userspace-testcase/tests/Makefile  2008-07-02 
12:22:54.0 -0700
@@ -7,7 +7,7 @@ LIB_TESTS = gethugepagesize test_root fi
truncate_reserve_wraparound truncate_sigbus_versus_oom \
map_high_truncate_2 truncate_above_4GB direct \
misaligned_offset brk_near_huge task-size-overrun stack_grow_into_huge \
-   counters quota heap-overflow
+   counters quota heap-overflow get_huge_pages
 LIB_TESTS_64 = straddle_4GB huge_at_4GB_normal_below \
huge_below_4GB_normal_above
 NOLIB_TESTS = malloc malloc_manysmall dummy heapshrink
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
libhugetlbfs-userspace-alloc-v3/tests/run_tests.sh 
libhugetlbfs-userspace-testcase/tests/run_tests.sh
--- libhugetlbfs-userspace-alloc-v3/tests/run_tests.sh  2008-05-16 
13:43:11.0 -0700
+++ libhugetlbfs-userspace-testcase/tests/run_tests.sh  2008-07-02 
12:27:50.0 -0700
@@ -207,6 +207,9 @@ functional_tests () {
 run_test truncate_reserve_wraparound
 run_test truncate_sigbus_versus_oom
 
+# Test direct allocation API
+run_test get_huge_pages
+
 # Test hugetlbfs filesystem quota accounting
 run_test quota
 

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


Re: [Libhugetlbfs-devel] [PATCH] Add a regression test for get_huge_pages()

2008-07-02 Thread Jon Tollefson
Mel Gorman wrote:
> This patch adds a regression test for the get_huge_pages() API. It tests
> the allocation of two differently sized allocations and confirms that the
> region returned is really backed by huge pages. On free, it double checks
> the region is actually freed.
>
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
> ---
>
>  Makefile |2 +-
>  get_huge_pages.c |   55 
> ++
>  run_tests.sh |3 +++
>  3 files changed, 59 insertions(+), 1 deletion(-)
>
> diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
> libhugetlbfs-userspace-alloc-v3/tests/get_huge_pages.c 
> libhugetlbfs-userspace-testcase/tests/get_huge_pages.c
> --- libhugetlbfs-userspace-alloc-v3/tests/get_huge_pages.c2008-07-02 
> 12:32:02.0 -0700
> +++ libhugetlbfs-userspace-testcase/tests/get_huge_pages.c2008-07-02 
> 12:30:57.0 -0700
> @@ -0,0 +1,55 @@
> +/*
> + * libhugetlbfs - Easy use of Linux hugepages
> + * Copyright (C) 2005-2006 David Gibson & Adam Litke, IBM Corporation.
> + *
> + * This library is free software; you can redistribute it and/or
> + * modify it under the terms of the GNU Lesser General Public License
> + * as published by the Free Software Foundation; either version 2.1 of
> + * the License, or (at your option) any later version.
> + *
> + * This library is distributed in the hope that it will be useful, but
> + * WITHOUT ANY WARRANTY; without even the implied warranty of
> + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
> + * Lesser General Public License for more details.
> + *
> + * You should have received a copy of the GNU Lesser General Public
> + * License along with this library; if not, write to the Free Software
> + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
> + */
> +#include 
> +#include 
> +#include 
> +#include 
> +
> +#include 
> +
> +#include "hugetests.h"
> +
> +void test_get_huge_pages(int num_largepages)
> +{
> + int err;
> + long hpage_size = check_hugepagesize();
> + void *p = get_huge_pages(num_largepages * hpage_size, GHP_DEFAULT);
> + if (p == NULL)
> + FAIL("get_huge_pages() for %d hugepages", num_largepages);
> +
> + memset(p, 1, hpage_size);
> +
> + err = test_addr_huge(p + (num_largepages -1) * hpage_size);
> + if (err != 1)
> + FAIL("Returned page is not hugepage");
> +
> + free_huge_pages(p);
> + err = test_addr_huge(p);
> + if (err == 1)
> + FAIL("hugepage was not correctly freed");
> +}
> +
> +int main(int argc, char *argv[])
> +{
> + test_init(argc, argv);
>   
Please add a call here to verify that the required number of pages are
available for the test.

check_free_huge_pages(4);


> + test_get_huge_pages(1);
> + test_get_huge_pages(4);
> +
> + PASS();
> +}
> diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
> libhugetlbfs-userspace-alloc-v3/tests/Makefile 
> libhugetlbfs-userspace-testcase/tests/Makefile
> --- libhugetlbfs-userspace-alloc-v3/tests/Makefile2008-05-16 
> 13:43:11.0 -0700
> +++ libhugetlbfs-userspace-testcase/tests/Makefile2008-07-02 
> 12:22:54.0 -0700
> @@ -7,7 +7,7 @@ LIB_TESTS = gethugepagesize test_root fi
>   truncate_reserve_wraparound truncate_sigbus_versus_oom \
>   map_high_truncate_2 truncate_above_4GB direct \
>   misaligned_offset brk_near_huge task-size-overrun stack_grow_into_huge \
> - counters quota heap-overflow
> + counters quota heap-overflow get_huge_pages
>  LIB_TESTS_64 = straddle_4GB huge_at_4GB_normal_below \
>   huge_below_4GB_normal_above
>  NOLIB_TESTS = malloc malloc_manysmall dummy heapshrink
> diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
> libhugetlbfs-userspace-alloc-v3/tests/run_tests.sh 
> libhugetlbfs-userspace-testcase/tests/run_tests.sh
> --- libhugetlbfs-userspace-alloc-v3/tests/run_tests.sh2008-05-16 
> 13:43:11.0 -0700
> +++ libhugetlbfs-userspace-testcase/tests/run_tests.sh2008-07-02 
> 12:27:50.0 -0700
> @@ -207,6 +207,9 @@ functional_tests () {
>  run_test truncate_reserve_wraparound
>  run_test truncate_sigbus_versus_oom
>
> +# Test direct allocation API
> +run_test get_huge_pages
> +
>  # Test hugetlbfs filesystem quota accounting
>  run_test quota


-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] [PATCH] Add a regression test for get_huge_pages() V2

2008-07-02 Thread Mel Gorman
This patch adds a regression test for the get_huge_pages() API. It tests
the allocation of two differently sized allocations and confirms that the
region returned is really backed by huge pages. On free, it double checks
the region is actually freed.

Changelog since V1
  o Verify sufficient pages are in the pool to run the test

Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---

 Makefile |2 +-
 get_huge_pages.c |   56 ++
 run_tests.sh |3 +++
 3 files changed, 60 insertions(+), 1 deletion(-)


diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
libhugetlbfs-userspace-alloc-v3/tests/get_huge_pages.c 
libhugetlbfs-userspace-testcase/tests/get_huge_pages.c
--- libhugetlbfs-userspace-alloc-v3/tests/get_huge_pages.c  2008-07-02 
12:32:02.0 -0700
+++ libhugetlbfs-userspace-testcase/tests/get_huge_pages.c  2008-07-02 
14:33:15.0 -0700
@@ -0,0 +1,56 @@
+/*
+ * libhugetlbfs - Easy use of Linux hugepages
+ * Copyright (C) 2005-2006 David Gibson & Adam Litke, IBM Corporation.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ */
+#include 
+#include 
+#include 
+#include 
+
+#include 
+
+#include "hugetests.h"
+
+void test_get_huge_pages(int num_hugepages)
+{
+   int err;
+   long hpage_size = check_hugepagesize();
+   void *p = get_huge_pages(num_hugepages * hpage_size, GHP_DEFAULT);
+   if (p == NULL)
+   FAIL("get_huge_pages() for %d hugepages", num_hugepages);
+
+   memset(p, 1, hpage_size);
+
+   err = test_addr_huge(p + (num_hugepages -1) * hpage_size);
+   if (err != 1)
+   FAIL("Returned page is not hugepage");
+
+   free_huge_pages(p);
+   err = test_addr_huge(p);
+   if (err == 1)
+   FAIL("hugepage was not correctly freed");
+}
+
+int main(int argc, char *argv[])
+{
+   test_init(argc, argv);
+   check_free_huge_pages(4);
+   test_get_huge_pages(1);
+   test_get_huge_pages(4);
+
+   PASS();
+}
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
libhugetlbfs-userspace-alloc-v3/tests/Makefile 
libhugetlbfs-userspace-testcase/tests/Makefile
--- libhugetlbfs-userspace-alloc-v3/tests/Makefile  2008-05-16 
13:43:11.0 -0700
+++ libhugetlbfs-userspace-testcase/tests/Makefile  2008-07-02 
12:22:54.0 -0700
@@ -7,7 +7,7 @@ LIB_TESTS = gethugepagesize test_root fi
truncate_reserve_wraparound truncate_sigbus_versus_oom \
map_high_truncate_2 truncate_above_4GB direct \
misaligned_offset brk_near_huge task-size-overrun stack_grow_into_huge \
-   counters quota heap-overflow
+   counters quota heap-overflow get_huge_pages
 LIB_TESTS_64 = straddle_4GB huge_at_4GB_normal_below \
huge_below_4GB_normal_above
 NOLIB_TESTS = malloc malloc_manysmall dummy heapshrink
diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
libhugetlbfs-userspace-alloc-v3/tests/run_tests.sh 
libhugetlbfs-userspace-testcase/tests/run_tests.sh
--- libhugetlbfs-userspace-alloc-v3/tests/run_tests.sh  2008-05-16 
13:43:11.0 -0700
+++ libhugetlbfs-userspace-testcase/tests/run_tests.sh  2008-07-02 
12:27:50.0 -0700
@@ -207,6 +207,9 @@ functional_tests () {
 run_test truncate_reserve_wraparound
 run_test truncate_sigbus_versus_oom
 
+# Test direct allocation API
+run_test get_huge_pages
+
 # Test hugetlbfs filesystem quota accounting
 run_test quota
 

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] [PATCH] Verify the hugepage counters are sane after each test

2008-07-02 Thread Mel Gorman
The recent bug with private-reserves should have been caught during 64-bit
testing but wasn't because a manual verification of the meminfo file was
necessary and the tests otherwise seemed fine. This patch verifies the
counters are the same before and after each test in the regression suite
and aborts the test if it finds anything suspicious.

Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>
---
 run_tests.sh |   21 +
 1 file changed, 21 insertions(+)

diff -rup -X /usr/src/patchset-0.6/bin//dontdiff 
libhugetlbfs-userspace-testcase/tests/run_tests.sh 
libhugetlbfs-verify-counters/tests/run_tests.sh
--- libhugetlbfs-userspace-testcase/tests/run_tests.sh  2008-07-02 
12:27:50.0 -0700
+++ libhugetlbfs-verify-counters/tests/run_tests.sh 2008-07-02 
14:37:27.0 -0700
@@ -42,9 +42,30 @@ run_test_bits () {
 }
 
 run_test () {
+COUNTERS_BEFORE=`grep Huge /proc/meminfo`
 for bits in $WORDSIZES; do
run_test_bits $bits "$@"
 done
+COUNTERS_AFTER=`grep Huge /proc/meminfo`
+
+# HUGETLB_SHARE deliberately consumes pages between tests. Do not
+# trigger a false positive report by comparing every other counter
+# when the test is a HUGETLB_SHARE test
+if [ "$COUNTERS_BEFORE" != "$COUNTERS_AFTER" ] && [ "$1" = 
"HUGETLB_SHARE=1" ]; then
+COUNTERS_BEFORE=`echo "$COUNTERS_BEFORE" | grep -v HugePages_Free`
+COUNTERS_AFTER=`echo "$COUNTERS_AFTER" | grep -v HugePages_Free`
+fi
+
+# Check if counters got corrupted during the test
+if [ "$COUNTERS_BEFORE" != "$COUNTERS_AFTER" ]; then
+echo "run_tests.sh: Unexpected change in huge page counters after -$1-"
+echo === Before
+echo "$COUNTERS_BEFORE"
+echo === After
+echo "$COUNTERS_AFTER"
+echo Aborting...
+exit 1
+fi
 }
 
 skip_test () {

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


Re: [Libhugetlbfs-devel] [PATCH] Add a regression test for get_huge_pages() V2

2008-07-02 Thread David Gibson
On Wed, Jul 02, 2008 at 10:36:24PM +0100, Mel Gorman wrote:
> This patch adds a regression test for the get_huge_pages() API. It tests
> the allocation of two differently sized allocations and confirms that the
> region returned is really backed by huge pages. On free, it double checks
> the region is actually freed.
> 
> Changelog since V1
>   o Verify sufficient pages are in the pool to run the test
> 
> Signed-off-by: Mel Gorman <[EMAIL PROTECTED]>

Acked-by: David Gibson <[EMAIL PROTECTED]>

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


Re: [Libhugetlbfs-devel] [PATCH] Verify the hugepage counters are sane after each test

2008-07-02 Thread David Gibson
On Thu, Jul 03, 2008 at 03:18:29AM +0100, Mel Gorman wrote:
> The recent bug with private-reserves should have been caught during 64-bit
> testing but wasn't because a manual verification of the meminfo file was
> necessary and the tests otherwise seemed fine. This patch verifies the
> counters are the same before and after each test in the regression suite
> and aborts the test if it finds anything suspicious.

Hrm.  Given that typically we continue the rest of the tests on
failure, I don't really like the idea of aborting.  I'd instead treat
this as a new sort of test result, distinct from PASS, FAIL and
CONFIG.

Which reminds me, I really should dust off and submit by patch to
print a summary of the number of passes/failures/etc. at the end of
the run.

-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


Re: [Libhugetlbfs-devel] [PATCH] Verify the hugepage counters are sane after each test

2008-07-02 Thread Mel Gorman
On (03/07/08 13:32), David Gibson didst pronounce:
> On Thu, Jul 03, 2008 at 03:18:29AM +0100, Mel Gorman wrote:
> > The recent bug with private-reserves should have been caught during 64-bit
> > testing but wasn't because a manual verification of the meminfo file was
> > necessary and the tests otherwise seemed fine. This patch verifies the
> > counters are the same before and after each test in the regression suite
> > and aborts the test if it finds anything suspicious.
> 
> Hrm.  Given that typically we continue the rest of the tests on
> failure, I don't really like the idea of aborting.  I'd instead treat
> this as a new sort of test result, distinct from PASS, FAIL and
> CONFIG.
> 

What would be your suggestion? To me, it's a chronic kernel failure that
makes all further tests meaningless. I'd hate for it to be accidently
missed.

> print a summary of the number of passes/failures/etc. at the end of
> the run.
> 

Although I like this idea either way.

-- 
Mel Gorman
Part-time Phd Student  Linux Technology Center
University of Limerick IBM Dublin Software Lab

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


Re: [Libhugetlbfs-devel] [PATCH] Verify the hugepage counters are sane after each test

2008-07-02 Thread David Gibson
On Thu, Jul 03, 2008 at 05:41:59AM +0100, Mel Gorman wrote:
> On (03/07/08 13:32), David Gibson didst pronounce:
> > On Thu, Jul 03, 2008 at 03:18:29AM +0100, Mel Gorman wrote:
> > > The recent bug with private-reserves should have been caught during 64-bit
> > > testing but wasn't because a manual verification of the meminfo file was
> > > necessary and the tests otherwise seemed fine. This patch verifies the
> > > counters are the same before and after each test in the regression suite
> > > and aborts the test if it finds anything suspicious.
> > 
> > Hrm.  Given that typically we continue the rest of the tests on
> > failure, I don't really like the idea of aborting.  I'd instead treat
> > this as a new sort of test result, distinct from PASS, FAIL and
> > CONFIG.
> > 
> 
> What would be your suggestion? To me, it's a chronic kernel failure that
> makes all further tests meaningless. I'd hate for it to be accidently
> missed.

Eh.  Same's true of a testcase SIGKILLed due to a kernel oops.

> > print a summary of the number of passes/failures/etc. at the end of
> > the run.
> > 
> 
> Although I like this idea either way.

Well, here you go then.

libhugetlbfs: Print summary of testsuite results

This patch adds some tracking to the run_tests script which counts the
total number of tests, and the number of passes, failures and other
results.  This is printed as a summary once the script is finished, so
you can see at a glance if the tests ran clean or not.

Signed-off-by: David Gibson <[EMAIL PROTECTED]>

---
 tests/run_tests.sh |   41 -
 1 file changed, 40 insertions(+), 1 deletion(-)

Index: libhugetlbfs/tests/run_tests.sh
===
--- libhugetlbfs.orig/tests/run_tests.sh2008-07-03 15:15:46.0 
+1000
+++ libhugetlbfs/tests/run_tests.sh 2008-07-03 15:15:48.0 +1000
@@ -7,6 +7,17 @@ unset HUGETLB_MORECORE
 
 ENV=/usr/bin/env
 
+for BITS in 32 64; do
+tot_tests[$BITS]=0
+tot_tests[$BITS]=0
+tot_pass[$BITS]=0
+tot_fail[$BITS]=0
+tot_config[$BITS]=0
+tot_signal[$BITS]=0
+tot_strange[$BITS]=0
+tot_skip[$BITS]=0
+done
+
 function free_hpages() {
H=$(grep 'HugePages_Free:' /proc/meminfo | cut -f2 -d:)
[ -z "$H" ] && H=0
@@ -36,8 +47,22 @@ run_test_bits () {
 shift
 
 if [ -d obj$BITS ]; then
+   tot_tests[$BITS]=$[tot_tests[$BITS] + 1]
echo -n "$@ ($BITS):"
-   PATH="obj$BITS:$PATH" 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:../obj$BITS:obj$BITS" $ENV "$@"
+   if PATH="obj$BITS:$PATH" 
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:../obj$BITS:obj$BITS" $ENV "$@"; then
+   tot_pass[$BITS]=$[tot_pass[$BITS] + 1]
+   else
+   rc="$?"
+   if [ "$rc" == "1" ]; then
+   tot_config[$BITS]=$[tot_config[$BITS] + 1]
+elif [ "$rc" == "2" ]; then
+   tot_fail[$BITS]=$[tot_fail[$BITS] + 1]
+   elif [ "$rc" -gt 127 ]; then
+   tot_signal[$BITS]=$[tot_signal[$BITS] + 1]
+else
+   tot_strange[$BITS]=$[tot_strange[$BITS] + 1]
+fi
+   fi
 fi
 }
 
@@ -49,6 +74,9 @@ run_test () {
 
 skip_test () {
 echo "$@:  SKIPPED"
+for bits in $WORDSIZES; do
+   tot_skip=$[tot_skip + 1]
+done
 }
 
 preload_test () {
@@ -281,3 +309,14 @@ for set in $TESTSETS; do
;;
 esac
 done
+
+echo -e "** TEST SUMMARY"
+echo -e "*  32-bit\t64-bit"
+echo -e "* Total testcases:${tot_tests[32]}\t${tot_tests[64]}"
+echo -e "* Skipped:${tot_skip[32]}\t${tot_skip[64]}"
+echo -e "*PASS:${tot_pass[32]}\t${tot_pass[64]}"
+echo -e "*FAIL:${tot_fail[32]}\t${tot_fail[64]}"
+echo -e "*Killed by signal: ${tot_signal[32]}\t${tot_signal[64]}"
+echo -e "*   Bad configuration:${tot_config[32]}\t${tot_config[64]}"
+echo -e "* Strange test result:${tot_strange[32]}\t${tot_strange[64]}"
+echo -e "**"



-- 
David Gibson| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au  | minimalist, thank you.  NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel


[Libhugetlbfs-devel] (no subject)

2008-07-02 Thread 钟文辉
各位老总:您们好!

诚祝:您们在2008年里;有鼠不尽的快乐!鼠不尽的收获!鼠不尽的钞票!
 
鼠不尽的幸福!鼠不尽的美满生活!愿: 您们阖家欢乐!幸福安康!

我公司可以长期提供:出口报关单,核销单,等等一系列手续;代理:出口

报关,商检,境内外运输..等等;还可以代办:出口欧盟许可证,欧盟产地证;

并且还有(广州国际贸易交易会)的摊位可以转让;价格特别优惠;有意者请来邮件

或来电联系。谢谢合作!
 
  电话:0755-81153047。
 
  传真:0755-81172940。
 
  手机:15817477278。
 
  联系人:钟文辉。
 
   
  电子邮箱:[EMAIL PROTECTED]  


此致:
 

敬礼!

-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08___
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel