SOLVED

Anyone single 64-bit process only can be allocated 4GB memory in my WIN10.How to make it more?

%3CLINGO-SUB%20id%3D%22lingo-sub-1565518%22%20slang%3D%22zh-CN%22%3EAnyone%20single%2064-bit%20process%20only%20can%20be%20allocated%204GB%20memory%20in%20my%20WIN10.%20How%20to%20make%20it%20more%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1565518%22%20slang%3D%22zh-CN%22%3EI%20think%20this%20is%20a%20limit%20for%20a%20single%20process%20by%20the%20WIN10%20system.%20How%20to%20cancel%20the%20limit%20or%20make%20it%20higher%3F%20PS%3A%20the%20command%20%22bcdedit%20%2Fset%20set%20sane%20useful.%22%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1566643%22%20slang%3D%22en-US%22%3ERe%3A%20Anyone%20single%2064-bit%20process%20only%20can%20be%20allocated%204GB%20memory%20in%20my%20WIN10.How%20to%20make%20it%20more%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1566643%22%20slang%3D%22en-US%22%3E%3CP%3EThis%20is%20not%20correct%20and%20there%20is%20no%204GB%20limit%20imposed%20by%20Windows%2010%20for%20any%2064-bit%20process.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20limits%20are%20as%20follows%20on%2064-bit%20Windows%2010%3A%3C%2FP%3E%3CP%3E32-bit%20process%20w%2Fo%20large%20address%20aware%3A%202GB%3C%2FP%3E%3CP%3E32-bit%20process%20with%20large%20address%20aware%3A%204GB%3C%2FP%3E%3CP%3E64-bit%20process%20w%2Fo%20large%20address%20aware%3A%202GB%3C%2FP%3E%3CP%3E64-bit%20process%20with%20large%20address%20aware%3A%20128TB%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20large%20address%20aware%20flag%20ist%20a%20flag%20set%20by%20the%20linker%20when%20linking%20the%20compiled%20program.%20Normally%20every%2064-bit%20executable%20should%20have%20it%20set.%20If%20not%2C%20you%20get%20a%20maximum%20of%202GB%20even%20for%2064-bit%20processes.%3C%2FP%3E%3CP%3EIf%20you%20want%20to%20test%20how%20much%20memory%20your%20system%20can%20allocate%20for%20a%20single%2064-bit%20process%2C%20download%20testlimit64.exe%20from%20Microsoft%20Sysinternals%20and%20use%20the%20following%20command%20lines%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Etestlimit64.exe%20-m%201024%3C%2FP%3E%3CP%3Etestlimit64.exe%20-d%201024%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20first%20command%20will%20only%20allocate%20the%20virtual%20memory%20addresses%20and%20does%20not%20touch%20them%2C%20the%20second%20one%20also%20touches%20the%20memory.%20So%20the%20first%20one%20shows%20you%20what%20is%20possible%20with%20your%20system%20resources%2C%20the%20second%20one%20goes%20up%20to%20the%20limit%20your%20RAM%20and%20pagefile%20can%20handle.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F749236%22%20target%3D%22_blank%22%3E%40laxagy%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1567311%22%20slang%3D%22zh-CN%22%3ERe%3A%20Anyone%20single%2064-bit%20process%20only%20can%20allocat%20ed%204GB%20memory%20in%20my%20WIN10.%20How%20to%20make%20it%20more%3F%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1567311%22%20slang%3D%22zh-CN%22%3E%3CP%3EThank%20you%20for%20your%20reply.%3C%2FP%3E%3CP%3EIt%20shoud%20be%20the%20fault%20of%20my%20memory%20test%20tool.%3C%2FP%3E%3CP%3EI%20cy%20the%20value%20of%20the%20one%20process%20memory%20in%20the%20task%20manager%20of%20windows.%20It%20is%20definitely%20more%20than%204GB.%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
New Contributor
I think there is a limit for a single process by the WIN10 system. How to cancel the limit or make it higher? PS: the command"bcdedit /set increaseuserva" is not useful.
2 Replies
Highlighted
Best Response confirmed by laxagy (New Contributor)
Solution

This is not correct and there is no 4GB limit imposed by Windows 10 for any 64-bit process.

 

The limits are as follows on 64-bit Windows 10:

32-bit process w/o large address aware: 2GB

32-bit process with large address aware: 4GB

64-bit process w/o large address aware: 2GB

64-bit process with large address aware: 128TB

 

The large address aware flag ist a flag set by the linker when linking the compiled program. Normally every 64-bit executable should have it set. If not, you get a maximum of 2GB even for 64-bit processes.

If you want to test how much memory your system can allocate for a single 64-bit process, download testlimit64.exe from Microsoft Sysinternals and use the following command lines:

 

testlimit64.exe -m 1024

testlimit64.exe -d 1024

 

The first command will only allocate the virtual memory addresses and does not touch them, the second one also touches the memory. So the first one shows you what is possible with your system resources, the second one goes up to the limit your RAM and pagefile can handle.

@laxagy 

Highlighted

Thank you for your reply.

It shoud be the fault of my memory test tool.

I confirm the value of one process memory in the task manager of windows. It is definitely more than 4GB.