[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

My app should run below 1024 mb ram-frontier

Hi!
I'm using d5, win98 and winxp.
With older win-versions you can get problems if there're more than 1024 mb ram installed and your app runs above these 1024 mb 'cause the memory-management often can't control it... You can make special settings via msconfig to decrease the memory...
Is there a programming-way to say my app "please use only the memory-area below 1024 mb?
Thanks a lot in advance!
Ingo
0
Ogni
Asked:
Ogni
  • 4
  • 2
1 Solution
 
OgniAuthor Commented:
Hi!
It's not a joke.
If this is impossible please tell it  to me...
Perhaps there is a workaround...
Thanks in advance,
Ingo
0
 
OgniAuthor Commented:
Hi!
I don't know if it's very difficult ...
I increase ...
Best regards,
Ingo
0
 
PeterInghamCommented:
I'm note sure about the problems you mention with 1024MB ram limits.  I don't recall hearing about code that will not work in   systems with >1024.

The only restrictions I can recall are that code running in RAM above 1024MB on some systems will run unusually slowly due to processsor cache designs that only give cache performance benefit to RAM < (some limit).  Often the best solution on these systems is not to put more than 1024 RAM in as the impact of the lack of caching far outweighs the benefits of the extra RAM.


There are some techniques for preallocating RAM (and ensuring Virtual memory doesn't end up shuffling it somewhere you don't want it) but these are non-trivial and you probably don't want to go there.
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
OgniAuthor Commented:
Hi Peter!

First thanks a lot for your answer!
My code works above 1024 kb ram as well as below... i hope ;-)
It's so that specially older win versions have problems running apps above 1024 ram.
So my question was if it's possible to grab a piece of ram below the 1024 limit for my app.
Perhaps you can tell me more details... or you can tell me "don't do it... you can get other problems".

Best regards,
Ingo
 
0
 
PeterInghamCommented:
It (the version of the 1024MB problem I am thinking of) is not a matter of particular versions of Windows having problems.

It is a problem related to some designs (and CPUs) where not all physical RAM is cached by the processor.  I would notm ecpect many systems desitgned in the last 5 years to have this sort of issue.  It is more noticible in some Windows versions depending on whether the OS itself (and drivers) tended to get loaded at high memory or low.  Systems exhibiting the issue tend to run some things badly at some stage (and for the slowness to move between applications as they run).  The best solution is usually to reduce RAM until the problem goes away, or dump the machine (as it will have a book value of next to nothing anyway) and replace it with something more modern.

I would not worry about it in an application program unless there was a very specific reason (major customer who has lots of systems with the problem that they cannot upgrade).  The issue is that the mechanism for fixing it in your application is generally bad for every other configuration and a pain to work with.  Truely, if you don't desperately need to fix this specific issue, then put your effort into making other aspects of your application great.

0
 
OgniAuthor Commented:
Hi Peter!
Thanks a lot for your time. Perhaps i can get some arguments from this "discussion".
You get the points.
Best regards,
Ingo
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now