Not enough virtual memory in my XPE install?

B

Ben Pryhoda

I finally got my XPE build to install right on my custom
hardware plaform, and am testing it with the additional
components I need to make the system run, but when I try
to run an install, I get a not enough virtual memory
message, and then delayed write errors saying it could
not write files. Thus effectivly hanging my machine.
Where do I find the right setup to tell the image to make
some virtual memory?
I checked my performance monitors, and almost all of my
256MB of memory is being used by the OS in idle!

Thank you in advance
 
A

Amir Ahani

Hi Beb,



You can add pagefile support to prevent your OS and applications from
running out of virtual memory.



To add pagefile support

1) Locate and select the hardware abstraction layer (HAL) component,
for example Standard PC or Advanced Power Management, in your run-time
image.

2) Expand the tree for the component, and then choose Settings.

3) Edit the System Pagefile settings that appear in the right pane.





Cheers,



Amir Ahani, B.A.Sc

Embedded Engineer/Developer

Motion Metrics Inc

http://www.motionmetrics.com

(e-mail address removed)
 
G

Guest

Amir,

My thanks, I will try this.

Ben
-----Original Message-----
Hi Beb,



You can add pagefile support to prevent your OS and applications from
running out of virtual memory.



To add pagefile support

1) Locate and select the hardware abstraction layer (HAL) component,
for example Standard PC or Advanced Power Management, in your run-time
image.

2) Expand the tree for the component, and then choose Settings.

3) Edit the System Pagefile settings that appear in the right pane.





Cheers,



Amir Ahani, B.A.Sc

Embedded Engineer/Developer

Motion Metrics Inc

http://www.motionmetrics.com

(e-mail address removed)








.
 
S

Slobodan Brcin

Hi Amir,

BTW: Do you know how to disable virtual memory notification dialog in
systems without virtual memory support.

Regards,
Slobodan
 
K

KM

Slobodan,

I don't know how to turn off the notification dialog however there is a
registry NT value (should work on XP Pro/XPe) -
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"VmApplet" that
gives you control over the program(s) that Winlogon runs for the user so
that the user can adjust the configuration of virtual memory when there is
no paging file on the system volume. These programs run only when the system
volume does not include a paging file. Default value state is "rundll32
shell32,Control_RunDLL 'sysdm.cpl'" that means Winlogon brings System
Properties dialog when no paging file on the system volume.

I recall if system is running low on virtual memory it shows "out of virtual
memory dialog" and allow you to close some applications. You can then start
the System option in the Control Panel and choose the Virtual Memory button
to create an additional paging file or to increase the size of your current
paging file. So, the registry value may help you to prevent such user
action. I haven't tested it, though.

Don't think it helps but still worth to know :)
KM


SB> Hi Amir,

SB> BTW: Do you know how to disable virtual memory notification dialog
SB> in systems without virtual memory support.

SB> Regards,
SB> Slobodan





With best regards, KM. E-mail: (e-mail address removed)
 
S

Slobodan Brcin

Thanks, anyway.

I found it in XP but there is no such field in my build, this is probably
because I'm using minlogon. And like you said this is good to know.

I'm not using paging file, also I don't want to use it. But I don't need
warning dialog popping and telling me that I'm running low on memory. This
happens when there is only 20 MB of free memory, but in some cases I want to
use that 20 MB without worrying end user.

First time I saw this was when I experimented with allocating more memory
for our application queues. If there is a way to remove this dialog it would
be nice, if not then I'll have to leave some memory unused.

Best regards,
Slobodan


KM said:
Slobodan,

I don't know how to turn off the notification dialog however there is a
registry NT value (should work on XP Pro/XPe) -
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]"VmApplet" that
gives you control over the program(s) that Winlogon runs for the user so
that the user can adjust the configuration of virtual memory when there is
no paging file on the system volume. These programs run only when the system
volume does not include a paging file. Default value state is "rundll32
shell32,Control_RunDLL 'sysdm.cpl'" that means Winlogon brings System
Properties dialog when no paging file on the system volume.

I recall if system is running low on virtual memory it shows "out of virtual
memory dialog" and allow you to close some applications. You can then start
the System option in the Control Panel and choose the Virtual Memory button
to create an additional paging file or to increase the size of your current
paging file. So, the registry value may help you to prevent such user
action. I haven't tested it, though.

Don't think it helps but still worth to know :)
KM


SB> Hi Amir,

SB> BTW: Do you know how to disable virtual memory notification dialog
SB> in systems without virtual memory support.

SB> Regards,
SB> Slobodan





With best regards, KM. E-mail: (e-mail address removed)
 
K

KM

Slobodan,

