From ee6f6d0e1323ec2aedf49bc3c5d439c28e471242 Mon Sep 17 00:00:00 2001 From: Zhengfa Dang Date: Tue, 2 Jan 2024 15:12:17 +0800 Subject: [PATCH] Update README.md --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index 289db07..73bb6ef 100644 --- a/README.md +++ b/README.md @@ -108,9 +108,8 @@ 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 @@ -118,7 +117,6 @@ formatBytes((vm_stat.purgeable_count + vm_stat.external_page_count) * page_size, ``` // 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