3GB switch for Win XP 32
Moderators: winston, another_commander, Cody
- CheeseRedux
- ---- E L I T E ----
- Posts: 827
- Joined: Fri Oct 02, 2009 6:50 pm
3GB switch for Win XP 32
Has anyone here had any dealings with this thing?
By way of a couple of side roads, I came across this post detailing how to get your XP to allocate more memory for applications that can use it.
Apparently it will also work on systems with less than 3GB of RAM (like my 2GB laptop), utilizing your hard drive space.
[Moderators: I stuck this in Outworld since its not Oolite related as such. If you think it belongs somewhere else, move as you see fit.]
By way of a couple of side roads, I came across this post detailing how to get your XP to allocate more memory for applications that can use it.
Apparently it will also work on systems with less than 3GB of RAM (like my 2GB laptop), utilizing your hard drive space.
[Moderators: I stuck this in Outworld since its not Oolite related as such. If you think it belongs somewhere else, move as you see fit.]
Last edited by CheeseRedux on Fri Oct 08, 2010 10:33 pm, edited 1 time in total.
"Actually this is a common misconception... I do *not* in fact have a lot of time on my hands at all! I just have a very very very very bad sense of priorities."
--Dean C Engelhardt
--Dean C Engelhardt
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
I'm going to be unusually pedantic - Gb = Gigabit, GB = Gigabyte
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- CheeseRedux
- ---- E L I T E ----
- Posts: 827
- Joined: Fri Oct 02, 2009 6:50 pm
- CheeseRedux
- ---- E L I T E ----
- Posts: 827
- Joined: Fri Oct 02, 2009 6:50 pm
Well, the post was on a Civilization forum; not what I would normally consider "extreme gaming".
I seem to remember a discussion a long time ago about memory leaks in Oolite. I don't know if it's related at all, but Oolite will reliably do a CTD on my system on prolonged sessions. (When testing OSE, I could only fly around for a minute or so before the game gave up the ghost. I took it as an indication there was far too much going on simultaneously for my system to handle.)
As the /3GB has its own little section on Micro$oft's own official technical help pages, it's not like it's something someone did in a backyard chopshop.
Original question still remains though: Anyone with any experience on this thing?
I seem to remember a discussion a long time ago about memory leaks in Oolite. I don't know if it's related at all, but Oolite will reliably do a CTD on my system on prolonged sessions. (When testing OSE, I could only fly around for a minute or so before the game gave up the ghost. I took it as an indication there was far too much going on simultaneously for my system to handle.)
As the /3GB has its own little section on Micro$oft's own official technical help pages, it's not like it's something someone did in a backyard chopshop.
Original question still remains though: Anyone with any experience on this thing?
"Actually this is a common misconception... I do *not* in fact have a lot of time on my hands at all! I just have a very very very very bad sense of priorities."
--Dean C Engelhardt
--Dean C Engelhardt
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
I asked my boss (because I know he has) and this is what he said:
In addition to booting with the /3GB switch, Microsoft also say this:
Executables that can use the 3-GB address space are required to have the bit IMAGE_FILE_LARGE_ADDRESS_AWARE set in their image header. If you are the developer of the executable, you can specify a linker flag (/LARGEADDRESSAWARE).
To set this bit, you must use Microsoft Visual Studio Version 6.0 or later and the Editbin.exe utility, which has the ability to modify the image header (/LARGEADDRESSAWARE) flag. For more information on setting this flag, see the Microsoft Visual Studio documentation.
So in other words, an application may or may not come with that bit pre-set. If it doesn't (and the implication is that most don't) then simply setting the /3GB switch may not achieve anything without the bit flipped in the header.
Although since the /3GB switch (as I understand it) reduces the amount of memory space allocated to the windows kernel, in favour of allocating it to user space instead, then that could have all sorts of knocks ons for system DLLs.
Hence (again from MSDN):
On Windows XP, some drivers, especially video adapter drivers with onboard RAM, cannot run with the /3GB parameter because they require more address space than the 1 GB kernel address space permits.
At which point you then have to also start playing with the additional
/userva=SizeInMB
command, which basically allows you to tune between the default 2 GB user space and the maximum 3 given by the /3GB switch
***
He's tried it because he builds a lot of Terrains in TerraVista and it needs as much memory as it can get - which is why his new work laptop as Win7 and 12GB of memory...
In addition to booting with the /3GB switch, Microsoft also say this:
Executables that can use the 3-GB address space are required to have the bit IMAGE_FILE_LARGE_ADDRESS_AWARE set in their image header. If you are the developer of the executable, you can specify a linker flag (/LARGEADDRESSAWARE).
To set this bit, you must use Microsoft Visual Studio Version 6.0 or later and the Editbin.exe utility, which has the ability to modify the image header (/LARGEADDRESSAWARE) flag. For more information on setting this flag, see the Microsoft Visual Studio documentation.
So in other words, an application may or may not come with that bit pre-set. If it doesn't (and the implication is that most don't) then simply setting the /3GB switch may not achieve anything without the bit flipped in the header.
Although since the /3GB switch (as I understand it) reduces the amount of memory space allocated to the windows kernel, in favour of allocating it to user space instead, then that could have all sorts of knocks ons for system DLLs.
Hence (again from MSDN):
On Windows XP, some drivers, especially video adapter drivers with onboard RAM, cannot run with the /3GB parameter because they require more address space than the 1 GB kernel address space permits.
At which point you then have to also start playing with the additional
/userva=SizeInMB
command, which basically allows you to tune between the default 2 GB user space and the maximum 3 given by the /3GB switch
***
He's tried it because he builds a lot of Terrains in TerraVista and it needs as much memory as it can get - which is why his new work laptop as Win7 and 12GB of memory...
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Killer Wolf
- ---- E L I T E ----
- Posts: 2278
- Joined: Tue Jan 02, 2007 12:38 pm
- CheeseRedux
- ---- E L I T E ----
- Posts: 827
- Joined: Fri Oct 02, 2009 6:50 pm
Now why are you talking to your boss on a Saturday?!?DaddyHoggy wrote:I asked my boss (because I know he has) and this is what he said:
[snip]
So in other words, an application may or may not come with that bit pre-set. If it doesn't (and the implication is that most don't) then simply setting the /3GB switch may not achieve anything without the bit flipped in the header.
Although since the /3GB switch (as I understand it) reduces the amount of memory space allocated to the windows kernel, in favour of allocating it to user space instead, then that could have all sorts of knocks ons for system DLLs.
[snip]
/userva=SizeInMB
The whole setting of bits thing was news to me - and quite frankly a bit over my head. Is there any reason why this isn't done as a matter of course? From my non-technical perspective I can see no reason to not allow your program to use more memory if available.
About video cards and DLLs and such: Yes, that seems to be a common thing. My little research seems to indicate /userva values of 2800 or 2900 to be most widely used.
Thanks for the info. Brings a little more clarity in the muddled waters.
"Actually this is a common misconception... I do *not* in fact have a lot of time on my hands at all! I just have a very very very very bad sense of priorities."
--Dean C Engelhardt
--Dean C Engelhardt
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Because we're "salaried" - paid to do a job - work doesn't care how long it takes to do - and hence - for a course that starts on Monday we're still tickling lectures in to shape (take this as a word of caution to those who want a slice of my job!)CheeseRedux wrote:
Now why are you talking to your boss on a Saturday?!?
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Killer Wolf
- ---- E L I T E ----
- Posts: 2278
- Joined: Tue Jan 02, 2007 12:38 pm
kinda seems a small price to pay to get a job that has multicreen war simulators and jobs building terrains and the like.DaddyHoggy wrote:Because we're "salaried" - paid to do a job - work doesn't care how long it takes to do - and hence - for a course that starts on Monday we're still tickling lectures in to shape (take this as a word of caution to those who want a slice of my job!)CheeseRedux wrote:
Now why are you talking to your boss on a Saturday?!?
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Yup.Killer Wolf wrote:kinda seems a small price to pay to get a job that has multicreen war simulators and jobs building terrains and the like.DaddyHoggy wrote:Because we're "salaried" - paid to do a job - work doesn't care how long it takes to do - and hence - for a course that starts on Monday we're still tickling lectures in to shape (take this as a word of caution to those who want a slice of my job!)CheeseRedux wrote:
Now why are you talking to your boss on a Saturday?!?
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- CheeseRedux
- ---- E L I T E ----
- Posts: 827
- Joined: Fri Oct 02, 2009 6:50 pm
Now who said anything about needing it for Oolite?Darkbee wrote:Seriously though, you need this option for Oolite? :S Maybe if you're running AutoCAD at the same time I could see that.
(The only thing I routinely run parallel with Oo is iTunes.)
There are other, more memory hungry things out there that I occasionally partake in.
And with me being unaware of the whole /3GB switch thing until very recently (roughly half an hour before I made the OP), there's a fair chance I wasn't alone. So the question was asked at least partly for the edumification of all.
Last edited by CheeseRedux on Sun Oct 10, 2010 3:23 pm, edited 1 time in total.
"Actually this is a common misconception... I do *not* in fact have a lot of time on my hands at all! I just have a very very very very bad sense of priorities."
--Dean C Engelhardt
--Dean C Engelhardt
- Darkbee
- ---- E L I T E ----
- Posts: 335
- Joined: Mon Aug 09, 2004 8:40 pm
- Location: Space... man!
- Contact:
That's fair enough, and I wasn't aware of it either until you posted so you edumified me.
It's just as the designated family technical support guy, I routinely tell other family members that unless you know what you're doing or have a damn good reason for doing so, never mess with system settings.
Sorry Son, I didn't mean to take away your toys.
It's just as the designated family technical support guy, I routinely tell other family members that unless you know what you're doing or have a damn good reason for doing so, never mess with system settings.
Sorry Son, I didn't mean to take away your toys.