nareshkamboju

Hikey OE LKFT libhugetlbfs

Mar 16th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.36 KB | None | 0 0
  1. hikey:/home/linaro/libhugetlbfs-2.20/tests# echo 200 > /proc/sys/vm/nr_hugepages
  2. hikey:/home/linaro/libhugetlbfs-2.20/tests# mkdir -p /mnt/hugetlb/
  3. hikey:/home/linaro/libhugetlbfs-2.20/tests# mount -t hugetlbfs hugetlbfs /mnt/hugetlb/
  4. hikey:/home/linaro/libhugetlbfs-2.20/tests# mount
  5. /dev/mmcblk0p9 on / type ext4 (rw,relatime,data=ordered)
  6. sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
  7. proc on /proc type proc (rw,relatime)
  8. devtmpfs on /dev type devtmpfs (rw,nosuid,size=933744k,nr_inodes=233436,mode=755)
  9. tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
  10. devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
  11. tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)
  12. tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
  13. cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/lib/systemd/systemd-cgroups-agent,name=systemd)
  14. pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
  15. cgroup on /sys/fs/cgroup/schedtune type cgroup (rw,nosuid,nodev,noexec,relatime,schedtune)
  16. cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
  17. cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
  18. cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
  19. cgroup on /sys/fs/cgroup/debug type cgroup (rw,nosuid,nodev,noexec,relatime,debug)
  20. cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
  21. cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
  22. cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
  23. cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
  24. hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
  25. mqueue on /dev/mqueue type mqueue (rw,relatime)
  26. debugfs on /sys/kernel/debug type debugfs (rw,relatime)
  27. tmpfs on /tmp type tmpfs (rw)
  28. configfs on /sys/kernel/config type configfs (rw,relatime)
  29. fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
  30. tmpfs on /var/volatile type tmpfs (rw,relatime)
  31. tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=200280k,mode=700,uid=1000,gid=1000)
  32. hugetlbfs on /mnt/hugetlb type hugetlbfs (rw,relatime)
  33. hikey:/home/linaro/libhugetlbfs-2.20/tests# ./run_tests.py -b 64
  34. zero_filesize_segment (2M: 64): PASS
  35. test_root (2M: 64): PASS
  36. meminfo_nohuge (2M: 64): PASS
  37. gethugepagesize (2M: 64): PASS
  38. gethugepagesizes (2M: 64): PASS
  39. HUGETLB_VERBOSE=1 empty_mounts (2M: 64): PASS
  40. HUGETLB_VERBOSE=1 large_mounts (2M: 64): PASS
  41. find_path (2M: 64): PASS
  42. unlinked_fd (2M: 64): PASS
  43. readback (2M: 64): PASS
  44. truncate (2M: 64): PASS
  45. shared (2M: 64): PASS
  46. mprotect (2M: 64): PASS
  47. mlock (2M: 64): PASS
  48. misalign (2M: 64): PASS
  49. fallocate_basic.sh (2M: 64): PASS
  50. fallocate_align.sh (2M: 64): PASS
  51. ptrace-write-hugepage (2M: 64): PASS
  52. icache-hygiene (2M: 64): PASS
  53. slbpacaflush (2M: 64): PASS (inconclusive)
  54. straddle_4GB_static (2M: 64): PASS
  55. huge_at_4GB_normal_below_static (2M: 64): PASS
  56. huge_below_4GB_normal_above_static (2M: 64): PASS
  57. map_high_truncate_2 (2M: 64): PASS
  58. misaligned_offset (2M: 64): PASS (inconclusive)
  59. truncate_above_4GB (2M: 64): PASS
  60. brk_near_huge (2M: 64): brk_near_huge: malloc.c:2403: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && p
  61. rev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
  62.  
  63. task-size-overrun (2M: 64): PASS
  64. stack_grow_into_huge (2M: 64): [ 1211.386444] pgd = ffffffc074c24000
  65. [ 1211.390027] [7fc29eda40] *pgd=0000000074dff003PASS
  66. corrupt-by-cow-opt (2M: 64): PASS
  67. noresv-preserve-resv-page (2M: 64): PASS
  68. noresv-regarded-as-resv (2M: 64): PASS
  69. readahead_reserve.sh (2M: 64): PASS
  70. madvise_reserve.sh (2M: 64): PASS
  71. fadvise_reserve.sh (2M: 64): PASS
  72. mremap-expand-slice-collision.sh (2M: 64): PASS
  73. mremap-fixed-normal-near-huge.sh (2M: 64): PASS
  74. mremap-fixed-huge-near-normal.sh (2M: 64): PASS
  75. Traceback (most recent call last):
  76. File "./run_tests.py", line 719, in <module>
  77. main()
  78. File "./run_tests.py", line 713, in main
  79. if "func" in testsets: functional_tests()
  80. File "./run_tests.py", line 556, in functional_tests
  81. do_shm_test("shm-perms", 64*1024*1024)
  82. File "./run_tests.py", line 488, in do_shm_test
  83. tmp = setup_shm_sysctl(limit)
  84. File "./run_tests.py", line 461, in setup_shm_sysctl
  85. fh = open(f, "r")
  86. IOError: [Errno 2] No such file or directory: '/proc/sys/kernel/shmmax'
  87. hikey:/home/linaro/libhugetlbfs-2.20/tests# ipcs -lm
  88.  
  89. unable to fetch shared memory limits
  90.  
  91. hikey:/home/linaro/libhugetlbfs-2.20/tests# ipcs -lm
  92.  
  93. unable to fetch shared memory limits
  94. do_test("map_high_truncate_2")
  95. do_test("misaligned_offset")
  96. do_test("truncate_above_4GB")
  97. do_test("brk_near_huge")
  98. do_test("task-size-overrun")
  99. do_test_with_rlimit(resource.RLIMIT_STACK, -1, "stack_grow_into_huge")
  100. do_test("corrupt-by-cow-opt")
  101. do_test("noresv-preserve-resv-page")
  102. do_test("noresv-regarded-as-resv")
  103.  
  104. if dangerous == 1:
  105. do_test("readahead_reserve")
  106. do_test("madvise_reserve")
  107. do_test("fadvise_reserve")
  108. do_test("mremap-expand-slice-collision")
  109. do_test("mremap-fixed-normal-near-huge")
  110. do_test("mremap-fixed-huge-near-normal")
  111. else:
  112. do_test("readahead_reserve.sh")
  113. do_test("madvise_reserve.sh")
  114. do_test("fadvise_reserve.sh")
  115. do_test("mremap-expand-slice-collision.sh")
  116. do_test("mremap-fixed-normal-near-huge.sh")
  117. do_test("mremap-fixed-huge-near-normal.sh")
  118. #do_shm_test("shm-perms", 64*1024*1024)
  119.  
  120. # Tests requiring an active mount and hugepage COW
  121. do_test("private")
  122. do_test("fork-cow")
  123. do_test("direct")
  124. do_test("malloc")
  125. do_test("malloc", LD_PRELOAD="libhugetlbfs.so", HUGETLB_MORECORE="yes")
  126. do_test("malloc", LD_PRELOAD="libhugetlbfs.so", HUGETLB_MORECORE="yes",
  127. HUGETLB_RESTRICT_EXE="unknown:none")
  128. do_test("malloc", LD_PRELOAD="libhugetlbfs.so", HUGETLB_MORECORE="yes",
  129. HUGETLB_RESTRICT_EXE="unknown:malloc")
  130. do_test("malloc_manysmall")
  131. do_test("malloc_manysmall", LD_PRELOAD="libhugetlbfs.so",
  132. HUGETLB_MORECORE="yes")
  133. do_test("heapshrink")
  134. do_test("heapshrink", LD_PRELOAD="libheapshrink.so")
  135. do_test("heapshrink", LD_PRELOAD="libhugetlbfs.so", HUGETLB_MORECORE="yes")
  136. do_test("heapshrink", LD_PRELOAD="libhugetlbfs.so libheapshrink.so",
  137. HUGETLB_MORECORE="yes")
  138. do_test("heapshrink", LD_PRELOAD="libheapshrink.so", HUGETLB_MORECORE="yes",
  139. HUGETLB_MORECORE_SHRINK="yes")
  140. do_test("heapshrink", LD_PRELOAD="libhugetlbfs.so libheapshrink.so",
  141. HUGETLB_MORECORE="yes", HUGETLB_MORECORE_SHRINK="yes")
  142. do_test("heap-overflow", HUGETLB_VERBOSE="1", HUGETLB_MORECORE="yes")
  143. hikey:/home/linaro/libhugetlbfs-2.20/tests# ./run_tests.py -b 64
  144. zero_filesize_segment (2M: 64): PASS
  145. test_root (2M: 64): PASS
  146. meminfo_nohuge (2M: 64): PASS
  147. gethugepagesize (2M: 64): PASS
  148. gethugepagesizes (2M: 64): PASS
  149. HUGETLB_VERBOSE=1 empty_mounts (2M: 64): PASS
  150. HUGETLB_VERBOSE=1 large_mounts (2M: 64): PASS
  151. find_path (2M: 64): PASS
  152. unlinked_fd (2M: 64): PASS
  153. readback (2M: 64): PASS
  154. truncate (2M: 64): PASS
  155. shared (2M: 64): PASS
  156. mprotect (2M: 64): PASS
  157. mlock (2M: 64): PASS
  158. misalign (2M: 64): PASS
  159. fallocate_basic.sh (2M: 64): PASS
  160. fallocate_align.sh (2M: 64): PASS
  161. ptrace-write-hugepage (2M: 64): PASS
  162. icache-hygiene (2M: 64): PASS
  163. slbpacaflush (2M: 64): PASS (inconclusive)
  164. straddle_4GB_static (2M: 64): PASS
  165. huge_at_4GB_normal_below_static (2M: 64): PASS
  166. huge_below_4GB_normal_above_static (2M: 64): PASS
  167. map_high_truncate_2 (2M: 64): PASS
  168. misaligned_offset (2M: 64): PASS (inconclusive)
  169. truncate_above_4GB (2M: 64): PASS
  170. brk_near_huge (2M: 64): brk_near_huge: malloc.c:2403: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && p
  171. rev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
  172.  
  173. task-size-overrun (2M: 64): PASS
  174. stack_grow_into_huge (2M: 64): [ 2222.101013] pgd = ffffffc074684000
  175. [ 2222.106334] [7fde352050] *pgd=0000000074198003PASS
  176. corrupt-by-cow-opt (2M: 64): PASS
  177. noresv-preserve-resv-page (2M: 64): PASS
  178. noresv-regarded-as-resv (2M: 64): PASS
  179. readahead_reserve.sh (2M: 64): PASS
  180. madvise_reserve.sh (2M: 64): PASS
  181. fadvise_reserve.sh (2M: 64): PASS
  182. mremap-expand-slice-collision.sh (2M: 64): PASS
  183. mremap-fixed-normal-near-huge.sh (2M: 64): PASS
  184. mremap-fixed-huge-near-normal.sh (2M: 64): PASS
  185. private (2M: 64): PASS
  186. fork-cow (2M: 64): PASS
  187. direct (2M: 64): Bad configuration: Failed to open direct-IO file: Invalid argument
  188. malloc (2M: 64): PASS
  189. LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes malloc (2M: 64): PASS
  190. LD_PRELOAD=libhugetlbfs.so HUGETLB_RESTRICT_EXE=unknown:none HUGETLB_MORECORE=yes malloc (2M: 64): PASS
  191. LD_PRELOAD=libhugetlbfs.so HUGETLB_RESTRICT_EXE=unknown:malloc HUGETLB_MORECORE=yes malloc (2M: 64): PASS
  192. malloc_manysmall (2M: 64): PASS
  193. LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes malloc_manysmall (2M: 64): PASS
  194. heapshrink (2M: 64): PASS
  195. LD_PRELOAD=libheapshrink.so heapshrink (2M: 64): PASS
  196. LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS
  197. LD_PRELOAD=libhugetlbfs.so libheapshrink.so HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS
  198. LD_PRELOAD=libheapshrink.so HUGETLB_MORECORE_SHRINK=yes HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS (inconclusive)
  199. LD_PRELOAD=libhugetlbfs.so libheapshrink.so HUGETLB_MORECORE_SHRINK=yes HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS
  200. HUGETLB_VERBOSE=1 HUGETLB_MORECORE=yes heap-overflow (2M: 64): PASS
  201. HUGETLB_VERBOSE=0 linkhuge_nofd (2M: 64): PASS
  202. LD_PRELOAD=libhugetlbfs.so HUGETLB_VERBOSE=0 linkhuge_nofd (2M: 64): PASS
  203. linkhuge (2M: 64): PASS
  204. LD_PRELOAD=libhugetlbfs.so linkhuge (2M: 64): PASS
  205. linkhuge_rw (2M: 64): [ 2225.424350] pgd = ffffffc072e3a000
  206. [ 2225.429875] [004121f0] *pgd=0000000072879003[ 2225.453321] pgd = ffffffc072e3a000
  207. [ 2225.457190] [004021f0] *pgd=00000000752ed003[ 2225.465981] pgd = ffffffc072e3a000
  208. hikey:/home/linaro/libhugetlbfs-2.20/tests# ./run_tests.py -b 64
  209. zero_filesize_segment (2M: 64): PASS
  210. test_root (2M: 64): PASS
  211. meminfo_nohuge (2M: 64): PASS
  212. gethugepagesize (2M: 64): PASS
  213. gethugepagesizes (2M: 64): PASS
  214. HUGETLB_VERBOSE=1 empty_mounts (2M: 64): PASS
  215. HUGETLB_VERBOSE=1 large_mounts (2M: 64): PASS
  216. find_path (2M: 64): PASS
  217. unlinked_fd (2M: 64): PASS
  218. readback (2M: 64): PASS
  219. truncate (2M: 64): PASS
  220. shared (2M: 64): PASS
  221. mprotect (2M: 64): PASS
  222. mlock (2M: 64): PASS
  223. misalign (2M: 64): PASS
  224. fallocate_basic.sh (2M: 64): PASS
  225. fallocate_align.sh (2M: 64): PASS
  226. ptrace-write-hugepage (2M: 64): PASS
  227. icache-hygiene (2M: 64): PASS
  228. slbpacaflush (2M: 64): PASS (inconclusive)
  229. straddle_4GB_static (2M: 64): PASS
  230. huge_at_4GB_normal_below_static (2M: 64): PASS
  231. huge_below_4GB_normal_above_static (2M: 64): PASS
  232. map_high_truncate_2 (2M: 64): PASS
  233. misaligned_offset (2M: 64): PASS (inconclusive)
  234. truncate_above_4GB (2M: 64): PASS
  235. brk_near_huge (2M: 64): brk_near_huge: malloc.c:2403: sysmalloc: Assertion `(old_top == initial_top (av) && old_size == 0) || ((unsigned long) (old_size) >= MINSIZE && p
  236. rev_inuse (old_top) && ((unsigned long) old_end & (pagesize - 1)) == 0)' failed.
  237.  
  238. task-size-overrun (2M: 64): PASS
  239. stack_grow_into_huge (2M: 64): [ 2536.340424] pgd = ffffffc072e3d000
  240. [ 2536.344092] [7fef239050] *pgd=000000007236c003PASS
  241. corrupt-by-cow-opt (2M: 64): PASS
  242. noresv-preserve-resv-page (2M: 64): PASS
  243. noresv-regarded-as-resv (2M: 64): PASS
  244. readahead_reserve.sh (2M: 64): PASS
  245. madvise_reserve.sh (2M: 64): PASS
  246. fadvise_reserve.sh (2M: 64): PASS
  247. mremap-expand-slice-collision.sh (2M: 64): PASS
  248. mremap-fixed-normal-near-huge.sh (2M: 64): PASS
  249. mremap-fixed-huge-near-normal.sh (2M: 64): PASS
  250. private (2M: 64): PASS
  251. fork-cow (2M: 64): PASS
  252. direct (2M: 64): Bad configuration: Failed to open direct-IO file: File exists
  253. malloc (2M: 64): PASS
  254. LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes malloc (2M: 64): PASS
  255. LD_PRELOAD=libhugetlbfs.so HUGETLB_RESTRICT_EXE=unknown:none HUGETLB_MORECORE=yes malloc (2M: 64): PASS
  256. LD_PRELOAD=libhugetlbfs.so HUGETLB_RESTRICT_EXE=unknown:malloc HUGETLB_MORECORE=yes malloc (2M: 64): PASS
  257. malloc_manysmall (2M: 64): PASS
  258. LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes malloc_manysmall (2M: 64): PASS
  259. heapshrink (2M: 64): PASS
  260. LD_PRELOAD=libheapshrink.so heapshrink (2M: 64): PASS
  261. LD_PRELOAD=libhugetlbfs.so HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS
  262. LD_PRELOAD=libhugetlbfs.so libheapshrink.so HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS
  263. LD_PRELOAD=libheapshrink.so HUGETLB_MORECORE_SHRINK=yes HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS (inconclusive)
  264. LD_PRELOAD=libhugetlbfs.so libheapshrink.so HUGETLB_MORECORE_SHRINK=yes HUGETLB_MORECORE=yes heapshrink (2M: 64): PASS
  265. HUGETLB_VERBOSE=1 HUGETLB_MORECORE=yes heap-overflow (2M: 64): PASS
  266. HUGETLB_VERBOSE=0 linkhuge_nofd (2M: 64): PASS
  267. LD_PRELOAD=libhugetlbfs.so HUGETLB_VERBOSE=0 linkhuge_nofd (2M: 64): PASS
  268. linkhuge (2M: 64): PASS
  269. LD_PRELOAD=libhugetlbfs.so linkhuge (2M: 64): PASS
  270. linkhuge_rw (2M: 64): [ 2539.746890] pgd = ffffffc073340000
  271. [ 2539.750591] [004121f0] *pgd=0000000072ccb003[ 2539.759392] pgd = ffffffc035d2f000
  272. [ 2539.763104] [004021f0] *pgd=00000000733b1003[ 2539.771200] pgd = ffffffc035d2f000
  273. [ 2539.774880] [0040161c] *pgd=0000000036167003[ 2539.782979] pgd = ffffffc073340000
  274. [ 2539.786655] [0040161c] *pgd=00000000753d8003PASS
  275. HUGETLB_ELFMAP=R linkhuge_rw (2M: 64): [ 2539.824594] pgd = ffffffc074693000
  276. [ 2539.828181] [004121f0] *pgd=0000000074e06003[ 2539.836043] pgd = ffffffc0733b1000
  277. [ 2539.839542] [004021f0] *pgd=0000000035d61003[ 2539.847278] pgd = ffffffc0733b1000
  278. [ 2539.850900] [0040161c] *pgd=0000000036057003[ 2539.858637] pgd = ffffffc0729fa000
  279. [ 2539.862204] [0040161c] *pgd=0000000072b28003PASS
  280. HUGETLB_ELFMAP=W linkhuge_rw (2M: 64): [ 2539.907523] pgd = ffffffc036296000
  281. [ 2539.911145] [004121f0] *pgd=0000000035d2c003PASS
  282. HUGETLB_ELFMAP=RW linkhuge_rw (2M: 64): PASS
  283. HUGETLB_ELFMAP=no linkhuge_rw (2M: 64): PASS
  284. HUGETLB_ELFMAP= HUGETLB_MINIMAL_COPY=no linkhuge_rw (2M: 64): PASS
  285. HUGETLB_ELFMAP=W HUGETLB_MINIMAL_COPY=no linkhuge_rw (2M: 64): PASS
  286. HUGETLB_ELFMAP=RW HUGETLB_MINIMAL_COPY=no linkhuge_rw (2M: 64): PASS
  287. HUGETLB_SHARE=0 HUGETLB_ELFMAP=R linkhuge_rw (2M: 64): PASS
  288. HUGETLB_SHARE=1 HUGETLB_ELFMAP=R linkhuge_rw (2M: 64): PASS
  289. HUGETLB_SHARE=0 HUGETLB_ELFMAP=W linkhuge_rw (2M: 64): PASS
  290. HUGETLB_SHARE=1 HUGETLB_ELFMAP=W linkhuge_rw (2M: 64): PASS
  291. HUGETLB_SHARE=0 HUGETLB_ELFMAP=RW linkhuge_rw (2M: 64): PASS
  292. HUGETLB_SHARE=1 HUGETLB_ELFMAP=RW linkhuge_rw (2M: 64): PASS
  293. chunk-overcommit (2M: 64): PASS
  294. alloc-instantiate-race shared (2M: 64): PASS
  295. alloc-instantiate-race private (2M: 64): PASS
  296. truncate_reserve_wraparound (2M: 64): PASS
  297. truncate_sigbus_versus_oom (2M: 64): PASS
  298. get_huge_pages (2M: 64): PASS
  299. quota.sh (2M: 64): PASS
  300. counters.sh (2M: 64): PASS
  301. mmap-gettest 10 200 (2M: 64): PASS
  302. mmap-cow 199 200 (2M: 64): PASS
  303. ********** TEST SUMMARY
  304. * 2M
  305. * 32-bit 64-bit
  306. * Total testcases: 0 82
  307. * Skipped: 0 0
  308. * PASS: 0 80
  309. * FAIL: 0 0
  310. * Killed by signal: 0 1
  311. * Bad configuration: 0 1
  312. * Expected FAIL: 0 0
  313. * Unexpected PASS: 0 0
  314. * Strange test result: 0 0
  315. **********
Add Comment
Please, Sign In to add comment