Controlling memory/page file usage

  • Thread starter Thread starter Tomasz Radziszewski
  • Start date Start date
T

Tomasz Radziszewski

I am running XP Embedded on a machine with CompactFlash with EWF
overlay in RAM. The machine doesn't have any HDDs. I do not have a
page file and don't want to have it on the Flash. So the only memory
available to the system is RAM. The machine will be runing headless
(without a monitor) and I don't want to get messages like "There is
not enough memory" and my applications stopping because of it.

So my first question is:

Is there any method to estimate how much memory all the system tasks
in my bulid will use? (Saying "system tasks" I mean all processes
except these initiated by my applications). Does the target designer
have such possibility?

The second one is:
Are there any special tools to control the memory usage (or page file
size) for XP embedded? Or any other tools that are not included in XP
Pro? I know that I can enable page file and set its low and high
limit, but it doesn't help if memory usage is greater than the
physical RAM capacity. So I would like to throw away some pages that
are no longer used or stop some less important system processes when
the memory is almost full. Is there any tool that allows for something
like that?
 
Hi,
... and I don't want to get messages like "There is
not enough memory" and my applications stopping because of it.
http://msdn.microsoft.com/embedded/community/community/tips/xp/popups/default.aspx

Is there any method to estimate how much memory all the system tasks
in my bulid will use? (Saying "system tasks" I mean all processes
except these initiated by my applications). Does the target designer
have such possibility?

There is no way to do this. But you should keep number of services as processes as low as possible.
The second one is:
Are there any special tools to control the memory usage (or page file
size) for XP embedded? Or any other tools that are not included in XP
Pro? I know that I can enable page file and set its low and high
limit, but it doesn't help if memory usage is greater than the
physical RAM capacity.
NO.

So I would like to throw away some pages that
are no longer used or stop some less important system processes when
the memory is almost full. Is there any tool that allows for something
like that?

To me this sounds like joke :-).
If not then answer is there are no more or less important services/processes only required and non-required for task that you plan
to do with XPe device.

So my suggestion that is only valid is to find out minimum set of services that you absolutely need and to use only them. Everything
that your system can live without should not be in image in the first place.

I hope that these answer your questions.

Best regards,
Slobodan
 
Back
Top