Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
zfdang authored Jan 2, 2024
1 parent 5e3a8fe commit ee6f6d0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,15 @@ formatBytes(hbi.max_mem - (vm_stat.free_count - vm_stat.speculative_count + vm_s
## cached memory

```
// cached file memory = (purgeable_count + external_page_count) * page_size
// cached files memory = purgeable_count + external_page_count; verified
formatBytes((vm_stat.purgeable_count + vm_stat.external_page_count) * page_size, mem.cached, sizeof(mem.cached), human);
```

## app memory

```
// app memory = internal_page_count - purgeable_count; verified
formatBytes((vm_stat.internal_page_count - vm_stat.purgeable_count) * page_size, mem.app, sizeof(mem.app), human);
```

## wired memory
Expand Down

0 comments on commit ee6f6d0

Please sign in to comment.