You might have already tried that but if it is easy to repro the low memory
situation (and it should be easy with your own Win32 app that easts up all
the memory) that you can run Regmon and hack the registry that is getting
used by kernel (or whatever component is responsible for that) what the
paging pool is empty.

Regmon will work on minlogon build but you can also monitor the registry
access on Winlogon build or even on XP Pro.

KM

SB> Thanks, anyway.

SB> I found it in XP but there is no such field in my build, this is
SB> probably because I'm using minlogon. And like you said this is good
SB> to know.

SB> I'm not using paging file, also I don't want to use it. But I don't
SB> need warning dialog popping and telling me that I'm running low on
SB> memory. This happens when there is only 20 MB of free memory, but in
SB> some cases I want to use that 20 MB without worrying end user.

SB> First time I saw this was when I experimented with allocating more
SB> memory for our application queues. If there is a way to remove this
SB> dialog it would be nice, if not then I'll have to leave some memory
SB> unused.

SB> Best regards,
SB> Slobodan


SB> "KM said:
Slobodan,
I don't know how to turn off the notification dialog however there is
a registry NT value (should work on XP Pro/XPe) -
[HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]"VmApplet" SB> that
gives you control over the program(s) that Winlogon runs for the user
so that the user can adjust the configuration of virtual memory when
there is no paging file on the system volume. These programs run only
when the SB> system
volume does not include a paging file. Default value state is
"rundll32 shell32,Control_RunDLL 'sysdm.cpl'" that means Winlogon
brings System
Properties dialog when no paging file on the system volume.
I recall if system is running low on virtual memory it shows "out of SB> virtual
memory dialog" and allow you to close some applications. You can then SB> start
the System option in the Control Panel and choose the Virtual Memory SB> button
to create an additional paging file or to increase the size of your SB> current
paging file. So, the registry value may help you to prevent such user
action. I haven't tested it, though.
Don't think it helps but still worth to know :)
KM


SB>>> Hi Amir,

SB>>> BTW: Do you know how to disable virtual memory notification dialog
SB>>> in systems without virtual memory support.

SB>>> Regards,
SB>>> Slobodan





With best regards, KM. E-mail: (e-mail address removed)
 
A

Amir Ahani

Hi Slobodan,

This is one of our company's problems which I couldn't find any good
solution for it.
I did try the other suggestions but I still account the same problem.

Cheers,

Amir Ahani, B.A.Sc
Software Developer
http://www.motionmetrics.com
(e-mail address removed)

KM said:
Slobodan,

You might have already tried that but if it is easy to repro the low memory
situation (and it should be easy with your own Win32 app that easts up all
the memory) that you can run Regmon and hack the registry that is getting
used by kernel (or whatever component is responsible for that) what the
paging pool is empty.

Regmon will work on minlogon build but you can also monitor the registry
access on Winlogon build or even on XP Pro.

KM

SB> Thanks, anyway.

SB> I found it in XP but there is no such field in my build, this is
SB> probably because I'm using minlogon. And like you said this is good
SB> to know.

SB> I'm not using paging file, also I don't want to use it. But I don't
SB> need warning dialog popping and telling me that I'm running low on
SB> memory. This happens when there is only 20 MB of free memory, but in
SB> some cases I want to use that 20 MB without worrying end user.

SB> First time I saw this was when I experimented with allocating more
SB> memory for our application queues. If there is a way to remove this
SB> dialog it would be nice, if not then I'll have to leave some memory
SB> unused.

SB> Best regards,
SB> Slobodan


SB> "KM said:
Slobodan,
I don't know how to turn off the notification dialog however there is
a registry NT value (should work on XP Pro/XPe) -
[HKLM\SOFTWARE\Microsoft\Windows
NT\CurrentVersion\Winlogon]"VmApplet" SB> that
gives you control over the program(s) that Winlogon runs for the user
so that the user can adjust the configuration of virtual memory when
there is no paging file on the system volume. These programs run only
when the SB> system
volume does not include a paging file. Default value state is
"rundll32 shell32,Control_RunDLL 'sysdm.cpl'" that means Winlogon
brings System
Properties dialog when no paging file on the system volume.
I recall if system is running low on virtual memory it shows "out of SB> virtual
memory dialog" and allow you to close some applications. You can then SB> start
the System option in the Control Panel and choose the Virtual Memory SB> button
to create an additional paging file or to increase the size of your SB> current
paging file. So, the registry value may help you to prevent such user
action. I haven't tested it, though.
Don't think it helps but still worth to know :)
KM


SB>>> Hi Amir,

SB>>> BTW: Do you know how to disable virtual memory notification dialog
SB>>> in systems without virtual memory support.

SB>>> Regards,
SB>>> Slobodan





With best regards, KM. E-mail: (e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top