mersenneforum.org  

Go Back   mersenneforum.org > Other Stuff > Archived Projects > NFSNET Discussion

 
 
Thread Tools
Old 2006-07-25, 00:00   #12
dsouza123
 
dsouza123's Avatar
 
Sep 2002

2×331 Posts
Default

Found further info on the full 4 GB for a 32-bit exe.

http://h20331.www2.hp.com/Hpsub/cach...0-225-121.html

Can a 32-bit application access more memory when running on XP x64?

In general no, most standard Windows 32-bit applications or processes are limited to 2GB of virtual address space, the same as in 32-bit XP. Windows 32-bit applications that have been built with the /LARGEADDRESSAWARE switch can access 4GB of RAM. The same application running on Windows XP 32-bit with Service Pack 2 is limited to 3GB of RAM so you gain 1GB of address space on XP x64.

Alpertron's does your post mean if the IMAGE_FILE_LARGE_ADDRESS_AWARE bit
is changed in an existing exe then the program can use the larger amount of memory ?
dsouza123 is offline  
Old 2006-07-25, 12:18   #13
alpertron
 
alpertron's Avatar
 
Aug 2002
Buenos Aires, Argentina

2×683 Posts
Default

Quote:
Originally Posted by dsouza123
Alpertron's does your post mean if the IMAGE_FILE_LARGE_ADDRESS_AWARE bit
is changed in an existing exe then the program can use the larger amount of memory ?
You are right, but notice that setting that bit in the executable image is not enough. The program must not use signed compares between pointers because in this case it would not work in a > 2GB environment. It appears that some programs are written in this way (like casting pointers to integers and comparing them). These programs would hang if the IMAGE_FILE_LARGE_ADDRESS_AWARE is set and allocate more than 2 GB of memory.
alpertron is offline  
Old 2006-07-25, 12:24   #14
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

10,753 Posts
Default

Quote:
Originally Posted by Prime95
How about adding a command line switch that lets you pick the initial amount of memory to malloc?

If realloc cannot grow the allocation in-place it would have to allocate the larger space and copy the data. During that time, you would have both the smaller and larger spaces allocated. I don't know if you are actually running into this problem.
That is precisely the problem Bob is experiencing.
xilman is offline  
Old 2006-07-25, 20:17   #15
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
Repรบblica de California

103·113 Posts
Default

I ran into similar problems (under Windows and the then-current version of Mac OS) several years back when doing multiple large-FFT-length self-tests runs of my Mlucas code. As Paul and George suggest, the best workaround (I hesitate to call it "solution") is to predetermine/specify the maximum amount of memory (or array dimension, or whatever) will be needed for the current task or series thereof and allocate that. It would be nice if more OSes had a dynamic-reallocate capability which would allow them on-the-fly to remap memory if a larger contiguous chunk is needed than is available with a current memory mapping - but simple as the concept sounds, we're not there yet.
ewmayer is online now  
Old 2006-07-26, 11:21   #16
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by ewmayer
I ran into similar problems (under Windows and the then-current version of Mac OS) several years back when doing multiple large-FFT-length self-tests runs of my Mlucas code. As Paul and George suggest, the best workaround (I hesitate to call it "solution") is to predetermine/specify the maximum amount of memory (or array dimension, or whatever) will be needed for the current task or series thereof and allocate that. It would be nice if more OSes had a dynamic-reallocate capability which would allow them on-the-fly to remap memory if a larger contiguous chunk is needed than is available with a current memory mapping - but simple as the concept sounds, we're not there yet.
The difficulty in pre-allocating for filter code is that it is hard to know
ahead of time how much will be needed....
R.D. Silverman is offline  
Old 2006-07-26, 11:31   #17
xilman
Bamboozled!
 
xilman's Avatar
 
"๐’‰บ๐’ŒŒ๐’‡ท๐’†ท๐’€ญ"
May 2003
Down not across

1075310 Posts
Default

Quote:
Originally Posted by R.D. Silverman
The difficulty in pre-allocating for filter code is that it is hard to know ahead of time how much will be needed....
Which is why I suggested, in effect, to allocate as much space as your machine will supprt.

Any luck with booting with the /3gb switch?


Paul
xilman is offline  
Old 2006-07-26, 11:49   #18
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by xilman
Which is why I suggested, in effect, to allocate as much space as your machine will supprt.

Any luck with booting with the /3gb switch?


Paul
I work in a severely restricted environment. I do not have priviledges
to make changes to system files. Any such changes must be done by
a sysadmin with special priviledges. One must request the change,
justify the reason for the change, identify the project, etc. etc. -->
mucho paperwork

I just work around the problem. When the filter job fails, I just
change the input parameters so that the matrix gets compressed
"more slowly".

I am about 1/2 way done with filtering for 2,1454L.

2,1462L is sieving.
R.D. Silverman is offline  
 

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows realloc R.D. Silverman Programming 7 2015-09-26 01:27
Sr2sieve - Realloc Error Rincewind Software 2 2013-02-06 12:53
Profanity filter? Dubslow Forum Feedback 15 2012-03-11 02:23
remdups: a relation-file filter Batalov Factoring 17 2010-06-20 22:54
Filter BUG!!! Be Wary!!!! R.D. Silverman Factoring 25 2005-09-03 02:23

All times are UTC. The time now is 00:10.


Sat Jul 17 00:10:06 UTC 2021 up 49 days, 21:57, 1 user, load averages: 1.90, 1.67, 1.55

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.