Solved

VMWare / Linux  and /proc/cpuinfo

Posted on 2013-11-05
4
1,024 Views
Last Modified: 2013-11-05
I created a VM with Linux on it

I set the cores to 1 socket and 5 cores

My machine is HT

I set the affinity to 0-9  (never did that before)

I start the OS and go to /proc/cpuinfo

I see only 5 processors.

I expected to see 10 processors as I asked for 5 physical cores on a HT system

What am I missing ?

Thanks
0
Comment
Question by:Los Angeles1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 120

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE^2) earned 250 total points
ID: 39625268
How many did you assign in the VM settings? If you set 1 socket, 5 Cores, that's 5 vCPUs.

HT is only at the Physical!

If you want 10 vCPUs ?

either set 10 sockets, or 2 sockets, 5 cores.
0
 

Author Comment

by:Los Angeles1
ID: 39625354
What I want is 5 physical sockets

In other words, if I have HT on Intel and I have 10 cores.  I want half the available cores

5 physical cores, and 10 threads total

How do I get that ?
0
 
LVL 120
ID: 39625364
Is there any reason you want to assign specific cores?

why not just assign 5 vCPUs (sockets), and leave cores as 1.

five physical sockets, would be a 5 physical processor machine.
0
 
LVL 6

Assisted Solution

by:insidetech
insidetech earned 250 total points
ID: 39625399
VMware CPU resource controls are tightly integrated with the HT accounting.
It is probably best that you do not set the affinity and let the server figure out the CPU assignment.
This said, and as a example, if your physical system has 2 sockets with 1 core each and HT is supported, simply assign an equivalent in your VM to 4 single core CPU's.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this article, I will show you HOW TO: Create your first Windows Virtual Machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, the Windows OS we will install is Windows Server 2016.
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Teach the user how to use create log bundles for vCenter Server or ESXi hosts Open vSphere Web Client: Generate vCenter Server and ESXi host log bundle:  Open vCenter Server Appliance Web Management interface and generate log bundle: Open vCenter Se…
This video shows you how easy it is to boot from ISO images for virtual machines with the ISO images stored on a local datastore on the ESXi host.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question