From 94f69276cdb7444969c18f11ec3e5498fbc32aea Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Tue, 9 May 2023 22:18:50 -0700 Subject: [PATCH] romfs: revert memory usage increases; we'll handle torture games case-by-case. --- stratosphere/ams_mitm/source/amsmitm_main.cpp | 2 +- stratosphere/pm/source/impl/pm_resource_manager.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stratosphere/ams_mitm/source/amsmitm_main.cpp b/stratosphere/ams_mitm/source/amsmitm_main.cpp index 97e735f6e..d52b6c595 100644 --- a/stratosphere/ams_mitm/source/amsmitm_main.cpp +++ b/stratosphere/ams_mitm/source/amsmitm_main.cpp @@ -24,7 +24,7 @@ namespace ams { namespace { /* TODO: we really shouldn't be using malloc just to avoid dealing with real allocator separation. */ - constexpr size_t MallocBufferSize = 32_MB; + constexpr size_t MallocBufferSize = 16_MB; alignas(os::MemoryPageSize) constinit u8 g_malloc_buffer[MallocBufferSize]; } diff --git a/stratosphere/pm/source/impl/pm_resource_manager.cpp b/stratosphere/pm/source/impl/pm_resource_manager.cpp index 6c5805b5d..ff016dafb 100644 --- a/stratosphere/pm/source/impl/pm_resource_manager.cpp +++ b/stratosphere/pm/source/impl/pm_resource_manager.cpp @@ -33,7 +33,7 @@ namespace ams::pm::resource { constexpr size_t ReservedMemorySize600 = 5_MB; /* Atmosphere always allocates extra memory for system usage. */ - constexpr size_t ExtraSystemMemorySizeAtmosphere = 32_MB; + constexpr size_t ExtraSystemMemorySizeAtmosphere = 24_MB; /* Desired extra threads. */ constexpr u64 BaseApplicationThreads = 96;