help , maptest can not allocat memory larger than 128M?

12 views
Skip to first unread message

siheng li

unread,
Jun 28, 2021, 11:46:52 PM6/28/21
to mos-...@googlegroups.com

https://github.com/intel/mOS/issues/7

My test method is as follows:
yod -o lwkmem-prot-none-delegation-enable -M 2048m -C all --mosview lwk ./maptest --verbose --type anonymous --size 4096 --num 32512

Test Results
Failed mmap. Cannot allocate memory

dmesg output
[   49.616869] mOS-ras: msg="unmap_pagetbl: PMD not present for address:7fffffe00000 size:4k" id=mOSLwkmemProcessWarning location= jobid=
[   49.616977] mOS-ras: msg="unmap_pagetbl: PMD not present for address:7fffffe01000 size:4k" id=mOSLwkmemProcessWarning location= jobid=
[   49.617039] mOS-ras: msg="unmap_pagetbl: PMD not present for address:7fffffe02000 size:4k" id=mOSLwkmemProcessWarning location= jobid=
[   49.617102] mOS-ras: msg="unmap_pagetbl: PMD not present for address:7fffffe03000 size:4k" id=mOSLwkmemProcessWarning location= jobid=
[   49.617163] mOS-ras: msg="unmap_pagetbl: PMD not present for address:7fffffe04000 size:4k" id=mOSLwkmemProcessWarning location= jobid=


maptest
https://github.com/intel/mOS/blob/master/mOS/tests/lwkmem/maptest.c

some system info:

boot cmdline:
cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-5.4.48-mos-build20210617-1 root=UUID=93cb47c5-3e8a-467a-a61d-3ed6d74ee889 ro rhgb movable_node lwkcpu_profile=normal lwkmem=5G kernelcore=5G lwkcpus=1.4-7 loglevel=7 console=tty1 intel_pstate=disable lwkmem_debug=1 selinux=0 nmi_watchdog=0 nohz_full=1 LANG=en_US.UTF-8

lwkctl -s
mOS version   : 0.8
Linux   CPU(s): 0-3 [ 4 CPU(s) ]
LWK     CPU(s): 4-7 [ 4 CPU(s) ]
Utility CPU(s): 1 [ 1 CPU(s) ]
LWK Memory(KB): 1835008 3407872 [ 2 NUMA nodes ]


mosview -s lwk free -m
              total        used        free      shared  buff/cache   available
Mem:           5120           0        5120           0           0        5120
Swap:             0           0           0
mosview -s linux free -m
              total        used        free      shared  buff/cache   available
Mem:           6883         146        6559          11         177        6579
Swap:           199           0         199
mosview -s all free -m
              total        used        free      shared  buff/cache   available
Mem:          12003         146       11679          11         177       11699
Swap:           199           0         199


dmesg | grep -i mos
[    0.000000] Linux version 5.4.48-mos-build20210617-1 (root@mos10-16-1-159) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-36) (GCC)) #1 SMP Thu Jun 17 11:04:25 CST 2021
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-5.4.48-mos-build20210617-1 root=UUID=93cb47c5-3e8a-467a-a61d-3ed6d74ee889 ro rhgb movable_node lwkcpu_profile=normal lwkmem=5G kernelcore=5G lwkcpus=1.4-7 loglevel=7 console=tty1 intel_pstate=disable lwkmem_debug=1 selinux=0 nmi_watchdog=0 nohz_full=1 LANG=en_US.UTF-8
[    0.270265] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-5.4.48-mos-build20210617-1 root=UUID=93cb47c5-3e8a-467a-a61d-3ed6d74ee889 ro rhgb movable_node lwkcpu_profile=normal lwkmem=5G kernelcore=5G lwkcpus=1.4-7 loglevel=7 console=tty1 intel_pstate=disable lwkmem_debug=1 selinux=0 nmi_watchdog=0 nohz_full=1 LANG=en_US.UTF-8
[    2.512669] usb usb1: Manufacturer: Linux 5.4.48-mos-build20210617-1 ehci_hcd
[    2.562102] usb usb2: Manufacturer: Linux 5.4.48-mos-build20210617-1 uhci_hcd
[    2.608309] usb usb3: Manufacturer: Linux 5.4.48-mos-build20210617-1 uhci_hcd
[    2.654760] usb usb4: Manufacturer: Linux 5.4.48-mos-build20210617-1 uhci_hcd
[    2.671007] rtc_cmos 00:00: RTC can wake from S4
[    2.673691] rtc_cmos 00:00: registered as rtc0
[    2.676533] rtc_cmos 00:00: alarms up to one day, y3k, 114 bytes nvram
[    2.770712] rtc_cmos 00:00: setting system clock to 2021-06-29T02:49:41 UTC (1624934981)
[    2.804171] mOS-lwkctl: Creating default memory partition: lwkmem=5G
[    2.805477] mOS-mem: Initializing memory management. precise=no
[    2.835214] mOS-mem: Node 0: va 0x(____ptrval____) pa 0x148000000 pfn 1343488-1802239 : 458752
[    2.837463] mOS-mem: Node 0: offlining va 0x(____ptrval____) pa 0x148000000 pfn 1343488-1802239:458752
[    4.691072] mOS-mem: Unallocated 805306368 bytes req to node(s):1
[    4.737079] mOS-mem: Node 1: va 0x(____ptrval____) pa 0x208000000 pfn 2129920-2981887 : 851968
[    4.738908] mOS-mem: Node 1: offlining va 0x(____ptrval____) pa 0x208000000 pfn 2129920-2981887:851968
[    9.459123] mOS-mem: Node 1: Requested 3328 MB Allocated 3328 MB
[    9.460195] mOS-mem: Requested 5120 MB Allocated 5120 MB
[    9.475957] mOS-lwkctl: LWK creating default LWKMEM partition..Done
[    9.476993] mOS-lwkctl: Creating default CPU partition:
[    9.476994] mOS-lwkctl:  lwkcpu_profile=normal
[    9.479754] mOS: LWK CPUs 4-7 will ship syscalls to Linux CPU 1
[    9.480886] mOS: Configured LWK CPUs: 4-7
[    9.481919] mOS: Configured Utility CPUs: 1
[    9.482973] mOS: LWK CPU profile set to: normal
[    9.484231] mOS-sched: set unbound workqueue cpumask to 0-3
[    9.485328] mOS: MWAIT not supported by processor. IDLE HALT enabled.
[    9.600290] mOS-lwkctl: LWK creating default partition.. Done


run command
yod -M 2048m -C all echo hello
is work
Reply all
Reply to author
Forward
0 new messages