Memory usage - Virtual Bytes

Mikhail Firsov 1,876 Reputation points
2022-04-11T10:58:50.247+00:00

Hello!

Today got puzzled a bit by running this command on one of my HV servers:

Get-Process |
Format-Table Name,
@{n='VM(MB)';e={$_.VM / 1MB -as [int]}} -autosize

191873-2.png

Am getting it right that on the system with 20GB of virtual memory this command returns the VM size =~2TB???

Regards,
Michael

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,171 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,381 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 39,371 Reputation points
    2022-04-14T08:48:51.01+00:00

    Hi there,

    This is right in accordance with the Process Virtual Memory Concept.

    Processes are not aware of physical hardware. Each process is given its own, private, virtual address space which is a finite amount of virtual memory

    Each process has a finite amount of virtual address space that it cannot exceed. The amount of virtual memory per process depends on if it was compiled as 32-bit or 64-bit. x86 is the 32-bit implementation of Windows. x64 is the current 64-bit implementation of Windows.

    For example, 64-bit processes have 8 TB of virtual address space.


    --If the reply is helpful, please Upvote and Accept it as an answer–

    1 person found this answer helpful.
    0 comments No comments

6 additional answers

Sort by: Most helpful
  1. Rich Matheisen 45,091 Reputation points
    2022-04-15T19:10:10.337+00:00

    I'm guessing that you "don't understand it/can't find the explanation" because you haven't looked for one. A search for "windows server default allocation size of 64-bit process virtual memory" finds these two links (and more):

    virtual-address-space
    memory-limits-for-windows-releases

    0 comments No comments

  2. Mikhail Firsov 1,876 Reputation points
    2022-04-18T07:15:45.62+00:00

    You're guessing wrong: information about the memory limits is not the answer to my question.

    Thank you once again,
    Michael

    0 comments No comments