Solved

Adding Memory and CPU to Windows 7 VM

Posted on 2013-11-11
17
1,275 Views
Last Modified: 2013-11-23
Adding Memory and CPU to Windows 7 VM

I have windows 7 VMs 8GB RAM, 18GHZ, that run Excel Spreadsheets. They consume a lot of resources. I am trying to add more RAM to them through Vsphere Client, but when I select Memory in Edit Settings of the VM, I cannot add memory ,it is grayed out.
Does that mean I have to shutdown the VM in order to add memory?

Thanks
0
Comment
Question by:jskfan
  • 7
  • 5
  • 3
  • +1
17 Comments
 
LVL 10

Assisted Solution

by:djcanter
djcanter earned 143 total points
ID: 39639496
Yes, you must power down the vm to change ram and processor specs.
0
 

Author Comment

by:jskfan
ID: 39639499
I thought Hot Add and hot plug is supported in vsphere 5.1
0
 
LVL 117

Accepted Solution

by:
Andrew Hancock (VMware vExpert / EE MVE) earned 214 total points
ID: 39639501
Yes, you must shutdown the VM, Windows 7 does not support the Hot Adding of Memory or CPU.

I would recommend Windows 7 64 bit, 2 vCPU and 8 GB of RAM.

Windows 2008, 2008 R2 and later support Hot Plug Memory and CPU, and then ONLY if enabled.

see here

VMware KB: Support for Hot Add Memory and Hot Add vCPU
0
 
LVL 10

Expert Comment

by:djcanter
ID: 39639505
it may be  supported, but is it licensed ?  is this free vsphere ?
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 214 total points
ID: 39639506
Windows 7 DOES NOT support Hot Plug Memory or CPU, and if it did, it needs to be enabled!

also see these tests here

http://www.boche.net/blog/index.php/2009/05/10/vsphere-memory-hot-add-cpu-hot-plug/
0
 
LVL 10

Assisted Solution

by:djcanter
djcanter earned 143 total points
ID: 39639523
hanccocka, i was referring to vsphere supporting hot-plug not the WIN 7 OS.
Your original answer is concise and correct.
0
 

Author Comment

by:jskfan
ID: 39639672
I shut it down and gave it:
16GB(16565MB) RAM and 10vCPU (26590MHZ)

I am afraid I gave it too much
0
 
LVL 117
ID: 39639942
You may find your version of Windows 7 does not support more than 1 or 2 CPUs. So you have oversubsribed your VM, which can cause performance issues to the VM and Host.

@jskfan you may want to read the following:-

vSMP (virtual SMP) can affect virtual machine performance, when adding too many vCPUs to virtual machines that cannot use the vCPUs effectly, e.g. Servers than can use vSMP correctly :- SQL Server, Exchange Server.

This is true, many VMware Administrators, think adding lots of processors, will increase performance - wrong! (and because they can, they just go silly!). Sometimes there is confusion between cores and processors. But what we are adding is additional processors in the virtual machine.

So 4 vCPU, to the VM is a 4 Way SMP (Quad Processor Server), if you have Enterprise Plus license you can add 8, (and only if you have the correct OS License will the OS recognise them all).

If applications, can take advantage e.g. Exchange, SQL, adding additional processors, can/may increase performance.

So usual rule of thumb is try 1 vCPU, then try 2 vCPU, knock back to 1 vCPU if performance is affected. and only use vSMP if the VM can take advantage.

Example, VM with 4 vCPUs allocated!

My simple laymans explaination of the "scheduler!"

As you have assigned 4 vCPUs, to this VM, the VMware scheulder, has to wait until 4 cores are free and available, to do this, it has to pause the first cores, until the 4th is available, during this timeframe, the paused cores are not available for processes, this is my simplistic view, but bottom line is adding more vCPUs to a VM, may not give you the performance benefits you think, unless the VM, it's applications are optimised for additional vCPUs.

See here
http://www.vmware.com/resources/techresources/10131

see here
http://www.gabesvirtualworld.com/how-too-many-vcpus-can-negatively-affect-your-performance/

http://www.zdnet.com/virtual-cpus-the-overprovisioning-penalty-of-vcpu-to-pcpu-ratios-4010025185/

also there is a document here about the CPU scheduler

www.vmware.com/files/pdf/perf-vsphere-cpu_scheduler.pdf
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

by:jskfan
ID: 39640161
I will see if performance is still an issue , i will decrease CPU. what about RAM I gave it 16GB
0
 

Author Comment

by:jskfan
ID: 39640185
I guess low performance is caused by disk I/O
at least by looking at the charts (Disk/RAM/CPU)
0
 

Author Comment

by:jskfan
ID: 39640187
cpudiskmemory
0
 
LVL 117

Assisted Solution

by:Andrew Hancock (VMware vExpert / EE MVE)
Andrew Hancock (VMware vExpert / EE MVE) earned 214 total points
ID: 39640927
Disk performance and I/O can be a factor

HOW TO:  Performance Monitor vSphere 4.x or 5.0
0
 
LVL 19

Assisted Solution

by:compdigit44
compdigit44 earned 143 total points
ID: 39645679
I know I am late to this conversation but I have the following questions.

1) What type of storage are you using on your host? Local, SAN etc..
2) How many VM share the same datastore?
3) Are other VM on the same host & data store experiencing performance issues?

instead of keeping throughing more resources at the VM, you should try to figure out why or what is causing the VM to consume a high level of resources.

1) How is the overall memory usage on the host?
2) Does the Vm run a specific applicatoin or is used as a general purpose desktop?
3) Is the VM slow all of the time or specific times?
4) Is AV running on the VM or another security application.
5) On the VM have you tried to run a Datacollect set to chart the VM's performance over a 15 - 30 minutes time period?
0
 

Author Comment

by:jskfan
ID: 39647924
The only VM which slow in the Resource pool.
it runs Excel, huge data.
AV is on all VMs

I wonder if Excel is recommended to be installed on physical machine instead of VM.
I have heard before that Databases Application as well as Excel,MSAccess have High disk I/O, and they need to be installed on physical box…
However we have Exchange 2010 infrastructure and it is installed on VMware, and it runs smooth. Exchange also uses Databases as far as I am concern…but works fine..

The next thing that I might think about is increasing Virtual Memory…?
0
 
LVL 117
ID: 39647962
Workstations can use more resources!

It's pagefile (virtual memory should be set to automatic).

Try 2vCPU and 8GB RAM.

Is it just Excel is slow, and what do you mean by slow?
0
 
LVL 19

Assisted Solution

by:compdigit44
compdigit44 earned 143 total points
ID: 39648225
What type of storage are you using? Do all VM's in the resource pool share the same data store.

What version of Excel are you using? Check out the following link and give it a try. Make sure you take a snapshot of the VM before each test.

http://social.technet.microsoft.com/Forums/office/en-US/3ac26a70-8db5-4e44-ba2c-e217cc5ae92c/excel-2010-high-memory-usage?forum=excel
0
 

Author Closing Comment

by:jskfan
ID: 39671644
Thank you
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

This is an issue that we can get adding / removing permissions in the vCSA 6.0. We can also have issues searching for users / groups in the AD (using your identify sources). This is how one of the ways to handle this issues and fix it.
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.
Teach the user how to configure vSphere Replication and how to protect and recover VMs Open vSphere Web Client: Verify vsphere Replication is enabled: Enable vSphere Replication for a virtual machine: Verify replicated VM is created: Recover replica…
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

708 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

12 Experts available now in Live!

Get 1:1 Help Now