The Oven

Project World => Win7PE SE HomePage => Topic started by: hgdagon on September 04, 2018, 04:48:51 AM

Title: Can I have virtual memory going on?
Post by: hgdagon on September 04, 2018, 04:48:51 AM
Currently, Windows shows 0MB of virtual memory. Instead, I would like it to make a swapfile on the flash drive of at least 1GB. Any way I can do that?
Title: Re: Can I have virtual memory going on?
Post by: was_JFX on September 04, 2018, 08:33:46 AM
You can use swapadd (http://www.ltr-data.se/opencode.html/) to add a pagefile.

swapadd C:\pagefile.sys 1GB 1GB
Title: Re: Can I have virtual memory going on?
Post by: hgdagon on September 04, 2018, 11:28:33 AM
You can use swapadd (http://www.ltr-data.se/opencode.html/) to add a pagefile.
Thanks a lot for the answer. I'll give this a try and comment back. My slight concern is that it looks like I would have to run the command during every boot.
Title: Re: Can I have virtual memory going on?
Post by: was_JFX on September 04, 2018, 01:42:29 PM
Yes, that right you need to do it after booting.
Title: Re: Can I have virtual memory going on?
Post by: hgdagon on September 04, 2018, 11:02:01 PM
Sadly, this doesn't work. I added the command to autorun - it did nothing (Yes, I'm sure the autorun is being processed), I ran command manually - still nothing. Manually unticking "Autamtically manage..." and adding a pagefile requires restart, and it won't be saved. I need a build time solution. Any compatible plugins for that?
Title: Re: Can I have virtual memory going on?
Post by: RoyM on September 05, 2018, 02:14:01 AM
for x64 olof's swapadd works great.

for x86, I must goto x:\windows\system32\SystemPropertiesAdvanced.exe/Settings/Advanced - Change/
Select Drive/ Select Custom Size / Set Initial, Set Max / Set / OK.
It may ask to overwrite existing pagefile.sys <-- select yes.
pagefile will now work with x86.

I would like to have pagefile available @x86 Win10pese upon boot.
So far it has eluded me, As it is on the backburner, I have plenty of workarounds to get desired result.
Happy Baking.
RoyM
Title: Re: Can I have virtual memory going on?
Post by: hgdagon on September 05, 2018, 02:35:36 AM
for x64 olof's swapadd works great.
Hm... I used the x86 version. Does it not work in win7x86?

for x86, I must goto x:\windows\system32\SystemPropertiesAdvanced.exe/Settings/Advanced - Change/
Select Drive/ Select Custom Size / Set Initial, Set Max / Set / OK.
It may ask to overwrite existing pagefile.sys <-- select yes.
pagefile will now work with x86.

Um... No? That's what I described above, and it requires a restart, so it won't be saved. I've tried that before posting. :sad:
Title: Re: Can I have virtual memory going on?
Post by: hgdagon on September 07, 2018, 04:53:36 PM
I forgot to mention that the error code I'm receiving is "Page file creation failed: An invalid parameter was passed to a service or function as the second parameter". I've tried passing 1GB, 1G, and simply 1024, but the result is always the same. Any ideas?
Title: Re: Can I have virtual memory going on?
Post by: was_JFX on September 07, 2018, 05:19:09 PM
Well, report it to the author of the tool.