当到内存的程序加载时,它是分成称为页件。
When a program loads into the memory, it is broken up into pieces called pages.
在Unix中您将看到可执行任务的概念,一个进程通常是装入内存的程序。
In Unix you'll see the concept of an executable task, a process that is usually a program loaded into memory.
下面让我们开始介绍这个样例程序,首先是不使用共享内存的程序。
Let's start with the sample program, the one that doesn't use Shared memory.
这种策略使小不使用太多内存的程序内存分配,但减少了大量应用程序已请求新分配的次数。
This strategy keeps the memory allocation small for programs that don't use much memory, but reduces the number of times that a large application has to request new allocations.
请在核实有足够的内存后再安装程序。
Please verify that there is sufficient memory available before loading the program.
尝试使用名称恰当的Oink来减少Rails应用程序的内存使用。
Try the aptly-named Oink to reduce the memory usage of your Rails application.
清单2展示了一个有内存泄漏的程序。
请注意,您正告诉gdb调试工具停止对一个仍在内存中活动的程序的调试。
Notice that you're telling the GDB Debugger to quit debugging a program that is still active in memory.
此计算机需要更多的内存或者减少正在运行的程序。
This machine needs either more memory or fewer programs running.
为了处理该数据,它必须放入计算机的内存供程序处理(图2)。
To process this data, it must be brought into the computer's memory so the program can process it (Figure 2).
但如果不是内存泄漏,而您的应用程序正在使用大量的内存,那又该怎么办呢?
But what if it's not a leak and your application is using up a lot of memory?
好的,这里有一块叫做堆的内存,这样你就可以获得你想要那么多的内存,因为它为你的程序而存在。
Well, there's a chunk of memory called the heap that you can grab as much memory as you want so long as it exists for your program.
许多程序都非常消耗内存—它们占用了大量的RAM,而且当其他程序需要的时候也不会释放内存空间。
Many programs are memory consumption - they occupy a large amount of ram, and when other procedures, when necessary, and will not release memory space.
每个线程都有相关联的数据;因此,随着线程数量的增加,应用程序的内存消耗也会增加。
Each thread has associated data; so, as the number of threads increases, the memory consumption of the application also increases.
如果有足够多的进程,内存在开销上的浪费可能会超过应用程序请求使用的内存数量。
With enough processes, the memory wasted on overhead might exceed the amount of memory the application requested for use.
当应用程序正在初始化或者应用程序的工作负载增加时,应用程序的内存使用自然也将增加。
The memory usage of an application will naturally increase when the application is initializing and if the workload of the application increases.
因为计数器的值仅存在运行程序的内存中,如果程序重启,那么这些值将重新开始。
Because the value of the counter exists only in the memory of the running program, the values will start over if the program is restarted.
程序集需要的内存主要取决于该程序集所做的工作,但是程序集实际使用的内存受到应用程序从事其各种任务的方式的影响。
The memory an assembly requires depends largely on what the assembly does, but the memory actually used by an assembly is affected by how an application goes about its various tasks.
分配给内存区域的内存应用程序创建的每个内存区域会被分配所申请的内存大小。
Memory allocated to a memory area Each memory area created by an application is allocated with a requested size.
弱引用、软引用和虚引用允许灵活的缓存,能够改进应用程序的内存特性。
Weak, soft, and phantom references can improve the memory characteristics of your application by allowing flexible caching.
大体上说,库可以自动进行较多的内存管理,这样程序员可以犯更少的错误。
In broad terms, the libraries automate more of memory management so that the programmer makes fewer errors.
我们还通过找出与分页争用内存的应用程序和进程的数量来确定每秒内存分页。
We also determined the paging per second by looking at the number of applications and processes contending for the memory allocated for paging.
在应用程序启动期间执行的任务和分配的内存越多,应用程序准备的时间就越长,初始工作集就越大。
The more tasks performed and memory allocated during application startup, the longer before an application is ready and the larger the initial working set.
诊断造成内存膨胀的应用程序中的数据建模问题。
Diagnose data modeling problems in the application that contribute to memory bloat.
应用程序全局内存是指运行应用程序所需的内存。
Application global memory is the memory required for the application to run.
这种类型的内存泄漏将会导致您的程序越来越大,运行越来越慢,最终耗尽内存。
This type of memory leak will cause your programs to be bloated, get slower over time, and eventually run out of memory.
使用处理器较多而且频繁访问内存的应用程序将最为受益,因为NUMA减少了某个处理器访问内存中某个区域的时间。
Applications that are processor intensive and access memory frequently will benefit the greatest since NUMA decreases the time it takes a processor to access a region in memory.
通常,它需要相当多的调试和调查来了解导致内存错误的程序逻辑和设计。
Often, it requires a considerable amount of debugging and investigation to understand mistakes in your program logic and design that are causing memory errors.
通常,它需要相当多的调试和调查来了解导致内存错误的程序逻辑和设计。
Often, it requires a considerable amount of debugging and investigation to understand mistakes in your program logic and design that are causing memory errors.
应用推荐