Hello, guys: I has a server running OmniOS v11 r151016. the server have 32G memory . I star tow kvm virtual machines by running the following commands:
qemu-system-x86_64 -enable-kvm -vnc 0.0.0.0:12 -cpu host -smp 4 -m 8192 -no-hpe qemu-system-x86_64 -enable-kvm -vnc 0.0.0.0:11 -cpu host -smp 2 -m 4096 -no-hpe one use 8G memory and the other one use 4G memory. now the memory usage of the system as following: root@BLCC01:/root# prtconf | grep Memory Memory size: 32760 Megabytes root@BLCC01:/root# echo "::memstat" | mdb -k Page Summary Pages MB %Tot ------------ ---------------- ---------------- ---- Kernel 549618 2146 7% ZFS File Data 668992 2613 8% Anon 3198732 12495 38% Exec and libs 1411 5 0% Page cache 4402 17 0% Free (cachelist) 10578 41 0% Free (freelist) 3950545 15431 47% Total 8384278 32751 Physical 8384277 32751 root@BLCC01:/root# swap -sh total: 12G allocated + 35M reserved = 12G used, 6.8G available root@BLCC01:/root# swap -l swapfile dev swaplo blocks free /dev/zvol/dsk/rpool/swap 263,2 8 8388600 8388600 root@BLCC01:/root# root@BLCC01:/root# prctl $$ project.max-locked-memory usage 12.0GB system 16.0EB max deny - project.max-port-ids privileged 8.19K - deny - system 65.5K max deny - project.max-shm-memory privileged 8.00GB - deny - system 16.0EB max deny - #prstat -J PROJID NPROC SWAP RSS MEMORY TIME CPU PROJECT 1 5 12G 12G 38% 1:07:23 5.6% user.root 0 43 72M 76M 0.2% 0:00:59 0.0% system 3 5 4392K 14M 0.0% 0:00:00 0.0% default then I start the third vm (4G memory), it got the following error : qemu-system-x86_64 -enable-kvm -vnc 0.0.0.0:2 -cpu host -smp 2 -m 4096 -no-hpet qemu_mlock: have only locked 1940582400 of 4294967296 bytes; still trying... qemu_mlock: have only locked 1940582400 of 4294967296 bytes; still trying... qemu_mlock: have only locked 1940582400 of 4294967296 bytes; still trying... qemu_mlock: have only locked 1940582400 of 4294967296 bytes; still trying... qemu_mlock: have only locked 1940582400 of 4294967296 bytes; still trying... qemu_mlock: have only locked 1940582400 of 4294967296 bytes; still trying… I got 15G free memory in the system, why qemu-system-x86_64 can not locked enough memory ? Thanks for your help ! sorry for my poor english ! ----------------------------------- fcliang _______________________________________________ OmniOS-discuss mailing list OmniOS-discuss@lists.omniti.com http://lists.omniti.com/mailman/listinfo/omnios-discuss