| /linux/Documentation/core-api/ |
| H A D | memory-allocation.rst | 7 Linux provides a variety of APIs for memory allocation. You can 14 Most of the memory allocation APIs use GFP flags to express how that 16 pages", the underlying memory allocation function. 18 Diversity of the allocation APIs combined with the numerous GFP flags 34 Of course there are cases when other allocation APIs and different GFP 53 * If the allocation is performed from an atomic context, e.g interrupt 56 ``GFP_NOWAIT`` allocation is likely to fail. Users of this flag need 60 will be stressed unless allocation succeeds, you may use ``GFP_ATOMIC``. 75 example may be a hardware allocation that maps data directly into 102 * ``GFP_KERNEL & ~__GFP_RECLAIM`` - optimistic allocation withou [all...] |
| H A D | genalloc.rst | 4 There are a number of memory-allocation subsystems in the kernel, each 32 which NUMA node should be used for the allocation of the housekeeping 87 how the allocation functions choose which specific piece of memory to 107 - gen_pool_first_fit_align forces the allocation to have a specific 110 - gen_pool_first_fit_order_align aligns the allocation to the order of the 111 size. A 60-byte allocation will thus be 64-byte aligned, for example. 117 If the indicated memory is not available the allocation fails.
|
| H A D | boot-time-mm.rst | 16 functions and macros for memory allocations. The allocation request 19 when an allocation fails and those that don't.
|
| H A D | idr.rst | 18 only ID allocation, and as a result is much more memory-efficient. 36 ID by passing a ``NULL`` pointer to the allocation function; initialise the 67 idr_preload_end() after the allocation.
|
| H A D | swiotlb.rst | 20 if bounce buffering is necessary. If so, the DMA layer manages the allocation, 106 A single allocation from swiotlb is limited to IO_TLB_SIZE * IO_TLB_SEGSIZE 119 of the bounce buffer that slightly reduces the maximum size of an allocation. 128 parameter specifies the allocation of bounce buffer space must start at a 177 trying an allocation, so contention may occur if swiotlb is relatively busy 178 overall. But an allocation request does not fail unless all areas do not have 189 Because a bounce buffer allocation can't cross a slot set boundary, eliminating 193 change in the future, the initial pool allocation might need to be done with 199 the amount of memory available for allocation as bounce buffers. If a bounce 203 because the memory allocation may block, and as noted above, swiotlb requests [all …]
|
| /linux/Documentation/trace/ |
| H A D | events-kmem.rst | 5 The kmem tracing system captures events related to object and page allocation 8 - Slab allocation of small objects of unknown type (kmalloc) 9 - Slab allocation of small objects of known type 10 - Page allocation 17 1. Slab allocation of small objects of unknown type 27 internal fragmented as a result of the allocation pattern. By correlating 29 the allocation sites were. 32 2. Slab allocation of small objects of known type 45 3. Page allocation 54 These four events deal with page allocation and freeing. mm_page_alloc is [all …]
|
| /linux/Documentation/mm/ |
| H A D | allocation-profiling.rst | 23 When set to "never", memory allocation profiling overhead is minimized and it 30 If compression fails, a warning is issued and memory allocation profiling gets 52 This reflects a static boot-time configuration of how page allocation tags are 63 by module name, function, file, line number, accuracy, or allocation size limits. 83 Memory allocation profiling builds off of code tagging, which is a library for 88 To add accounting for an allocation call, we replace it with a macro 92 - calls the real allocation function 97 do not properly belong to the outer allocation context and should be counted 101 Thus, proper usage requires determining which function in an allocation call 108 - switch its allocation call to the _noprof() version, e.g. kmalloc_noprof() [all …]
|
| H A D | page_frags.rst | 11 simple allocation framework for page fragments. This is used by the 17 cache is needed. This provides a central point for the fragment allocation 20 which can be expensive at allocation time. However due to the nature of 23 to be disabled when executing the fragment allocation. 26 allocation. The netdev_alloc_cache is used by callers making use of the 41 avoid calling get_page per allocation.
|
| /linux/drivers/android/binder/range_alloc/ |
| H A D | array.rs | 18 /// keeps track of allocations made in the mmap. For each allocation, we store a descriptor that 19 /// has metadata related to the allocation. We also keep track of available free space. 247 let DescriptorState::Allocated(allocation) = &mut range.state else { in reserve_existing() 251 let data = allocation.take(); in reserve_existing() 252 let debug_id = allocation.reservation.debug_id; in reserve_existing() 253 range.state = DescriptorState::Reserved(allocation.reservation.clone()); in reserve_existing() 259 if let DescriptorState::Allocated(allocation) = &mut range.state { in take_for_each() 263 allocation.reservation.debug_id, in take_for_each() 264 allocation.data.take(), in take_for_each()
|
| H A D | tree.rs | 19 /// keeps track of allocations made in the mmap. For each allocation, we store a descriptor that 20 /// has metadata related to the allocation. We also keep track of available free space. 22 /// This collection contains descriptors for *both* ranges containing an allocation, *and* free 148 /// Try to reserve a new buffer, using the provided allocation if necessary. 338 Some((DescriptorState::Allocated(allocation), free_node_res)) => { in reserve_existing() 339 let (reservation, data) = allocation.deallocate(); in reserve_existing() 363 if let Some((DescriptorState::Allocated(allocation), _)) = &mut desc.state { in take_for_each() 367 allocation.debug_id(), in take_for_each() 368 allocation.take(), in take_for_each() 429 /// An allocation fo [all...] |
| /linux/Documentation/filesystems/ext4/ |
| H A D | bigalloc.rst | 15 use clustered allocation, so that each bit in the ext4 block allocation 19 This means that each bit in the block allocation bitmap now addresses 20 256 4k blocks. This shrinks the total size of the block allocation 29 128MiB); however, the minimum allocation unit becomes a cluster, not a
|
| /linux/drivers/md/dm-vdo/ |
| H A D | dump.c | 163 wait_on, data_vio, data_vio->allocation.pbn, data_vio->logical.lbn, in dump_vio_waiters() 169 data_vio, data_vio->allocation.pbn, data_vio->logical.lbn, in dump_vio_waiters() 239 data_vio->allocation.pbn, data_vio->logical.lbn, in dump_data_vio() 244 data_vio->allocation.pbn, data_vio->logical.lbn); in dump_data_vio()
|
| /linux/tools/testing/memblock/ |
| H A D | README | 17 allocation functionalities of memblock. The main data structure of the boot time 58 allocation functions. Tests for each group are defined in dedicated files, as it 82 Some allocation functions clear the memory in the process, so it is required for 85 points to a block of memory allocated via malloc. For each group of allocation 87 at the end of the test run. The structure of a test runner checking allocation 95 (...allocation checks...) 107 allocation must not use; an allocation's base plus its size may equal the limit.
|
| /linux/Documentation/admin-guide/ |
| H A D | numastat.rst | 12 the preferred node and numa_miss on the node where allocation succeeded. 17 incremented on allocation from a node by CPU on the same node. other_node is 18 similar to numa_miss and is incremented on the node where allocation succeeds 53 preferred node. As a result, such allocation will not increase the numa_foreign
|
| /linux/Documentation/driver-api/cxl/allocation/ |
| H A D | page-allocator.rst | 7 The kernel page allocator services all general page allocation requests, such 32 available and compatible ZONE for an allocation from the local node first. 34 An example of a `zone incompatibility` is attempting to service an allocation 46 Finally, assuming CXL memory is reachable via the page allocation (i.e. onlined
|
| H A D | hugepages.rst | 29 allocation. 32 Page allocation.
|
| /linux/drivers/soundwire/ |
| H A D | Makefile | 11 soundwire-generic-allocation-objs := generic_bandwidth_allocation.o 12 obj-$(CONFIG_SOUNDWIRE_GENERIC_ALLOCATION) += soundwire-generic-allocation.o
|
| /linux/Documentation/arch/arm64/ |
| H A D | memory-tagging-extension.rst | 19 allocation tag for each 16-byte granule in the physical address space. 23 the logical tag against the allocation tag and potentially raise an 36 To access the allocation tags, a user process must enable the Tagged 40 ``PROT_MTE`` - Pages allow access to the MTE allocation tags. 42 The allocation tag is set to 0 when such pages are first mapped in the 44 supported and the allocation tags can be shared between processes. 55 ``MADV_FREE`` may have the allocation tags cleared (set to 0) at any 62 the logical and allocation tags occurs on access, there are three 229 The allocation tags for user memory mapped with ``PROT_MTE`` are dumped 302 * Set the allocation tag on the destination address. [all …]
|
| /linux/arch/powerpc/platforms/powernv/ |
| H A D | Kconfig | 31 bool "Enable runtime allocation of RAM for tracing" 34 Enabling this option allows for runtime allocation of memory (RAM)
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H A D | memory-allocation.rst | 3 :Original: Documentation/core-api/memory-allocation.rst 13 .. _cn_core-api_memory-allocation:
|
| /linux/scripts/coccinelle/null/ |
| H A D | eno.cocci | 2 /// The various basic memory allocation functions don't return ERR_PTR 48 msg = "ERROR: allocation function on line %s returns NULL not ERR_PTR on failure" % (p1[0].line)
|
| /linux/Documentation/userspace-api/ |
| H A D | dma-buf-alloc-exchange.rst | 180 described as having a height of 1080, with the memory allocation for each buffer 233 buffer-allocation interface available at either kernel or userspace level, the 234 client makes an arbitrary choice of allocation interface such as Vulkan, GBM, or 237 Each allocation request must take, at a minimum: the pixel format, a list of 239 this set of properties in different ways, such as allowing allocation in more 244 allocation, any padding required, and further properties of the underlying 250 After allocation, the client must query the allocator to determine the actual 272 memory. For this reason, each import and allocation API must provide a separate 314 In the latter case, the allocation is as discussed above, being provided with a 343 - during allocation, a user may supply ``DRM_FORMAT_MOD_INVALID``, either as the [all …]
|
| /linux/Documentation/admin-guide/mm/ |
| H A D | transhuge.rst | 76 allocation failures to be noticeable from userland. It allows paging 151 given allocation. 159 guaranteed, but it may be more likely in case the allocation is for a 172 allocation failure and directly reclaim pages and compact 208 allocation library) may want to know the size (in bytes) of a 293 allocation failure to throttle the next allocation attempt:: 390 allocation policy for the internal shmem mount by using the kernel parameter 396 hugepage allocation policy for the tmpfs mount by using the kernel parameter 439 The THP allocation policy for tmpfs mounts can be adjusted using the mount 445 huge pages if the PMD-sized huge page allocation fails; [all …]
|
| /linux/Documentation/driver-api/ |
| H A D | sm501.rst | 41 The centralised memory allocation allows the driver to ensure that the 42 maximum possible resource allocation can be made to the video subsystem 45 The primary issue with memory allocation is that of moving the video
|
| /linux/mm/ |
| H A D | Kconfig.debug | 25 with stack traces of last allocation and freeing of the page, when 212 detector. The memory allocation/freeing is traced in a way 285 bool "Enable memory allocation profiling" 293 Track allocation source code and record total allocation size 298 bool "Enable memory allocation profiling by default" 303 bool "Memory allocation profiler debugging" 308 Adds warnings with helpful error messages for memory allocation
|