Skip to content

RPCS3: Notify RAM shortage, Log current and peak RAM usage - #18103

Merged
elad335 merged 1 commit into
RPCS3:masterfrom
elad335:sssssss
Mar 27, 2026
Merged

elad335 merged 1 commit into
RPCS3:masterfrom
elad335:sssssss

Conversation

@elad335

@elad335 elad335 commented Jan 24, 2026 •

Copy link
Copy Markdown
Contributor

RAM stats are currently Windows-only until implementation and testing is done on other platforms.

Comment thread rpcs3/util/sysinfo.cpp
return { status.ullTotalPhys, status.ullAvailPhys };

#else
// TODO

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing other OS implementations, just to keep in mind

@elad335
elad335 marked this pull request as ready for review March 27, 2026 16:15
@elad335
elad335 enabled auto-merge (rebase) March 27, 2026 16:30
@elad335
elad335 disabled auto-merge March 27, 2026 16:41
@elad335
elad335 enabled auto-merge (rebase) March 27, 2026 16:44
@elad335
elad335 merged commit a452365 into RPCS3:master Mar 27, 2026
10 checks passed

if (elapsed_us >= log_interval_us)
const u64 current_mem_use = utils::get_memory_usage().second;
const u64 mem_use_increase = current_mem_use >= max_memory_usage ? current_mem_use - max_memory_usage : 0;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why >= instead of >? You're just doing an extra subtraction to get 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants