diff options
Diffstat (limited to 'Documentation/filesystems/proc.rst')
| -rw-r--r-- | Documentation/filesystems/proc.rst | 33 | 
1 files changed, 31 insertions, 2 deletions
diff --git a/Documentation/filesystems/proc.rst b/Documentation/filesystems/proc.rst index c6a6b9df2104..4d97258a7954 100644 --- a/Documentation/filesystems/proc.rst +++ b/Documentation/filesystems/proc.rst @@ -688,6 +688,7 @@ files are there, and which are missing.   ============ ===============================================================   File         Content   ============ =============================================================== + allocinfo    Memory allocations profiling information   apm          Advanced power management info   bootconfig   Kernel command line obtained from boot config,   	      and, if there were kernel parameters from the @@ -953,6 +954,34 @@ also be allocatable although a lot of filesystem metadata may have to be  reclaimed to achieve this. +allocinfo +~~~~~~~~~ + +Provides information about memory allocations at all locations in the code +base. Each allocation in the code is identified by its source file, line +number, module (if originates from a loadable module) and the function calling +the allocation. The number of bytes allocated and number of calls at each +location are reported. + +Example output. + +:: + +    > sort -rn /proc/allocinfo +   127664128    31168 mm/page_ext.c:270 func:alloc_page_ext +    56373248     4737 mm/slub.c:2259 func:alloc_slab_page +    14880768     3633 mm/readahead.c:247 func:page_cache_ra_unbounded +    14417920     3520 mm/mm_init.c:2530 func:alloc_large_system_hash +    13377536      234 block/blk-mq.c:3421 func:blk_mq_alloc_rqs +    11718656     2861 mm/filemap.c:1919 func:__filemap_get_folio +     9192960     2800 kernel/fork.c:307 func:alloc_thread_stack_node +     4206592        4 net/netfilter/nf_conntrack_core.c:2567 func:nf_ct_alloc_hashtable +     4136960     1010 drivers/staging/ctagmod/ctagmod.c:20 [ctagmod] func:ctagmod_start +     3940352      962 mm/memory.c:4214 func:alloc_anon_folio +     2894464    22613 fs/kernfs/dir.c:615 func:__kernfs_new_node +     ... + +  meminfo  ~~~~~~~ @@ -1110,8 +1139,8 @@ KernelStack  PageTables                Memory consumed by userspace page tables  SecPageTables -              Memory consumed by secondary page tables, this currently -              currently includes KVM mmu allocations on x86 and arm64. +              Memory consumed by secondary page tables, this currently includes +              KVM mmu and IOMMU allocations on x86 and arm64.  NFS_Unstable                Always zero. Previous counted pages which had been written to                the server, but has not been committed to stable storage.  |