RAM或随机存取存储器用于允许程序更快地启动并在程序必须从硬盘驱动器加载时所需时间的一小部分内执行任务。RAM 对于需要访问大量数据的任何程序的性能至关重要。(RAM is vital to performance)
例如,由于性能要求低,文字处理程序不会严重依赖RAM 。但是,详细的Excel电子表格或Photoshop需要尽可能多的RAM。游戏也是如此。在许多情况下,您需要为游戏分配额外的RAM,尤其是在您使用大量模组的情况下。
在Minecraft等游戏中确实如此,像魔多(Mordor)之影(Shadow)这样的游戏也需要高达 8.3 GB 的显存(VRAM)。好消息是您可以为特定应用分配更多RAM,以帮助提高其性能。
什么是内存?
RAM是随机存取存储器的首字母缩写词,它是计算机中最重要的部件之一。RAM是程序运行所必需的。没有它,您将无法运行大多数应用程序,并且您可以运行的应用程序的性能将大大降低。
将RAM视为计算机的短期内存。它使您的系统能够比通过SSD(SSD)更快地访问数据。如果您同时运行多个应用程序,则与一次只使用几个应用程序相比,您将需要更多的RAM 。
在现代计算机中,RAM通常是 4 的倍数。主板通常使用一种称为双通道内存的东西,这意味着您需要相同类型的 RAM(RAM of the same type) ——4 个、8 个或 16 个。没有除了您的主板可以支持的内存之外,您可以拥有的内存(RAM)数量的上限,尽管您可以合理使用的内存数量是有限的。
允许(Allow)Windows 10分配更多 RAM(Allocate More RAM)
全面提高性能的最简单方法是允许Windows使用尽可能多的RAM以确保性能(ensure performance)。找到This PC应用程序并右键单击该图标,然后选择Properties。选择高级系统设置(Advanced system settings )>设置。( Settings. )在视觉效果(Visual Effects )选项卡下,有四个选项。选择调整以获得最佳性能(Adjust for best performance)选项。
完成此操作后,单击应用。(Apply. )更改将在您重新启动 PC 后生效。此设置允许Windows根据需要分配RAM,以确保程序尽可能流畅地运行。
优先使用 RAM
另一种确保特定程序具有足够RAM的方法,特别是在同时运行多个应用程序时,是在任务管理器中优先考虑(Task Manager)RAM使用。打开任务管理器(Task Manager)并右键单击要优先处理的应用程序,然后选择转到详细信息。(Go to details.)
这将打开任务管理器的(Task Manager)详细信息(Details)选项卡。右键单击(Right-click)该进程并选择设置优先级。(Set priority. )从这里,您可以指定程序接收的优先级:实时(Realtime)、高(High)、高于正常(Above Normal)、正常(Normal)、低于正常(Below Normal)或低(Low)。
在特定程序中指定 RAM 使用(Designate RAM Usage Within Specific Programs)
另一种选择——可以说是最好的选择——是在给定程序的设置中分配更多的RAM 。这在像Minecraft(Minecraft)这样经常使用模组玩的游戏中尤其如此。如果没有超过默认数量的RAM ,许多 modpack 将无法正常运行。
请记住(Bear),执行此操作的确切过程因程序而异。即使在Minecraft中,分配RAM的过程也取决于您使用的启动器。作为一个简短的示例,您可以在默认启动器中选择Installations选项卡,然后单击(Installations )New > More Options并将JVM Argument下的文本从Xmx2G 更改(Xmx2G)为 XmX2n,其中 n 是您要使用 的RAM量。(RAM)
如果您正在寻找更深入的解释,这里是另一篇无用的文章。(here is another article than can help.)
如果可能的话,每个游戏和程序都会有不同的分配更多RAM的方法。(RAM)许多应用程序被编码为根据您的操作系统使用特定数量的RAM ,无论您有多少可用内存。(RAM)例如,32 位操作系统上的Microsoft Excel被限制为 2GB (Microsoft Excel)RAM。
使用过多 RAM 的风险
在大多数情况下,RAM是无害的。您不太可能因为在应用程序上使用过多RAM而对系统造成灾难性损坏——最糟糕的情况是程序崩溃或后台程序可能以奇怪的方式运行。
但是,有时它会造成更严重的损害。任何从事过编码工作的人都经历过堆栈溢出错误——当调用堆栈内存被超出时会发生这种问题。此错误会导致崩溃。当程序在Windows中抛出“Not Responding”错误消息时,经常会发生类似类型的问题。
当它超过其分配的RAM量并且无法再正常运行时,就会发生这种情况。等待内存清除有时可以解决问题,但首选方法是使用任务管理器(Task Manager)强制退出程序。
How to Allocate More RAM to Specific Apps in Windows
RAM, or random access memorу, is used to allow programs to boot more quickly and carry out tasks in а fractіon of the time it would take if the program had to load from yоur hard drive. RAM is vital to performance in any program that needs to access a tremendous amount of data.
For example, a word processing program won’t rely heavily on RAM due to the low performance requirements. A detailed Excel spreadsheet or Photoshop, however, needs as much RAM as you can spare it. So do games. In many cases, you need to allocate extra RAM to gaming, especially if you’re using a lot of mods.
This is true in titles like Minecraft, as do games like Shadow of Mordor which needs a whopping 8.3 GB of VRAM. The good news is that you can allocate more RAM to specific apps to help improve their performance.
What is RAM?
RAM is an acronym for random access memory, and it is one of the most important parts of your computer. RAM is necessary for programs to run. Without it, you will be unable to run most applications, and those that you can run will perform at a seriously reduced level.
Think of RAM as short-term memory for your computer. It allows your system to access data far more quickly than it can through even the SSD. If you have multiple applications running at the same time, you will need more RAM than if you are only using a few at a time.
In modern computers, RAM is typically found in multiples of 4. Motherboards often use something called dual-channel memory, which means you want RAM of the same type–either sticks of 4, sticks of 8, or sticks of 16. There is no upper limit to the amount of RAM you can have except what your motherboard can support, although there is a limit to how much you can reasonably ever use.
Allow Windows 10 to Allocate More RAM
The easiest way to improve performance across the board is to allow Windows to use as much RAM as necessary to ensure performance. Find the This PC application and right-click the icon, then select Properties. Select Advanced system settings > Settings. Under the Visual Effects tab, there are four options. Select the Adjust for best performance option.
After you do this, click Apply. The changes will take effect after you restart your PC. This setting allows Windows to allocate RAM as needed to ensure programs run as smoothly as possible.
Prioritize RAM Usage
Another way you can ensure specific programs have more than enough RAM, particularly if you are running multiple applications at once, is to prioritize RAM usage within the Task Manager. Open Task Manager and right-click the application you want to prioritize, then select Go to details.
This opens the Details tab of the Task Manager. Right-click the process and choose Set priority. From here, you can designate what priority the program receives: Realtime, High, Above Normal, Normal, Below Normal, or Low.
Designate RAM Usage Within Specific Programs
Another option–and arguably the best choice–is to allocate more RAM within the settings of a given program. This holds especially true in games like Minecraft that are often played with mods. Many modpacks will not run correctly without more than the default amount of RAM.
Bear in mind that the exact process for doing this varies from program to program. Even among Minecraft, the process for allocating RAM depends on the launcher you use. As a brief example, you can select the Installations tab in the default launcher and click New > More Options and change the text under JVM Argument from Xmx2G to XmX2n, where n is the amount of RAM you want to use.
If you are looking for a more in-depth explanation, here is another article than can help.
Each game and program will have a different method for allocating more RAM, if it is even possible. Many applications are coded to use a specific amount of RAM based on your operating system, regardless of how much you have available. For example, Microsoft Excel on 32-bit operating systems is restricted to 2GB of RAM.
Risks of Using Too Much RAM
For the most part, RAM is harmless. You aren’t likely to cause catastrophic damage to your system because you use too much RAM on an application–the worst that happens is that a program will crash or background programs might behave in odd ways.
However, there are times when it can cause more serious damage. Anyone that has ever worked in coding has experienced a stack overflow error–a problem that happens when the call stack memory is exceeded. This error results in a crash. A similar type of problem often happens when a program throws the “Not Responding” error message within Windows.
This happens when it exceeds its allotted amount of RAM and can no longer operate properly. Waiting for the memory to clear can sometimes resolve the problem, but the go-to method is to force quit a program by using the Task Manager.