https://git.reactos.org/?p=reactos.git;a=commitdiff;h=5d85d534e0a54bb5b263adee98c7d2d2b3b5a1b5

commit 5d85d534e0a54bb5b263adee98c7d2d2b3b5a1b5
Author:     Thomas Faber <[email protected]>
AuthorDate: Sun Nov 10 16:13:45 2019 +0100
Commit:     Thomas Faber <[email protected]>
CommitDate: Sun Nov 10 16:28:38 2019 +0100

    [SMSS] When determining page file size, keep more free disk space. CORE-6839
    
    64 MB used to be enough to at least finish 2nd stage, but that does not
    always seem to be the case anymore. Leaving this little free space does
    not make for a good user experience either way.
    256 MB is still not much, but at least provides slightly more usability.
---
 base/system/smss/pagefile.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base/system/smss/pagefile.c b/base/system/smss/pagefile.c
index 6af9b214951..51429a18867 100644
--- a/base/system/smss/pagefile.c
+++ b/base/system/smss/pagefile.c
@@ -23,7 +23,7 @@
 #define MEGABYTE                        0x100000UL
 #define MAXIMUM_PAGEFILE_SIZE           (4095 * MEGABYTE)
 /* This should be 32 MB, but we need more than that for 2nd stage setup */
-#define MINIMUM_TO_KEEP_FREE            (64 * MEGABYTE)
+#define MINIMUM_TO_KEEP_FREE            (256 * MEGABYTE)
 #define FUZZ_FACTOR                     (16 * MEGABYTE)
 
 //

Reply via email to