From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 809109326D for ; Wed, 4 Jan 2023 07:43:16 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 34B481B7A9 for ; Wed, 4 Jan 2023 07:43:16 +0100 (CET) Received: from bastionodiso.odiso.net (bastionodiso.odiso.net [IPv6:2a0a:1580:2000::2d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 4 Jan 2023 07:43:12 +0100 (CET) Received: from kvmformation3.odiso.net (formationkvm3.odiso.net [10.3.94.12]) by bastionodiso.odiso.net (Postfix) with ESMTP id C2095748E; Wed, 4 Jan 2023 07:43:04 +0100 (CET) Received: by kvmformation3.odiso.net (Postfix, from userid 0) id C0F7A224A26; Wed, 4 Jan 2023 07:43:04 +0100 (CET) From: Alexandre Derumier To: pve-devel@lists.proxmox.com Date: Wed, 4 Jan 2023 07:43:01 +0100 Message-Id: <20230104064303.2898194-8-aderumier@odiso.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230104064303.2898194-1-aderumier@odiso.com> References: <20230104064303.2898194-1-aderumier@odiso.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.030 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% HEADER_FROM_DIFFERENT_DOMAINS 0.249 From and EnvelopeFrom 2nd level mail domains are different KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods NO_DNS_FOR_FROM 0.001 Envelope sender has no MX or A DNS records SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Subject: [pve-devel] [PATCH v2 qemu-server 7/9] test: add memory-max tests X-BeenThere: pve-devel@lists.proxmox.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Proxmox VE development discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2023 06:43:16 -0000 Signed-off-by: Alexandre Derumier --- test/cfg2cmd/memory-max-128G.conf | 11 ++++ test/cfg2cmd/memory-max-128G.conf.cmd | 86 +++++++++++++++++++++++++++ test/cfg2cmd/memory-max-512G.conf | 11 ++++ test/cfg2cmd/memory-max-512G.conf.cmd | 58 ++++++++++++++++++ 4 files changed, 166 insertions(+) create mode 100644 test/cfg2cmd/memory-max-128G.conf create mode 100644 test/cfg2cmd/memory-max-128G.conf.cmd create mode 100644 test/cfg2cmd/memory-max-512G.conf create mode 100644 test/cfg2cmd/memory-max-512G.conf.cmd diff --git a/test/cfg2cmd/memory-max-128G.conf b/test/cfg2cmd/memory-max-128G.conf new file mode 100644 index 0000000..8f0328d --- /dev/null +++ b/test/cfg2cmd/memory-max-128G.conf @@ -0,0 +1,11 @@ +# TEST: memorymax 64G with 2 socket, dimm size should be 1GB && static memory should be 4G +# QEMU_VERSION: 7.2 +cores: 2 +memory: 32768,max=65536 +name: simple +numa: 1 +ostype: l26 +smbios1: uuid=7b10d7af-b932-4c66-b2c3-3996152ec465 +sockets: 2 +vmgenid: c773c261-d800-4348-9f5d-167fadd53cf8 +hotplug: memory \ No newline at end of file diff --git a/test/cfg2cmd/memory-max-128G.conf.cmd b/test/cfg2cmd/memory-max-128G.conf.cmd new file mode 100644 index 0000000..4e2c06d --- /dev/null +++ b/test/cfg2cmd/memory-max-128G.conf.cmd @@ -0,0 +1,86 @@ +/usr/bin/kvm \ + -id 8006 \ + -name 'simple,debug-threads=on' \ + -no-shutdown \ + -chardev 'socket,id=qmp,path=/var/run/qemu-server/8006.qmp,server=on,wait=off' \ + -mon 'chardev=qmp,mode=control' \ + -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' \ + -mon 'chardev=qmp-event,mode=control' \ + -pidfile /var/run/qemu-server/8006.pid \ + -daemonize \ + -smbios 'type=1,uuid=7b10d7af-b932-4c66-b2c3-3996152ec465' \ + -smp '4,sockets=2,cores=2,maxcpus=4' \ + -nodefaults \ + -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \ + -vnc 'unix:/var/run/qemu-server/8006.vnc,password=on' \ + -cpu kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep \ + -m 'size=4096,slots=64,maxmem=65536M' \ + -object 'memory-backend-ram,id=ram-node0,size=2048M' \ + -numa 'node,nodeid=0,cpus=0-1,memdev=ram-node0' \ + -object 'memory-backend-ram,id=ram-node1,size=2048M' \ + -numa 'node,nodeid=1,cpus=2-3,memdev=ram-node1' \ + -object 'memory-backend-ram,id=mem-dimm0,size=1024M' \ + -device 'pc-dimm,id=dimm0,memdev=mem-dimm0,node=0' \ + -object 'memory-backend-ram,id=mem-dimm1,size=1024M' \ + -device 'pc-dimm,id=dimm1,memdev=mem-dimm1,node=1' \ + -object 'memory-backend-ram,id=mem-dimm2,size=1024M' \ + -device 'pc-dimm,id=dimm2,memdev=mem-dimm2,node=0' \ + -object 'memory-backend-ram,id=mem-dimm3,size=1024M' \ + -device 'pc-dimm,id=dimm3,memdev=mem-dimm3,node=1' \ + -object 'memory-backend-ram,id=mem-dimm4,size=1024M' \ + -device 'pc-dimm,id=dimm4,memdev=mem-dimm4,node=0' \ + -object 'memory-backend-ram,id=mem-dimm5,size=1024M' \ + -device 'pc-dimm,id=dimm5,memdev=mem-dimm5,node=1' \ + -object 'memory-backend-ram,id=mem-dimm6,size=1024M' \ + -device 'pc-dimm,id=dimm6,memdev=mem-dimm6,node=0' \ + -object 'memory-backend-ram,id=mem-dimm7,size=1024M' \ + -device 'pc-dimm,id=dimm7,memdev=mem-dimm7,node=1' \ + -object 'memory-backend-ram,id=mem-dimm8,size=1024M' \ + -device 'pc-dimm,id=dimm8,memdev=mem-dimm8,node=0' \ + -object 'memory-backend-ram,id=mem-dimm9,size=1024M' \ + -device 'pc-dimm,id=dimm9,memdev=mem-dimm9,node=1' \ + -object 'memory-backend-ram,id=mem-dimm10,size=1024M' \ + -device 'pc-dimm,id=dimm10,memdev=mem-dimm10,node=0' \ + -object 'memory-backend-ram,id=mem-dimm11,size=1024M' \ + -device 'pc-dimm,id=dimm11,memdev=mem-dimm11,node=1' \ + -object 'memory-backend-ram,id=mem-dimm12,size=1024M' \ + -device 'pc-dimm,id=dimm12,memdev=mem-dimm12,node=0' \ + -object 'memory-backend-ram,id=mem-dimm13,size=1024M' \ + -device 'pc-dimm,id=dimm13,memdev=mem-dimm13,node=1' \ + -object 'memory-backend-ram,id=mem-dimm14,size=1024M' \ + -device 'pc-dimm,id=dimm14,memdev=mem-dimm14,node=0' \ + -object 'memory-backend-ram,id=mem-dimm15,size=1024M' \ + -device 'pc-dimm,id=dimm15,memdev=mem-dimm15,node=1' \ + -object 'memory-backend-ram,id=mem-dimm16,size=1024M' \ + -device 'pc-dimm,id=dimm16,memdev=mem-dimm16,node=0' \ + -object 'memory-backend-ram,id=mem-dimm17,size=1024M' \ + -device 'pc-dimm,id=dimm17,memdev=mem-dimm17,node=1' \ + -object 'memory-backend-ram,id=mem-dimm18,size=1024M' \ + -device 'pc-dimm,id=dimm18,memdev=mem-dimm18,node=0' \ + -object 'memory-backend-ram,id=mem-dimm19,size=1024M' \ + -device 'pc-dimm,id=dimm19,memdev=mem-dimm19,node=1' \ + -object 'memory-backend-ram,id=mem-dimm20,size=1024M' \ + -device 'pc-dimm,id=dimm20,memdev=mem-dimm20,node=0' \ + -object 'memory-backend-ram,id=mem-dimm21,size=1024M' \ + -device 'pc-dimm,id=dimm21,memdev=mem-dimm21,node=1' \ + -object 'memory-backend-ram,id=mem-dimm22,size=1024M' \ + -device 'pc-dimm,id=dimm22,memdev=mem-dimm22,node=0' \ + -object 'memory-backend-ram,id=mem-dimm23,size=1024M' \ + -device 'pc-dimm,id=dimm23,memdev=mem-dimm23,node=1' \ + -object 'memory-backend-ram,id=mem-dimm24,size=1024M' \ + -device 'pc-dimm,id=dimm24,memdev=mem-dimm24,node=0' \ + -object 'memory-backend-ram,id=mem-dimm25,size=1024M' \ + -device 'pc-dimm,id=dimm25,memdev=mem-dimm25,node=1' \ + -object 'memory-backend-ram,id=mem-dimm26,size=1024M' \ + -device 'pc-dimm,id=dimm26,memdev=mem-dimm26,node=0' \ + -object 'memory-backend-ram,id=mem-dimm27,size=1024M' \ + -device 'pc-dimm,id=dimm27,memdev=mem-dimm27,node=1' \ + -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' \ + -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' \ + -device 'vmgenid,guid=c773c261-d800-4348-9f5d-167fadd53cf8' \ + -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' \ + -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' \ + -device 'VGA,id=vga,bus=pci.0,addr=0x2' \ + -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3,free-page-reporting=on' \ + -iscsi 'initiator-name=iqn.1993-08.org.debian:01:aabbccddeeff' \ + -machine 'type=pc+pve0' \ No newline at end of file diff --git a/test/cfg2cmd/memory-max-512G.conf b/test/cfg2cmd/memory-max-512G.conf new file mode 100644 index 0000000..082f75e --- /dev/null +++ b/test/cfg2cmd/memory-max-512G.conf @@ -0,0 +1,11 @@ +# TEST: memorymax 512GB with 2 socket, dimm size should be 8GB && static memory should be 16G +# QEMU_VERSION: 7.2 +cores: 2 +memory: 131072,max=524288 +name: simple +numa: 1 +ostype: l26 +smbios1: uuid=7b10d7af-b932-4c66-b2c3-3996152ec465 +sockets: 2 +vmgenid: c773c261-d800-4348-9f5d-167fadd53cf8 +hotplug: memory \ No newline at end of file diff --git a/test/cfg2cmd/memory-max-512G.conf.cmd b/test/cfg2cmd/memory-max-512G.conf.cmd new file mode 100644 index 0000000..3c04b70 --- /dev/null +++ b/test/cfg2cmd/memory-max-512G.conf.cmd @@ -0,0 +1,58 @@ +/usr/bin/kvm \ + -id 8006 \ + -name 'simple,debug-threads=on' \ + -no-shutdown \ + -chardev 'socket,id=qmp,path=/var/run/qemu-server/8006.qmp,server=on,wait=off' \ + -mon 'chardev=qmp,mode=control' \ + -chardev 'socket,id=qmp-event,path=/var/run/qmeventd.sock,reconnect=5' \ + -mon 'chardev=qmp-event,mode=control' \ + -pidfile /var/run/qemu-server/8006.pid \ + -daemonize \ + -smbios 'type=1,uuid=7b10d7af-b932-4c66-b2c3-3996152ec465' \ + -smp '4,sockets=2,cores=2,maxcpus=4' \ + -nodefaults \ + -boot 'menu=on,strict=on,reboot-timeout=1000,splash=/usr/share/qemu-server/bootsplash.jpg' \ + -vnc 'unix:/var/run/qemu-server/8006.vnc,password=on' \ + -cpu kvm64,enforce,+kvm_pv_eoi,+kvm_pv_unhalt,+lahf_lm,+sep \ + -m 'size=16384,slots=64,maxmem=524288M' \ + -object 'memory-backend-ram,id=ram-node0,size=8192M' \ + -numa 'node,nodeid=0,cpus=0-1,memdev=ram-node0' \ + -object 'memory-backend-ram,id=ram-node1,size=8192M' \ + -numa 'node,nodeid=1,cpus=2-3,memdev=ram-node1' \ + -object 'memory-backend-ram,id=mem-dimm0,size=8192M' \ + -device 'pc-dimm,id=dimm0,memdev=mem-dimm0,node=0' \ + -object 'memory-backend-ram,id=mem-dimm1,size=8192M' \ + -device 'pc-dimm,id=dimm1,memdev=mem-dimm1,node=1' \ + -object 'memory-backend-ram,id=mem-dimm2,size=8192M' \ + -device 'pc-dimm,id=dimm2,memdev=mem-dimm2,node=0' \ + -object 'memory-backend-ram,id=mem-dimm3,size=8192M' \ + -device 'pc-dimm,id=dimm3,memdev=mem-dimm3,node=1' \ + -object 'memory-backend-ram,id=mem-dimm4,size=8192M' \ + -device 'pc-dimm,id=dimm4,memdev=mem-dimm4,node=0' \ + -object 'memory-backend-ram,id=mem-dimm5,size=8192M' \ + -device 'pc-dimm,id=dimm5,memdev=mem-dimm5,node=1' \ + -object 'memory-backend-ram,id=mem-dimm6,size=8192M' \ + -device 'pc-dimm,id=dimm6,memdev=mem-dimm6,node=0' \ + -object 'memory-backend-ram,id=mem-dimm7,size=8192M' \ + -device 'pc-dimm,id=dimm7,memdev=mem-dimm7,node=1' \ + -object 'memory-backend-ram,id=mem-dimm8,size=8192M' \ + -device 'pc-dimm,id=dimm8,memdev=mem-dimm8,node=0' \ + -object 'memory-backend-ram,id=mem-dimm9,size=8192M' \ + -device 'pc-dimm,id=dimm9,memdev=mem-dimm9,node=1' \ + -object 'memory-backend-ram,id=mem-dimm10,size=8192M' \ + -device 'pc-dimm,id=dimm10,memdev=mem-dimm10,node=0' \ + -object 'memory-backend-ram,id=mem-dimm11,size=8192M' \ + -device 'pc-dimm,id=dimm11,memdev=mem-dimm11,node=1' \ + -object 'memory-backend-ram,id=mem-dimm12,size=8192M' \ + -device 'pc-dimm,id=dimm12,memdev=mem-dimm12,node=0' \ + -object 'memory-backend-ram,id=mem-dimm13,size=8192M' \ + -device 'pc-dimm,id=dimm13,memdev=mem-dimm13,node=1' \ + -device 'pci-bridge,id=pci.1,chassis_nr=1,bus=pci.0,addr=0x1e' \ + -device 'pci-bridge,id=pci.2,chassis_nr=2,bus=pci.0,addr=0x1f' \ + -device 'vmgenid,guid=c773c261-d800-4348-9f5d-167fadd53cf8' \ + -device 'piix3-usb-uhci,id=uhci,bus=pci.0,addr=0x1.0x2' \ + -device 'usb-tablet,id=tablet,bus=uhci.0,port=1' \ + -device 'VGA,id=vga,bus=pci.0,addr=0x2' \ + -device 'virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x3,free-page-reporting=on' \ + -iscsi 'initiator-name=iqn.1993-08.org.debian:01:aabbccddeeff' \ + -machine 'type=pc+pve0' \ No newline at end of file -- 2.30.2