yashsingh1/xdaforums huggingface dataset:
[Windows 10 Mobile] compu829:
Hey guys,

My Lumia 640 was running slow on Windows 10. It seemed like my apps were always closing and taking forever to reload.

The default page file settings regardless of the amount RAM in the phone is locked at 256MB. Where the persistent storage is also flash memory, writing to the page file shouldn't cause any major slowdowns.

I used interop tools and the data located at https://msdn.microsoft.com/en-us/library/ms912851(v=winembedded.5).aspx to set the minimum size to 128MB and the maximum size of the page file to 768MB. The results were immediate!

Thinking it was a fluke, I rebooted my phone, and I noticed that it starts much faster now, too! As always, ymmv, but post your results in this thread if it helps!

Additional Info:

1. Setting the location of the page file to anything other than "u:\pagefile.sys" will cause storage sense to display a virtual memory size of 0 MB. To verify that your change worked, enable MTP Root Access in Interop Tools, plug your phone into a pc, and then navigate to the location of the new page file and verify that it was created.

2. Don't set the max size of the page file to be larger than the amount of free space available in the "apps and games" area of the phone. Setting the max limit too close to the amount of free space will cause crashes as the apps will lose "breathing room".

Edit 2:

After playing with this for a while, I discovered that the phone prefers a static page file. The settings that gave me consistently good results without crashing was to move the pagefile to the system partition (c:\pagefile.sys) and to lock it at 512 512. I am on rs1.

There appears to be an rs1 bug that if the memory usage goes beyond a certain number, the phone will become unstable. This is unrelated to the page file adjustment. How do I know? My brand new Alcatel IDOL 4S with Windows 10 gets wonky if I open too many apps. It has 4GB or RAM that is OS limited to 3.5 GB.
[Windows 10 Mobile] durbaca:
It worked magiccccc
[Windows 10 Mobile] augustinionut:
Really? https://xdaforums.com/windows-10-mobile/test-build-10572-t3241559
[Windows 10 Mobile] compu829:
That's cuz people are dumb....the trick is to make it dynamic and let the OS resize it as needed. Locking the page file to a static size isn't even recommended by Microsoft, so I'm shocked they do it with Windows phone...

The system partition is also very tiny, so if a large pagefile is desired, the path should be modified from u:\pagefile.sys to u:\Data\pagefile.sys.

U:\ is already mapped to the data partition, so there is no need to change this.

Also, never NEVER move the pagefile to an SD card. That's just asking for trouble....
[Windows 10 Mobile] augustinionut:
Lumia 640 XL come by default with 256 256 page size. So ask microsoft why.
[Windows 10 Mobile] compu829:
[MENTION=6615698]augustinionut[/MENTION] I am aware...my new idol comes the same way...i have no idea why they do it....it goes against everything the recommend.... https://blogs.technet.microsoft.com/motiba/2015/10/15/page-file-the-definitive-guide/
[Windows 10 Mobile] ridershahmir:
Guys any noob tutorial please ,,,
[Windows 10 Mobile] augustinionut:
3# post.
[Windows 10 Mobile] SouraTR:
Virtual Memory under Storage changed to 0 bytes

Phone working though :confused: :confused:

I'm on a Lumia 640
[Windows 10 Mobile] joldisadrian:
Which interop tools version did you used ?
[Windows 10 Mobile] karaki93:
I'm wondering about the performance of apps after such action and crashes among heavy apps like facebook??
[Windows 10 Mobile] compu829:
I keep Facebook on my SD card. For me, Facebook went from not loading at all to loading if I let it sit for a while with this mod.
[Windows 10 Mobile] compu829:
It will do that for two reasons:

1. You changed the location of the page file to something other than "u:\pagefile.sys". If you change it, the size will stop showing up in storage settings.

2. You set the minimum size of the page file to "0".
[Windows 10 Mobile] compu829:
I used both RC2 and RC3.
[Windows 10 Mobile] thebreed:
No crashes so far.

I've set the pagefile to 128 768. Facebook (internal storage) loads in a snap without Messenger, Messenger (internal storage) loads in a snap without Facebook, but it doesn't work if you have both of them installed. Maybe I'll up the maxmem a bit. :) Thanks for the info. :)

640XL 15031
[Windows 10 Mobile] joldisadrian:
Succes !

Well i have finally succeed to change the page file. After all the struggle i can confirm that Lumia 640 it's more snappy than ever.

Facebook app still loading slow or ending with a crash.:eek:(Facebook it's on sdcard, messenger on phone)

I have only one bug with the lock screen display not displaying correctly on wallpaper or not displaying the wallpaper.:confused:

I have attached some screenshots. Enjoy !

If you have any question please don't hesitate.

Used Interop Tools RC3 with dependencies.

Renamed "u:\pagefile.sys 256 256" to "u:\pagefile.sys 1024 1024"

:cool:
[Windows 10 Mobile] thebreed:
UPDATE#1: 512 1024 works fine. I have 2 gigs of internal mem free though.

UPDATE #2: 1024 1536 works fine. Now Facebook and Messenger can coexist on internal storage, and both work fine. Much, much better than before. Happy.

If this is a placebo effect, I don't mind. :D
[Windows 10 Mobile] SouraTR:
Confirmed

When I change the string to 256 768, it shows VM as 0 bytes

Changed it 768 768

Now VM is 597MB

The device feels a little snappier
[Windows 10 Mobile] lordlittlebrooks:
For anyone else looking on how to do this, I found this article on Windows Central that describes Interop Tools and how to go about using it.

http://www.windowscentral.com/interop-tools-windows-10-mobile
[Windows 10 Mobile] ondy182:
I've got interop tools installed and changing the value doesn't work. It stays the same (256). Any help?
[Windows 10 Mobile] tuxdude143:
Just did this on my lumia 650. The results are night and day. Apps like Fenice and Tweet It which crashed on me often before are running smooth as butter now which is awesome! In my case I set my page file to 1024 1536. I had to reboot first before the changes took effect but once they did they became easily noticeable. I used Interop tools RC3 to make the registry edit.
[Windows 10 Mobile] Stijn Herreman:
Works like a charm on a Lumia 735.
[Windows 10 Mobile] karaki93:
I tried this on my Lumia 920 by changing the values to 1024

The phone runs smoother now but the weird thing is the improvement in battery life !!
[Windows 10 Mobile] raghulive:
These paging file size depends upon internal memory and RAM. Exceeding these value become virtual memory 0(dynamic virtual memory), increasing paging gives some smoothness.

For those who are wandering valid paging file size for 950 xl

1792 1792

It's 1.75GB
[Windows 10 Mobile] SouraTR:
Is it really working for anyone or is it Placebo effect?

I admit apps load faster but resuming and general stutterness is still the same.

Lumia 640
[Windows 10 Mobile] ruleh:
There used to the recommendation to set the page file to a static size of 1.5x the ram size.

At least for old desktops that was....
[Windows 10 Mobile] delsolman:
I have 950xl and tried changing value stays the same. I tried to follow steps of unlocking vreg, sdk, deployng 950xl but can't get it to work. is there any simplar way?
[Windows 10 Mobile] ridershahmir:
Don't know , didn't give it a try
[Windows 10 Mobile] thebreed:
It works on 15043. Better than on 15031. (1536 1536)

640XL
[Windows 10 Mobile] raghulive:
First install WP sdk tools 8.0 lite as administrator.

Deploy vcREG_1_6_W10M.xap to phone memory.

open the app

For Other Devices :-

Go to (. . . ) ==> Classic unlock

check the box "Live Interop/Capability Unlock" and click on " Apply ".

if it says "Complete " popup ,device interop unlocked

For x50 devices(950/xl,550) :-

first you need download iutool and install it

Open vcREG then

Go to (. . . )==>For x50 interop unlock

then click on Step 1 , after this only you have to deploy "acer.service.acersystemservice.spkg" found in vcREG.zip,many are missing the order.

in PC create a folder with name "cabs" in " C " drive place "acer.service.acersystemservice.spkg" in it.

open command prompt as administrator paste below code

cd C:\Program Files (x86)\Windows Kits\10\Tools\bin\i386

iutool -v -p C:\cabs\acer.service.acersystemservice.spkg

now copy " NdtkSvc.dll " and "newndtksvc.dll" to phone memory Documents folder ,don't do this step before

then open Vcreg app follow step 2 and restart

then step 3 then restart

finally click on live interop-unlock check box.

your device is inteop unlocked

for those who want to increase Virtual memory in tweaks.xml

<tweak category="System" name="Virtual Memory - increase" type="enum" description="For best Multi-Tasks - Default is 128(others)/256(950/xl)" reboot="true">

<entry path="HKLM\System\ControlSet001\Control\Session Manager\Memory Management" name="PagingFiles" type="string">

<value name="1GB - others">u:\pagefile.sys 1024 1024</value>

<value name="1.5 GB -Others try at Reset Risk">u:\pagefile.sys 1536 1536</value>

<value name="1.75 GB - 950 XL only">u:\pagefile.sys 1792 1792</value>

</entry>

</tweak>
[Windows 10 Mobile] delsolman:
help

hi raghulive I feel like i am getting closer, but I am showing this error when I try to use iutool command. is there something i am missing? any help is appreciated!!

Log file: C:\Users\showt\AppData\Local\Temp\IUTool-{299338D7-E9AD-4D02-BD74-B341894FDEEF}.etl

[1] Started device 4f3112d9f994e76a619e113d7136b8d0

[1] Transferring files started

[1] Transferring files complete: 1 file

[1] Update started

[1] Installation failed (HRESULT = 0x800b0114)

[1] Failed (0x800b0114)

ERROR: 0x800b0114
[Windows 10 Mobile] raghulive:
i think acer service package already installed,go to vcreg click on classic unlock

click on "live inter-op unlock "checkbox and your done.

if CustomPFD_0600.xap successfully installed means ,your device is unlocked

even though your device is x50 series ,if package already installed ,one and only way is complete it by going classic unlock.

normal steps 1 .2 .3 can't complete, as acer service is already installed.you can 't go steps1,2,3 until re-flash,reset does't work

one more thing install acer service package after 14393,it will not work

:good:
[Windows 10 Mobile] fer_cabr:
How to restore default size of the file?
[Windows 10 Mobile] augustinionut:
:highfive: Hard reset?
[Windows 10 Mobile] delsolman:
by Classic unlock you mean Interop/Cap Unlock check box? I tried to turn it on but it turns off. So not where the issues is.

for those who have tried on 950/950xl does it make any difference in terms of performance{
[Windows 10 Mobile] edwardmax2010:
I did this on my Lumia 730 using the value 1536 1536 but based from 1.5x RAM for PC. I still don't see any issues like phone getting stuck or other freezing problem. It's really noticeable especially for apps like Messenger and Facebook. I can multitask between Edge, Facebook (though it jumps to topmost but doesn't crash) and Messenger even adding apps like MyTube! and Manga Blaze works like charm. I do think it's noticeable for phones with 1 GB or 2 GB RAM but I do think Lumia 950/XL are fine without this.
[Windows 10 Mobile] raghulive:
ok now with default size

<tweak category="System" name="Virtual Memory - increase" type="enum" description="For best Multi-Tasks - Default is 128(others)/256(950/xl)" reboot="true">

<entry path="HKLM\System\ControlSet001\Control\Session Manager\Memory Management" name="PagingFiles" type="string">

<value name="128 - devices with 128MB VM">u:\pagefile.sys 128 128</value>

<value name="256 - default for 950/xl">u:\pagefile.sys 256 256</value>

<value name="1GB - others">u:\pagefile.sys 1024 1024</value>

<value name="1.5 GB -Others try at Reset Risk">u:\pagefile.sys 1536 1536</value>

<value name="1.75 GB - 950 XL only">u:\pagefile.sys 1792 1792</value>

</entry>

</tweak>

unless virtual memory 0,the file will be modified according to given size.if it is 0 RESET is only option

---------- Post added at 18:32 ---------- Previous post was at 18:26 ----------

or else

go to (. . .) " x50 Series Unlock"

click on belie check boxes

"Live Inteop/Capbility Unlock"

"RestoreNDTKsvc 950/xl"

click on "Apply"

there will not much performance improvements ,but it will become some smoothness
[Windows 10 Mobile] EspHack2:
I wonder what you mean by "reset risk" I already had virtual memory show as 0 bytes a few times and I could revert it, it appears the OS just ignores your set values and uses a default 406mb pagefile

but now after playing with it further, registry changes wont stick after rebooting, and app install-updates are failing, is that what you mean? that I will have to factory reset this phone?

I was thinking of just waiting for release preview ring to get a good RS2 build, yea I'm lazy af
[Windows 10 Mobile] raghulive:
virtual memory 0 means automatic usage buy had some inconsistency while playing heavy apps/games,better to Hard- reset , "reset risk" is only for the devices with 128MB virtual memory,may not improve with 1.5GB value,leads to 0 Virtual memory. can't get back to default until Hard Reset
[Windows 10 Mobile] augustinionut:
Where to see actual page file?
[Windows 10 Mobile] EspHack2:
is it known why that happens? is there a limit on how much vm you can assign other than free space? now I got a phone showing 0 bytes so I should factory reset it?
[Windows 10 Mobile] karaki93:
that depends on your phone and how the internal memory is partitioned
[Windows 10 Mobile] augustinionut:
I found: storage, this device, system&reserved.
[Windows 10 Mobile] raghulive:
obviously you need to reset for better performance.but if you'r on 15xxx build and 950/xl device,after reset interop unlock will fail forever.need to comeback flashing ffu/WDRT (10586.xxx).then interop-unlock it then apply tweaks then need to update for 15xxx build.
[Windows 10 Mobile] zaid khan7:
valid paging size for lumia 930 2gb ram? currently the VM is 256mb
[Windows 10 Mobile] dxdy:
you set how many you want, no strict rule about this

u:\pagefile.sys 256 512

or

u:\pagefile.sys 256 768

or

u:\pagefile.sys 512 512

or

u:\pagefile.sys 512 768

or

u:\pagefile.sys 512 1024

you can set any value you want... but of course check free memory on phone
[Windows 10 Mobile] EspHack2:
thats what anyone would think, but for some reason it ignores some values, tried 2gb a few times and it just ignores it and sets a default 406mb pagefile
[Windows 10 Mobile] dxdy:
dont know, not tried higher than 512/1024 here from Lumia 735, virtual memory now is 512 MB
[Windows 10 Mobile] EspHack2:
want to test my theory? set it to 2048 or 4096 and see what happens
[Windows 10 Mobile] raghulive:
Max 1.99GB only on lumia 950Xl with u:\pagingfiles 2047 2047

On15047 without unlock,vm value changes from 0 to supported values[256mb==>1.99GB]

Sent from mTalk
[Windows 10 Mobile] surya467:
*facepalms*

that is because ,

1 MB = 0.000977 GB

1 GB = 1,024 MB

2047 Megabytes	(MB)	=	1.999024	Gigabytes	(GB)
[Windows 10 Mobile] marianodelfino:
Lumia 635 W10M changed the value from 256 256 to 512 512, now i have 608 VM

Don't know if it's a placebo effect or really happening, seems to be a bit faster

#Edit 1: tried 256 768 got 0 vm, found the solution to 0 vm without hard reset go to this path -> HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\ExistingPagingFiles value is \??\U:\pagefile.sys change it to u:\pagefile.sys and you will have your vm back, once you do this the OS will automatictly generate the pagefile and will set that value to \??\C:\windows\number \??\U:\pagefile.sys. At least that worked for me. number is the value you set to page, for example 1024 will say \??\C:\windows\1024 \??\U:\pagefile.sys

#Edit 2: Switched values to 1024 1024 from 512 512 and same result, i still have 608 vm

#Edit 3: Moved the pagefile to C partition, device feels a lot faster but... Still the same 608 vm value no matter the value i use.

values i changed:

PagingFiles to c:\pagefile.sys 512 512

#Edit 4: Made a hard reset to test something and the thing was the first time i accidently write the values on ControlSet001 and for some reason that caused the bug, now if i put 512 it creates a 512 page, not 608 like before. Moving the page to C: increased the device speed a lot but when the system tried to update to .1066 it said "the pagefile was to small", i don't know if this is because of the bug i had or because of the page moved to C:, the speed boost is real but i cannot ensure that the update problem was due to that or because my device was bugged.
[Windows 10 Mobile] Mastern00b:
I've hot an 640xl. What values should I put there?
[Windows 10 Mobile] Donz7733:
It worksss...

Changed from 256 Mb to 1 Gb VMemory :)

I can switch between whatsapp/fb/edge without any resuming popups or reloads (Used to see them before)

Also the device feels smoother (or maybe I am imagining it :D)

Just awesome...!

Will keep testing.

Hope I won't face any new issues

Device : Lumia 730 with latest Win10 production build

Interop tool RC3 version

Current Pagefile Values : 1024 1024

(512 1024 -> 512 VM / 768 1024 -> 768 VM)

I didn't try higher values as I am happy with the current results

FYI: Was unable to edit pagefile values / interop unlock with 1.7 beta version
[Windows 10 Mobile] Volpenger:
lumia 1020 changed to 1.25 GB Current Pagefile Values : 1280 1280

good overall performance.
[Windows 10 Mobile] GeoffreyK:
I can confirm that this speeds up my 1020 on RS1 (14393.953). Feels a lot snappier, especially for apps that are already open in the background. Lumia Camera also opens faster.
[Windows 10 Mobile] joao_ab3:
What are the values that you set on 640?
[Windows 10 Mobile] LauchaX:
Hi, on a 635 512ram HardResetedW10 I've changed u:\pagefile.sys with fixed values. first 2048 2048>VM621, 1024 1024>VM621, and when I set it to 512 512 VM stayed CERO no matter what other values I write now. I've never changed pagefile.sys to a new partition as many of you suggest. Could you finally set VM higer values? thanks for any ideas
[Windows 10 Mobile] dxdy:
is useless tu use higher values... in reality not necessary to use more than 3x default VR (768)... for example set minimum memory to 512 and max to 768. in storage settings after few days check did VM raise or stay on 512 MB... if show 512 then your phone not need more than 512 VM...

cero? you mean zero? if you have virtual RAM zero (0) then you enter wrong values (space, line break)...

for example correct value: u:\pagefile.sys 256 768

wrong values (results with 0 VM):

u:\pagefile.sys 256 768 (two spaces between numbers)

or

u:\pagefile.sys

256 768
[Windows 10 Mobile] karaki93:
WHAT ABOUT THIS?

EWF performance can sometimes be improved by disabling Prefetch. Prefetch is a utility that is intended to improve Windows and application startup performance by loading application data into memory before it is demanded. When using EWF with a RAM overly to protect the boot volume, Prefetch is unable to persist its data from startup to startup. Under these conditions, Prefetch will attempt compute and save new data files each time the system starts up consuming EWF resources with, potentially, no benefit.

To disable prefetch

Update the EnablePrefetcher registry key in your run-time image:

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters

Name: EnablePrefetcher

Type: REG_DWORD

Value: 0

The EnablePrefetcher key has the following values:

0 = Disabled

1 = Application launch prefetching enabled

2 = Boot prefetching enabled

3 = Application launch and boot enabled

To disable Prefetch, set the value to 0.
[Windows 10 Mobile] LauchaX:
Thanks! When I write the value it remain in this format u:\pagefile.sys;256;768 is this correct?
[Windows 10 Mobile] marianodelfino:
You changed the values incorrectly. Make another hard reset, and make sure you write them on CurrentControlSet and not in ControlSet001 also make sure you enter the registry value correctly u:\pagefile.sys number number. About moving the page i did two changes: First i moved the page to C: -> c:\pagefile.sys 512 512 and second i changed ClearPageFileAtShutdown to 1. The device was a lot faster but like i mentioned some posts ago i wasn't able to update to .1066 it gave me error "pagefile is too small" but i don't know if it was because i was bugged with that 600 something vm or because i moved the page to C.

See attachment
[Windows 10 Mobile] LauchaX:
I see you edit via REGISTRY EDITOR. I write u:\pagefile.sys via REGISTRY BROWSER. Is there any difference ?
[Windows 10 Mobile] marianodelfino:
I use the editor but when my device got the bug i did it with the browser.
[Windows 10 Mobile] LauchaX:
635/512/W10/HardReseted/FastRing here

Now I can't Write u:\pagefile.sys with InteropToolsApp_0.0.2.0, I have Developers Mode turned ON.

What Interop Tool version are you using?

AppStore Version says it needs complemetary soft. Do you know where to download and how to make it work?

thanks for any help
[Windows 10 Mobile] marianodelfino:
My Drive

Download and install the dependencies one by one, then download the interop tools 1.9. Enter interop tools -> THIS DEVICE -> sidebar -> Unlock -> Enable Restore NDTKsvc -> reboot device -> enter interop tools -> this device -> sidebar -> registry -> registry editor
[Windows 10 Mobile] LauchaX:
How do you change u:\pagefile.sys to c:\pagefile.sys ? just writing value or is there other procedure ?
[Windows 10 Mobile] marianodelfino:
I changed two values:

PagingFiles -> u:\pagefile.sys to c:\pagefile.sys

ExistingPagingFiles -> \??\U:\pagefile.sys to \??\C:\pagefile.sys

I also changed ClearPageFileAtShutdown -> from 0 to 1

Like i said in another post, i don't know if this caused the "pagefile is too small" when i tried to install the .1066 update or because my device virtual memory was bugged at 608 no matter the value i assigned. I didn't try to change the page to C: again after fixing the bug so i wouldn't know.
[Windows 10 Mobile] LauchaX:
Great, I did that.

Now, new c:\pagefile.sys is removed every restart by ClearPageFileAtShutdown command but the old u:\pagefile.sys seems to be occupying space. How do you delete it?
[Windows 10 Mobile] marianodelfino:
Use full fs access, connect to pc and go to the pagefile.sys path
[Windows 10 Mobile] luismg:
in my 950 verytime I change the value it rolls back to 256 256 (I am on the latest fastring build)
[Windows 10 Mobile] marianodelfino:
What registry editor are you using?
[Windows 10 Mobile] dxdy:
maybe your phone not interop unlocked
[Windows 10 Mobile] luismg:
may be, I installed interop, then ndk registry provider, another registry provider and it looks like itis not enough
[Windows 10 Mobile] Nightsteed:
Use this: https://xdaforums.com/windows-10-mo...creg-lumia-reg-editor-interop-unlock-t3451723
[Windows 10 Mobile] SouraTR:
Make sure the format is

"u:\pagefile.sys xxx xxx"

not

"u:\pagefile.sys xxx

xxx"

Line gap will mess up the process and you'll probably find the VM to be 0MB
[Windows 10 Mobile] augustinionut:
Why dont use wptweaker with last tweaks ?
[Windows 10 Mobile] MagicAndre1981:
on 950 it makes no sense. When I increase the value, the usable RAM gets lower. Maybe 32Bit Limitation. 3GB RAM + 256MB pagefile = 3.25GB you can also use in 32Bit Desktop Windows.
[Windows 10 Mobile] dxdy:
you cant count RAM and virtual RAM, seems phone use RAM how many need, not how many you set

---------- Post added at 10:32 PM ---------- Previous post was at 10:29 PM ----------

do this on 550, 650, and few 950/950XL... and no any problems...
[Windows 10 Mobile] luismg:
because it is not interop unlocked yet, I have serious problems.

---------- Post added at 10:40 PM ---------- Previous post was at 10:34 PM ----------

I am on latest fast ring build, it maybe related to that
[Windows 10 Mobile] MagicAndre1981:
under Device Portal I see lower amount of available RAM when I increase the page file from 256 to 512 on 950XL.
[Windows 10 Mobile] joao_ab3:
I can't install interop tools. Can anybody help?
[Windows 10 Mobile] dxdy:
which phone, which OS build? which version of Interop tools?
[Windows 10 Mobile] joao_ab3:
My mistake. Forgot to activate developers mode