Opened 14 years ago
Closed 13 years ago
#7714 closed bug (fixed)
Total memory usage wrong in user applications
Reported by: | leavengood | Owned by: | anevilyak |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | Kits/Kernel Kit | Version: | R1/Development |
Keywords: | memory usage wrong | Cc: | |
Blocked By: | Blocking: | ||
Platform: | All |
Description
As can be seen in the attached screenshot, this is hrev41768, an earlier R1/alpha3 GCC4 RC.
All user applications show the wrong amount for total memory, including the bar in ProcessController, the AboutSystem app, and ActivityMonitor. Going into KDL and invoking the avail commands seems to show the correct usage (about 850 MB while I was compiling Haiku in the screenshot.)
The screenshot shows just jam alone consuming almost 370 MB, yet the total shown in AboutSystem is 161 MB. I know we like to talk about Haiku not using much memory, but let's not just lie about it :)
Attachments (3)
Change History (6)
by , 14 years ago
Attachment: | memory_wrong.png added |
---|
by , 14 years ago
Attachment: | kdl_output_avail_page_stats.txt added |
---|
Output from KDL avail, page_stats and swap commands
follow-up: 3 comment:1 by , 14 years ago
The problem is in vm_page_get_stats()
:
info->used_pages = gMappedPagesCount - blockCachePages;
As can be seen in the page_stats
output a lot of pages are inactive (i.e. haven't been used for a long time). Those are ignored here. Adding them will probably fix the issue.
comment:2 by , 13 years ago
Owner: | changed from | to
---|---|
Status: | new → in-progress |
comment:3 by , 13 years ago
Resolution: | → fixed |
---|---|
Status: | in-progress → closed |
Screenshot showing incorrect memory usage