简体   繁体   English

Windows XP上的Visual Studio

[英]Visual studio on windows xp

i need to run a few visual studios on windows XP and it seems to take up a lot of memory. 我需要在Windows XP上运行一些视觉工作室,这似乎占用了大量内存。 i am also running resharper which is a memory hog. 我也正在运行reshaper,这是一个内存猪。

i am running 32 bit XP. 我正在运行32位XP。 How much memory can i put into my machine until i get to the point where the OS hits its limit. 在达到操作系统极限之前,我可以在计算机中放入多少内存。

Also, any other ways of running multiple visual studio without such slow performance. 同样,以任何其他方式运行多个Visual Studio时也不会出现这种缓慢的性能。

32-bit Operating Systems are limited to 4 GB of RAM, which may or may not be enough for you. 32位操作系统限于4 GB的RAM,这可能对您来说足够或不足。 Also, I think Windows shows 3 GB of RAM if you install 4 GB. 另外,我认为如果您安装4 GB,Windows将显示3 GB RAM。

I suggest you switch to 64-bit and upgrade to 8 GB if you can. 我建议您切换到64位,如果可以的话,升级到8 GB。

UPDATE: See Jeff's blog post on the subject: Dude, Where's My 4 Gigabytes of RAM? 更新:请参阅Jeff关于该主题的博客文章: Dude,我的4 GB RAM在哪里?

The maximum amount of memory that can be seen by 32bit WinXP is somewhere between 3 and 4 gigabytes depending on your chipset. 32bit WinXP可以看到的最大内存量在3到4 GB之间,具体取决于您的芯片组。

I have also run into issues running multiple instances of VS when I had resharper installed. 安装重新共享程序时,我还遇到了运行多个VS实例的问题。 The only thing you can do is run 64bit XP with more memory, or not use resharper (which is a bummer). 唯一可以做的是运行具有更多内存的64位XP,或者不使用resharper(这简直太糟糕了)。

32-bit Windows kernel divides the 4GB virtual addressing space in 2GB/2GB partitions. 32位Windows内核将4GB虚拟寻址空间划分为2GB / 2GB分区。 If you feed the /3GB switch to NTLDR it will offer 1GB kernel space / 3GB user mode space. 如果将/ 3GB开关提供给NTLDR,它将提供1GB内核空间/ 3GB用户模式空间。 Note that this NOT implies that you can't write software to take advantage of machines with 32-bit CPUs and address more than 4GB at once . 请注意,这并不意味着您不能编写软件来利用32位CPU并一次寻址超过4GB 的计算机

A workaround is the hardware-supported feature to access the remaining memory in banks or "windows" since the CPU still sees a maximum of 4GB addressable space at once. 一种变通办法是硬件支持的功能,该功能可访问存储区或“窗口”中的剩余内存,因为CPU一次仍可看到最大4GB的可寻址空间。 Some database and GIS software offer this possibility. 一些数据库和GIS软件提供了这种可能性。 This is called Physical Address Extensions and allows to use (not addressing at once) up to 64GB with 36-bit addresses. 这称为物理地址扩展,允许使用(不立即寻址)最大为64GB的36位地址。 WinXP offers AWE, an API built on top of PAE. WinXP提供AWE,这是一种基于PAE的API。

That's the theory. 那是理论。 For using Visual Studio you can get the full 4GB for your system or upgrade to a 64-bit OS with more RAM. 使用Visual Studio时,您可以获得系统的完整4GB内存,或者升级到具有更多RAM的64位OS。 This only if VS offers a 64-bit version. 在VS提供64位版本的情况下。

"Also, any other ways of running multiple visual studio without such slow performance." “此外,任何其他运行多个Visual Studio的方式都不会降低性能。”

+1 trick: you should use a RAM disk ( download ) to accelerate I/O. +1技巧:您应该使用RAM磁盘下载 )来加速I / O。

If you're using - and hopefully do - source-managament system (ie. Subversion), you must just checkout your projects there. 如果您正在使用-并希望这样做-源代码管理系统(即Subversion),则必须在此处签出项目。 VS.NET makes tons of I/O calls, and RAM disks are much faster than real disks. VS.NET进行了大量的I / O调用,并且RAM磁盘比真实磁盘快得多。

CAUTION! 警告! If you turn off your computer, RAM Disk disappers. 如果关闭计算机,RAM磁盘将消失。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM