添加什麼來獲取 Windows 上提交的記憶體大小?

添加什麼來獲取 Windows 上提交的記憶體大小?

根據任務管理器,我提交的記憶體為 7.1 GB,但我只能看到我的進程使用了大約 3.6 GB

我正在使用 Powershell 來Get-Process | Select Name, PagedMemorySize, PrivateMemorySize獲取每個進程的記憶體大小並添加任一列。

我應該使用不同的色譜柱嗎?或者除了進程記憶體使用之外我還需要添加其他內容嗎?

答案1

這應該與您在任務管理器中看到的內容相符

get-wmiobject win32_operatingsystem | Select @{L='commit';E={($_.totalvirtualmemorysize - $_.freevirtualmemory)*1KB/1GB}}

相關內容