记忆限制问题??? [英] Memeory limitation problems ???

查看:59
本文介绍了记忆限制问题???的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的PC配备双XEON CPUa和4 Giga Byte RAM赢得Windows XP专业版。

我有2个问题:

(1) Windows在系统属性上只显示3.25千兆字节?

常规选项卡。

虽然bios可以看到所有4 GB的字节。

我读到的一些文章说WinXP Pro只能处理4GB内存包括虚拟内存的
,所以我把它设置为不使用任何页面文件,但它是

没有帮助。

(2)我希望我的.NET应用程序使用超过1.2 GB的内存,所以我在$ .b $ b中插入Boot.ini文件/ 3GB标志并重新启动。现在我还需要将
添加到我的应用程序链接器/ LARGEADDRESSAWARE标志中,它是

IMAGE_FILE_LARGE_ADDRESS_AWARE(参见
http://www.microsoft.com/whdc/system...E/ PAEmem.mspx)。但是我

找不到将标志放在项目属性中的位置。


有人能告诉我如何解决这两个问题吗?

--------

谢谢

Sharon

I Have a PC with dual XEON CPUa??s and 4 Giga Byte RAM win Windows XP Pro.
I have 2 problems with it:
(1) Windows is showing only 3.25 Giga byte on the System Properties ?
General tab.
While the bios to see all of the 4 GBytes.
I some article I read that the WinXP Pro can only handle 4GBytes of memory
including the virtual memory, so I set it to not use any page file, but it
did not help.
(2) I want my .NET application to use more then 1.2 GByte of memory, so I
insert at the Boot.ini file the /3GB flag and did reboot. Now I also need to
add to my application linker the /LARGEADDRESSAWARE flag for it to be
IMAGE_FILE_LARGE_ADDRESS_AWARE (see
http://www.microsoft.com/whdc/system...E/PAEmem.mspx). But I
find no where to put the flag in the project properties.

Can anybody tell me how solve this 2 issues?
--------
Thanks
Sharon

推荐答案

你好Willy,


感谢您的重播。


(1)我找到了关于同一问题的讨论:
http://msdn.microsoft.com/newsgroups...f-0c3b9681dd2b

它似乎与4Mbytes RAM成功。所以我非常需要这样做。

此外,Windows Xp 32位Pro文档表明它可以消耗高达4MB的


BIOS确实将扩展RAM识别为4,192,768字节。所以我真的很好

需要这个。

(2)关于缺点 - 你不觉得1GB的内存应该足够吗

对于内核?

---------

谢谢

Sharon
Hi Willy,

Thanks for your replay.

(1) I found a discussions about the same issue:
http://msdn.microsoft.com/newsgroups...f-0c3b9681dd2b
and it seems to succeed with the 4Mbytes RAM. So I very much need to do it.
Also, the Windows Xp 32 bit Pro documentation indicate that it can consume
up to 4MB.
The BIOS does recognize the extended RAM as 4,192,768 bytes. so I really
need this.
(2) About the drawback - Don''t you think that 1GB of RAM should be enough
for the kernel?
---------
Thanks
Sharon



" Sharon" <嘘***** @ newsgroups.nospam>在留言中写道

新闻:F3 ********************************** @ microsof t.com ...

"Sharon" <Sh*****@newsgroups.nospam> wrote in message
news:F3**********************************@microsof t.com...
威利,

感谢您的重播。

(1)我发现了有关同一问题的讨论:
http://msdn.microsoft.com/newsgroups...f-0c3b9681dd2b
它似乎成功使用4Mbytes RAM。所以我非常需要做它。
此外,Windows Xp 32位Pro文档表明它可以消耗高达4MB的数据。
BIOS确实识别扩展的RAM为4,192,768字节。所以我真的需要这个。
(2)关于缺点 - 难道你不认为内核的1GB RAM应该足够吗?

---------
谢谢
Sharon
Hi Willy,

Thanks for your replay.

(1) I found a discussions about the same issue:
http://msdn.microsoft.com/newsgroups...f-0c3b9681dd2b
and it seems to succeed with the 4Mbytes RAM. So I very much need to do
it.
Also, the Windows Xp 32 bit Pro documentation indicate that it can consume
up to 4MB.
The BIOS does recognize the extended RAM as 4,192,768 bytes. so I really
need this.
(2) About the drawback - Don''t you think that 1GB of RAM should be enough
for the kernel?
---------
Thanks
Sharon




1)Windows应用程序限制为2GB或3GB的虚拟地址空间

取决于设置。

如果你认为你需要3GB,你必须在boot.ini中设置/ 3GB开关和

你需要链接你的应用程序与/ LARGEADDRESSAWARE开关集。

..NET托管应用程序没有链接,在这里你必须将exe文件传递给

editbin.exe with / LARGEADDRESSAWARE开关设置(editbin.exe将在PE标头中设置

IMAGE_FILE_LARGE_ADDRESS_AWARE位。)


不确定你的意思我真的需要这个。

- 你的程序永远不能在32位Windows操作系统上使用4GB。除非你运行64位Windows版本

并且内存重新映射,否则
永远不能使用4GB内存启用(在BIOS或软件中)。

- 您的应用程序永远无法分配大于

~1.5GB的单个阵列,如果这是您想要的忘记这整个/ 3GB的东西,你唯一的

选项是Windows XP64或W2K3 64.


2)我不知道这取决于很多东西,这取决于硬件设备的数量和类型,取决于软件的运行情况,

