Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

He is using Process.PrivateMemorySize64 in .NET. It doesn't double-count, because it only counts non-shared pages.

Non-shared working set pages are probably the most relevant measure, as a process-per-tab model will have lots of address space and may use memory mapping extensively, and so have lots of non-shared pages, but not actually touch many of those pages, and end up with a relatively small working set. However, .NET's Process class doesn't have an equivalent property to Process Explorer's "WS Private" column.

EDIT: Sure enough, a quick eyeball of some Chrome subprocesses using Process Explorer gives me these results:

    Private        WS Private
       1416               460
      14916              7952
      12084              9780
      16780             13972
      16164             11336
      14812             12040
      10284              4444
      19140             15400
All numbers in KB. Non-shared working set impact on an unloaded machine, probably the most important measure for Windows, is usually quite a bit less than the private bytes.


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: