VirtualSingh: VM (Edit Settings)

VirtualSingh

VirtualSingh

Showing posts with label VM (Edit Settings). Show all posts
Showing posts with label VM (Edit Settings). Show all posts

Wednesday, 28 March 2018

Virtual Machine - Edit Settings - (Disk) Part 3(ii)

06:58 0
Virtual Machine - Edit Settings - (Disk) Part 3(ii)
In my previous post, I have talked about Virtual Machine Storage Policies.
In this post, we"ll be talking about Different types of disk provisioning:-



There are 3 different types of disk provisioning:- 
  • Thin Provision
  • Thick Provision: i)Eager Zeroed
    •                             ii) Lazy Zeroed

    By default, a Virtual Machine is Thick Lazy-Zeroed in case of Block-Level storage. You can change the type of disk provisioning at the time of creating a VM in Block-Level Storage. Now I"ll talk about the three types:-

    1. Thin Provisioning:- Allocation and Zeroing of blocks are done on demand upon the first write to block. The file blocks are zeroed out when blocks are allocated. File block allocation will be dynamic i.e non-contiguous. Mostly used in Cloud environments or automated infrastructures where provisioning required will be fastest.  This now defaults in case of Virtual SAN.

    2. Thick Provision: i)Eager Zeroed:-  File blocks allocated are allocated and Zeroed at the time of vmdk(Disk) creation. In this blocks will be fully allocated & will have highest chances of contiguous file blocks allocation. It will be taking more time during creation.

    3. Thick Provision: ii) Lazy Zeroed:-  Blocks are fully preallocated but blocks are zeroed out when each block is first written to. It will be faster than Thick Provision Eager Zeroed.  Chances will be higher of contiguous file block allocation.


    There is a topic of debate when to use Thick Provision Eager Zeroed and When to use Thick Provisioned Lazy Zeroed. There's an interesting topic available Eager thick vs Lazy thick disk performance




    Sunday, 29 October 2017

    Virtual Machine - Edit Settings - (Disk) Part 3(i)

    07:09 0
    Virtual Machine - Edit Settings - (Disk) Part 3(i)

    So after writing the series for CPU & Memory. This series will be dedicated to Settings related to vmdk i.e Virtual Machine Disk.


    • The first option is the size of the virtual machine which can be in MB, GB or TB.
    • Maximum Size is the size of the datastore up to which VM hard disk could expand.
    VM Storage Policies in production environments is created for storage tiering if using traditional storage i.e Block-Level Storage, Virtual San or a Virtual Volume.

    VM Storage policies can be created & managed from vSphere Web Client. I"ll be writing a series of post for different policies which can be created for Virtual SAN, Virtual Volume & Block level storage.




    Thursday, 17 August 2017

    Virtual Machine - CPU (Reservations, Shares & Limits) Part 1(viii)

    06:38 0
    Virtual Machine - CPU (Reservations, Shares & Limits) Part 1(viii)
    As I said, we"ll be covering the CPU - Reservation, Shares & Limits.

    The SI Unit for CPU is hertz(Hz), frequency or clock cycles per second that were somewhat limited to the first generation CPUs. Now in the 21st Century, CPU's have larger processing capability with more clock cycles per second thereby measured in MHz(MegaHertz) i.e one million cycles per second & GHz(GigaHertz) i.e one billion cycles per second.

    RESERVATION: Guaranteed minimum allocation of Resources.

    LIMIT: Upper bound of given resource or the maximum amount of resource CONSUMER is entitled from physical(ESXi). 

    SHARESPriority of a VM's access to a given resource.


    In Case of CPU, Share values can be defined as Low, Normal, High & Custom.

    In the 2 VMs named, CPU1(Girish01-2), CPU2(Girish01-3). I am running a script to increase the CPU activity.
    In other 3 VMs named VM01(Low), VM02(Normal) & VM03(High) running normally with different share values.
                               


    People are use to ask is there a performance impact on the VMs!! Nah!. There will be NO IMPACT till the time every one is not hungry for resource as soon as every one is hungry for the resource, there you go!!

    As given in the screenshot with the help of CPU shares, the VM01 with high is getting more priority and henceforth.




    Reference:Click here.





    Tuesday, 8 August 2017

    Virtual Machine - Edit Settings (Memory) Part 2 (i)

    03:36 0
    Virtual Machine - Edit Settings (Memory) Part 2 (i)
    In my previous Series of posts, we have explored options available under CPU(Part1 to Part7).
    In this series, we are going to talk about Memory options as below:-

    As said for CPU & Memory Reservations, Shares & Limits,  I"ll be running a separate post after completing all the options related to virtual machine edit settings.

    Here, In this post, the option to explore is Memory Hot Plug.

    It can not be enabled when the machine is in running state and as told in case of CPU Hot Add posts earlier, it has to be supported by the operating system as in these given KB2020993 & KB2051989 articles.

    Using this option, Memory Hot Plug: Memory can only be increased, it can not be decreased.
    Given below is the screenshot of Windows Server 2012, Standard Edition that supports increasing the memory on the fly.


    Before:                                 After:
         


    Friday, 4 August 2017

    Virtual Machine - Edit Settings (CPU) Part 1 (vii)

    04:59 0
    Virtual Machine - Edit Settings (CPU) Part 1 (vii)
    In my previous post, I have talked about scheduling affinity.
    In this post Part 7, I am going to talk about CPU/MMU Virtualization.



    In this screenshot as you can see, I have used vSphere Web Client, Right Click on virtual machine & edit settings.

    11. CPU/MMU Virtualization:- By default, it is automatic. Here, we get three options in this drop-down i.e
    i) Software CPU & MMU
    ii) Hardware CPU, Software MMU
    iii) Hardware CPU & MMU


    Software CPU - Software Based CPU Virtualization
    Hardware CPU - Hardware assisted CPU Virtualization
    Hardware MMU(Memory Management Unit) & Software MMU (Memory Management Unit)

    For better understanding refer to this article.






    Wednesday, 2 August 2017

    Virtual Machine - Edit Settings (CPU) Part 1 (iv)

    11:21 0
    Virtual Machine - Edit Settings (CPU) Part 1 (iv)
    In my previous post, we have talked about Performance Counter.
    In this post CPU Part 6, We are going to talk about Scheduling Affinity


    In this screenshot as you can see, I have used vSphere Web Client, Right Click on virtual machine & edit settings.

    10. Scheduling Affinity:-  By default, a virtual CPU is scheduled to run on a logical CPU. Using this feature one can restrict a VM to a dedicated LCPU. 
    EX:- Lets say we have ESXi with 8LCPU numbered from 0 to 7.
    If we are using Scheduling affinity then it can be specified as 1,2,3,4-6 either way means you can specify dedicated LCPU number or the range of LCPU that can be used.
    USE CASE:- For CPU Intensive VM performance testing purpose to check whethere scheduling it to dedicated LCPU enhances its performance or to check VMs throughput and response time when pinning it down to LCPU.

    Tuesday, 1 August 2017

    Virtual Machine - Edit Settings (CPU) Part 1 (v)

    07:45 0
    Virtual Machine - Edit Settings (CPU) Part 1 (v)
    In my previous post, we have talked about CPUID Mask.
    In this post of CPU Part 5, We are going to talk about Performance Counter



    In this screenshot as you can see, I have used vSphere Web Client, Right Click on virtual machine & edit settings.

    9. Enable Virtualized CPU performance counters: It is mainly used by developers for debugging software(software profilers) which is going to run in a VM such as vTune, OProfile, CodeAnalyst.
    This feature is going to make some additional CPU related performance counters (MSRs-Model Specific Registers) available to the guest OS.

    There is a KB2030221, which is related to what CPU Performance counters are exposed to guest OS.