move_pages fails on 2 node system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

i have come across a bug(likely) when ran move_pages test for 2 node system.
below patch fixes the issue.


diff --git a/test/move_pages.c b/test/move_pages.c
index 70c6556..bab152d 100755
--- a/test/move_pages.c
+++ b/test/move_pages.c
@@ -29,6 +29,7 @@ int main(int argc, char **argv)
        pagesize = getpagesize();

        nr_nodes = numa_max_node();
+       nr_nodes = nr_nodes + 1;

        if (nr_nodes < 2) {
                printf("A minimum of 2 nodes is required for this test.\n");
gkulkarni@mypc>numactl-2.0.9>>




thanks
Ganapat
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux