Windows - Commit Size vs Virtual Size

前端 未结 3 2057
猫巷女王i
猫巷女王i 2020-12-13 02:12

i would like to know the exact difference between Commit Size (visible in the Task Manager) and Virtual Size (visible in SysIntern

3条回答
  •  孤城傲影
    2020-12-13 02:51

    Virtual size is the size of the process's virtual address space.

    When allocating memory, you can request an address range without actually committing memory behind it. Those address do not point to physical memory until a second allocation call is used to commit them.

    Read more on VirtualAlloc. Linux has the mmap function that does the same thing.

提交回复
热议问题