Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
But my host machine shows 4 CPU's Please see attached screen shot above post
Why Host shows cpu count is 4 but guest OS CPU count is 1 ?
Thanks.
I'm assuming because when you created it in the hypervisor, you only allocated a single CPU to it. The hypervisor will only allocate as many CPU's as you tell it to, and you should never allocate all your physical CPU's (threads) to another VM, as it will cause issues with your host OS.
Last edited by Timothy Miller; 09-01-2016 at 02:13 PM.
At that time of Linux installation , we do not set any CPU count ! am i right ??
Actually what do you mean hypervisor ?
Is it possibilities to set 4 cpu to my linux machine ?
I'm assuming by the name of the workstation that you're using VMWare (player maybe) as your hypervisor?
Depending on the hypervisor, some will allow you to set all the physical cores to the client (I know vbox allows it), but it's not a good idea as it will cause your host OS to have issues as the guest is attempting to use all of them.
Some hypervisors create it with the default of 1, and you need to edit the properties to allocate more than 1.
If you can confirm what you're using, it'd be a lot easier to assist.
At that time of Linux installation , we do not set any CPU count ! am i right ??
Not at installation - at the time the virtual machine was created.
The Linux installation will use as many CPUs as you allocate to the virtual machine. MOST management functions will allow you to change the resources allocated without needing reinstallation, though you normally have to shut down the specific VM being modified. Once modified just booting the virtual machine will allow Linux to handle the rest.
Is there any difference between core and cpu in system/server ? is this right ? number of cores = number of processors ?
Sometimes, but not usaully (anymore).
Most cpu's now have more than 1 core, even though it's a single processor.
Also, if you have a cpu that supports Hyperthreading (or whatever AMD will be calling that same technology with their upcoming Zen release), then even though you have only 2 actual CPU cores (and still only a single processor), your OS will see 4 cores.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.