Solved

VMWare / Linux  and /proc/cpuinfo

Posted on 2013-11-05
4
987 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
  • 2
4 Comments
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) 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 117
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

HOW TO: Install and Configure VMware vSphere Hypervisor 6.5 (ESXi 6.5), Step by Step Tutorial with screenshots. From Download, Checking Media, to Completed Installation.
In this step by step tutorial with screenshots, we will show you HOW TO: Enable SSH Remote Access on a VMware vSphere Hypervisor 6.5 (ESXi 6.5). This is important if you need to enable SSH remote access for additional troubleshooting of the ESXi hos…
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now