Within in_pcballoc, the kernel's memory allocator function is called, which allocates memory to the Internet control block. 在inpcballoc中,调用了内核的内存分配器函数,该函数将内存分配给Internet控制块。
When the allocator is unable to fulfill an allocation request, it first triggers a minor collection, which only collects the youngest generation. 当分配器不能满足分配请求时,它首先触发一个小的收集(minorcollection),它只收集最年轻的代。
The Linux slab allocator uses these ideas and others to build a memory allocator that is efficient in both space and time. Linuxslab分配器使用了这种思想和其他一些思想来构建一个在空间和时间上都具有高效性的内存分配器。
The allocator can't coalesce free space into larger blocks. 分配程序不能将空闲空间拼合为更大的内存块。
A final optimization again, contiguous block related is the block allocator for ext4. 这是最后一个与相邻块相关的优化,即针对ext4的块分配器。
Entries for the dentry cache are allocated from the dentry_cache slab allocator and use a least-recently-used ( LRU) algorithm to prune entries when memory pressure exists. dentry缓存的条目从dentrycacheslab分配器分配,并且在缓存存在压力时使用最近不使用(least-recently-used,LRU)算法删除条目。
It frees every memory block you created earlier and invalidates all the pointers returned from the allocator routines. 该方法释放您先前创建的内存块,并使得从分配程序例程返回的所有指针失效。
Individual inode cache objects are allocated from the inode_cache slab allocator. 从inodecacheslab分配器分配单个inode缓存对象。
In ext3, the block allocator worked by allocating a single block at a time. 在ext3中,块分配器的工作方式是每次分配一个块。
As you can see, in this allocator, freeing memory is done in constant time, using a very simple mechanism. 如您所见,在这个分配程序中,内存的释放使用了一个非常简单的机制,在固定时间内完成内存释放。
Doug Lea's allocator has a basic structure much like our version, but it incorporates indexes to make searching faster and has the ability to combine multiple unused chunks into one large chunk. DougLea的分配程序有着与我们的版本非常类似的基本结构,但是它加入了索引,这使得搜索速度更快,并且可以将多个没有被使用的块组合为一个大的块。
Ext4 fixes this with a block allocator that allocates multiple blocks at a time, likely contiguous on disk. ext4使用块分配器修复了这个问题,它能够在磁盘上一次分配多个块。
In C++, you can implement your own allocator on a per-class or per-template basis by overloading operator new(). 在C++中,通过重载operatornew(),您可以以每个类或者每个模板为单位实现自己的分配程序。
Jeff's allocator revolves around object caching. Jeff的分配器是围绕对象缓存进行的。
Then, the object allocator was modified to use the Objective-C one instead, which means that all objects ( Ruby and Objective-C) are allocated from the same memory pool. 接下来,对象分配器也被修改为使用Objective-C的对象分配器来代替,这意味着所有的对象(Ruby和Objective-C)的分配都来自同一个内存池。
First of all, the instructions from two incoming queues pass through Allocator and Register Rename units. 首先,奉两龙来袭通过分配器和登记命名单位。
Every asset allocator I have contact with is chasing the best return they can get, he said. 我接触过的每个资产配置者都在追求他们所能获得的最大收益,他表示。
On UNIX systems, you can now use your allocator in place of your system malloc() by doing this 在UNIX系统中,现在您可以用您的分配程序来取代系统的malloc(),做法如下
This article presents a description of some of the main design goals, algorithms, and implementation considerations for this allocator. 本文展现了这个分配器的一些主要设计目标,算法以及实现考虑。
Hoard: A Scalable Memory Allocator for Multithreaded Applications. 介绍一种多处理器多线程的内存分配器。
Malloc_init is going to be our function to initialize our memory allocator. mallocinit将是初始化内存分配程序的函数。
This memory I can take from my own allocator as in many projects. 该内存我可以从我的许多项目在自己的分配器。
In fact, if you do this, you can use the same LD_PRELOAD trick that we used for our simple allocator to enable garbage collection in almost any program on your system. 实际上,如果这样做,您就可以使用与我们在示例分配程序中所使用的相同的LDPRELOAD技巧,在系统上的几乎任何程序中启用垃圾收集。
Not only does our memory manager have shortcomings, there are many shortcomings of malloc()-based memory management that remain no matter which allocator you use. 不只是我们的内存管理器有缺点,基于malloc()的内存管理器仍然也有很多缺点,不管您使用的是哪个分配程序。
In our simple allocator, it was very slow in allocation but very, very fast in deallocation. 在我们的简单的分配程序中,分配非常慢,而回收非常快。
In that case, two or more pin connections can share one allocator. 在这种情况中,两个或更多针的连接可以共享于一个分配器。
The allocator's simplistic fitting algorithm leads to a lot of potential memory fragmentation. 分配程序的过于简单的匹配算法会导致产生很多潜在的内存碎片。
The page allocator, which is the manager of all the pages, allocates and frees physical pages. 物理内存被划分成大小相同的页帧,页面分配器管理所有的页帧,负责分配和释放物理页面。
You can provide any custom memory allocator of your favor. 您可以提供您的任何自定义的内存分配器的青睐。