1 | -B /usr/share/libhugetlbfs/ -Wl,--hugetlbfs-link=B |
1 | -B /usr/share/libhugetlbfs/ -tl -Wl,--hugetlbfs-link=BDT |
1 2 3 4 5 6 7 8 | wmb@p5sys:~> cc -O3 -m64 -B /usr/share/libhugetlbfs/ -Wl,--hugetlbfs-link=B \ copy_arrays.c -o copy_arrays-lp wmb@p5sys:~> time ./copy_arrays-lp real 0m6.495s user 0m2.558s sys 0m1.648s |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | wmb@p5sys:~> time HUGETLB_MORECORE=yes ./copy_arrays-lp Killed <---- Note the "Killed" message real 0m4.084s user 0m1.669s sys 0m0.365s wmb@p5sys:~> su #> echo 300 > /proc/sys/vm/nr_hugepages #> exit wmb@p5sys:~> time HUGETLB_MORECORE=yes ./copy_arrays-lp real 0m6.943s user 0m3.600s sys 0m0.473s |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | joe@p5sys:~> time HUGETLB_MORECORE=yes ./copy_arrays-lp libhugetlbfs: ERROR: mkstemp() failed: Permission denied real 0m6.795s user 0m2.267s sys 0m2.656s joe@p5sys:~> time HUGETLB_MORECORE=yes LD_PRELOAD=libhugetlbfs.so ./copy_arrays libhugetlbfs: ERROR: mkstemp() failed: Permission denied libhugetlbfs: ERROR: Couldn't open hugetlbfs file for morecore real 0m6.807s user 0m2.133s sys 0m2.660s |
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |