Jump to content

CPUs and VMs

Weston3000

In hyperV, when I assign a VM 1 cpu, does it mean that I have assigned it a physical core or logical core?

Link to comment
Share on other sites

Link to post
Share on other sites

No, you're assigning it a virtual CPU with a Virtual core. shown below

 

vm.png

 

Also read this:

https://www.altaro.com/hyper-v/hyper-v-virtual-cpus-explained/

 

CPU: AMD Ryzen 5 5600X | CPU Cooler: Stock AMD Cooler | Motherboard: Asus ROG STRIX B550-F GAMING (WI-FI) | RAM: Corsair Vengeance LPX 16 GB (2 x 8 GB) DDR4-3000 CL16 | GPU: Nvidia GTX 1060 6GB Zotac Mini | Case: K280 Case | PSU: Cooler Master B600 Power supply | SSD: 1TB  | HDDs: 1x 250GB & 1x 1TB WD Blue | Monitors: 24" Acer S240HLBID + 24" Samsung  | OS: Win 10 Pro

 

Audio: Behringer Q802USB Xenyx 8 Input Mixer |  U-PHORIA UMC204HD | Behringer XM8500 Dynamic Cardioid Vocal Microphone | Sound Blaster Audigy Fx PCI-E card.

 

Home Lab:  Lenovo ThinkCenter M82 ESXi 6.7 | Lenovo M93 Tiny Exchange 2019 | TP-LINK TL-SG1024D 24-Port Gigabit | Cisco ASA 5506 firewall  | Cisco Catalyst 3750 Gigabit Switch | Cisco 2960C-LL | HP MicroServer G8 NAS | Custom built SCCM Server.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

How do I know how many virtual processors my CPU supports and how virtual processors should I assign a VM.

Link to comment
Share on other sites

Link to post
Share on other sites

5 hours ago, Weston3000 said:

How do I know how many virtual processors my CPU supports and how virtual processors should I assign a VM.

Your can run as many virtual processors on one cpu, something like 4:1 is pretty common for servers, but depends on workload.

 

Depends on vm, id probalby give each vm 2 by default, and more if needed.

Link to comment
Share on other sites

Link to post
Share on other sites

19 hours ago, Weston3000 said:

How do I know how many virtual processors my CPU supports and how virtual processors should I assign a VM.

Please quote so I know you have replied.

 

It depends on the server's CPU. 

 

please read the article I posted before, it will explain everything.

CPU: AMD Ryzen 5 5600X | CPU Cooler: Stock AMD Cooler | Motherboard: Asus ROG STRIX B550-F GAMING (WI-FI) | RAM: Corsair Vengeance LPX 16 GB (2 x 8 GB) DDR4-3000 CL16 | GPU: Nvidia GTX 1060 6GB Zotac Mini | Case: K280 Case | PSU: Cooler Master B600 Power supply | SSD: 1TB  | HDDs: 1x 250GB & 1x 1TB WD Blue | Monitors: 24" Acer S240HLBID + 24" Samsung  | OS: Win 10 Pro

 

Audio: Behringer Q802USB Xenyx 8 Input Mixer |  U-PHORIA UMC204HD | Behringer XM8500 Dynamic Cardioid Vocal Microphone | Sound Blaster Audigy Fx PCI-E card.

 

Home Lab:  Lenovo ThinkCenter M82 ESXi 6.7 | Lenovo M93 Tiny Exchange 2019 | TP-LINK TL-SG1024D 24-Port Gigabit | Cisco ASA 5506 firewall  | Cisco Catalyst 3750 Gigabit Switch | Cisco 2960C-LL | HP MicroServer G8 NAS | Custom built SCCM Server.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

While a really good article on Altaro was shared explaining the logic behind the vCPU, just wanted to add that you actually have to test what number of vCPUs is required for your VM or, actually, the service/app running inside of it. You can start from one and then add more if required. Here is also some useful reading on this as well as overall Hyper-V performance tuning: https://www.hyper-v.io/several-tips-hints-full-throttle-hyper-v-performance/

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×