处理线程数等等。

为什么你认为1GB对于内核来说已经绰绰有余了,而2GB对于你的单个应用程序来说已经不够了?


你应该知道一些KB文章在决定下去之前仔细阅读

road。

http://support.microsoft.com/default...b;en-us;319043
http://支持.microsoft.com / kb / 316739 / ZH-US /

Willy。




1) A windows application is limitted to 2GB or 3GB of virtual address space
depending on the set-up.
If you think you need 3GB you have to set the /3GB switch in boot.ini and
you need to link your application with the /LARGEADDRESSAWARE switch set.
..NET managed application not linked, here you have to pass the exe file to
editbin.exe with the /LARGEADDRESSAWARE switch set (editbin.exe will set the
IMAGE_FILE_LARGE_ADDRESS_AWARE bit in the PE header).

Not sure what you mean with "I really need this".
- Your program will never be able to use 4GB on a 32 bit windows OS. And you
will never be able to use 4GB RAM unless you run a 64 bit windows version
with "memory remapping" enabled (in the BIOS or software).
- Your application will never be able to allocate a single array larger than
~1.5GB, if this is what you want forget this whole /3GB thing, your only
option is Windows XP64 or W2K3 64.

2) I don''t know it depends on so many things, it depends on the number and
type of HW devices, it depends on the software running, the number of
processes number of threads etc.
Why do you think 1GB is more than enough for the kernel, while 2GB is not
enough for your single application?

Some KB articles you should read carefully before deciding to go down that
road.

http://support.microsoft.com/default...b;en-us;319043
http://support.microsoft.com/kb/316739/EN-US/

Willy.


威利,


非常感谢您的快速重播。


(1)我已经做了所有必要的事情我的应用程序使用更多然后

2GB并且现在工作正常。


当我说我真的需要这个时,我的意思是我需要Windows操作

系统来识别所有安装的4GB。


(2)我认为Windows内核在1GB RAM上运行良好,因为我的

PC是一台专用的PC,我可以告诉它会运行什么,所以我认为1GB

似乎没问题,毕竟; Windows XP Pro也可以在256 MB的PC上运行。


在阅读了你提到的MSDN知识库之后,我看到的是适用于Windows 2003

服务器(KB之一)和另一个说它可能会发生,但是在我的情况下没有发生
因为在我应用/ 3GB之后一切正常运行

开关。

所以现在唯一的麻烦就是如何使用

SP2制作Windows XP Pro 32位以查看所有4GB安装而不是只有3.25 GB?

--------

谢谢

Sharon
Hi Willy,

Thanks a lot for your prompt replay.

(1) I already did all that is necessary for my application to use more then
2GB and it''s working fine now.

When I say "I really need this", I mean that I need the Windows operation
system to recognize all the 4GB installed.

(2) I think that the Windows kernel will run nicely on a 1GB RAM because my
PC is a dedicated PC and I can tell what will run on it, so as I see it 1GB
seems to be fine, after all; Windows XP Pro can run on a 256 MB PC''s as well.

After reading the MSDN KB you mentioned, I can see that is for Windows 2003
servers (one of the KB) and the other is saying that it may happen, but it is
not happening in my case as everything is running OK after I applied the /3GB
switch.
So now the only trouble I have is how to make the Windows XP Pro 32 bit with
SP2 to see all of the 4GB installed and not only 3.25 GB ?
--------
Thanks
Sharon


这篇关于记忆限制问题???的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