/freebsd-src/contrib/llvm-project/llvm/include/llvm/ADT/ |
H A D | PagedVector.h | 1 //===- llvm/ADT/PagedVector.h - 'Lazily allocated' vectors --*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 25 /// Order is kept, but memory is allocated only when one element of the page is 27 /// have a sparsely initialised vector where the full size is allocated upfront. 30 /// On the first access to one of the elements of a given page, all the elements 31 /// of the page are initialised. This also means that the elements of the page 32 /// are initialised beyond the size of the vector. 34 /// Similarly on destruction the elements are destroyed only when the page is [all …]
|
/freebsd-src/lib/libc/db/btree/ |
H A D | btree.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 36 #define F_SET(p, f) (p)->flags |= (f) 37 #define F_CLR(p, f) (p)->flags &= ~(f) 38 #define F_ISSET(p, f) ((p)->flags & (f)) 42 #define DEFMINKEYPAGE (2) /* Minimum keys per page */ 44 #define MINPSIZE (512) /* Minimum page size */ 47 * Page 0 of a btree file contains a copy of the meta-data. This page is also 48 * used as an out-of-band page, i.e. page pointers that point to nowhere point 49 * to page 0. Page 1 is the root of the btree. [all …]
|
H A D | bt_put.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 48 * __BT_PUT -- Add a btree item to the tree. 66 PAGE *h; in __bt_put() 73 t = dbp->internal; in __bt_put() 75 /* Toss any page pinned across calls. */ in __bt_put() 76 if (t->bt_pinned != NULL) { in __bt_put() 77 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_put() 78 t->bt_pinned = NULL; in __bt_put() 81 /* Check for change to a read-only tree. */ in __bt_put() [all …]
|
/freebsd-src/sys/compat/linuxkpi/common/include/linux/ |
H A D | mm.h | 1 /*- 5 * Copyright (c) 2013-2017 Mellanox Technologies, Ltd. 44 #include <linux/page.h> 54 CTASSERT((VM_PROT_ALL & -(1 << 8)) == 0); 134 /* user-space address */ 138 struct page *page; member 150 uint64_t totalram; /* Total usable main memory size */ 151 uint64_t freeram; /* Available memory size */ 152 uint64_t totalhigh; /* Total high memory size */ 169 get_order(unsigned long size) get_order() argument 188 page_address(page) global() argument 191 lowmem_page_address(struct page * page) lowmem_page_address() argument 201 io_remap_pfn_range(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,vm_memattr_t prot) io_remap_pfn_range() argument 233 apply_to_page_range(struct mm_struct * mm,unsigned long address,unsigned long size,pte_fn_t fn,void * data) apply_to_page_range() argument 247 remap_pfn_range(struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size,pgprot_t prot) remap_pfn_range() argument 261 set_page_dirty(struct page * page) set_page_dirty() argument 267 mark_page_accessed(struct page * page) mark_page_accessed() argument 273 get_page(struct page * page) get_page() argument 333 put_page(struct page * page) put_page() argument 338 unpin_user_page(page) global() argument 371 trylock_page(struct page * page) trylock_page() argument 377 unlock_page(struct page * page) unlock_page() argument [all...] |
/freebsd-src/share/doc/papers/malloc/ |
H A D | implementation.ms | 2 .\" ---------------------------------------------------------------------------- 3 .\" "THE BEER-WARE LICENSE" (Revision 42): 6 .\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7 .\" ---------------------------------------------------------------------------- 20 .I page-directory 23 for each page we have control over. 33 This is a free page. 36 This is the first page in a (multi-)page allocation. 39 This is a subsequent page in a multi-page allocation. 44 A pointer to a structure describing a partitioned page. [all …]
|
/freebsd-src/sys/compat/linuxkpi/common/src/ |
H A D | linux_page.c | 1 /*- 67 #include <linux/io-mapping.h> 78 si->totalram = physmem; in si_meminfo() 79 si->freeram = vm_free_count(); in si_meminfo() 80 si->totalhigh = 0; in si_meminfo() 81 si->freehigh = 0; in si_meminfo() 82 si->mem_unit = PAGE_SIZE; in si_meminfo() 86 linux_page_address(struct page *page) in linux_page_address() argument 89 if (page in linux_page_address() 101 struct page *page; linux_alloc_pages() local 152 size_t size = ((size_t)PAGE_SIZE) << order; _linux_free_kmem() local 158 linux_free_pages(struct page * page,unsigned int order) linux_free_pages() argument 182 size_t size = ((size_t)PAGE_SIZE) << order; linux_alloc_kmem() local 203 vm_page_t page; linux_free_kmem() local 302 vm_page_t page; lkpi_vmf_insert_pfn_prot_locked() local 357 lkpi_remap_pfn_range(struct vm_area_struct * vma,unsigned long start_addr,unsigned long start_pfn,unsigned long size,pgprot_t prot) lkpi_remap_pfn_range() argument 401 lkpi_io_mapping_map_user(struct io_mapping * iomap,struct vm_area_struct * vma,unsigned long addr,unsigned long pfn,unsigned long size) lkpi_io_mapping_map_user() argument 424 vm_page_t page; lkpi_unmap_mapping_range() local 447 lkpi_arch_phys_wc_add(unsigned long base,unsigned long size) lkpi_arch_phys_wc_add() argument 542 vm_page_t page; linuxkpi_page_frag_free() local 549 linuxkpi__page_frag_cache_drain(struct page * page,size_t count __unused) linuxkpi__page_frag_cache_drain() argument [all...] |
/freebsd-src/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | abd_os.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 120 * contiguous multi-page chunks, a single chunk is optimal. 158 * zfs_abd_scatter_min_size is the minimum allocation size to use scatter 162 * Scatter ABD's use at least one page each, so sub-page allocations waste 164 * half of each page). Using linear ABD's for small allocations means that 170 * possible for them to actually waste more memory than scatter (one page per 174 * selinux with the default dnode size an 208 abd_chunkcnt_for_bytes(size_t size) abd_chunkcnt_for_bytes() argument 214 abd_alloc_struct_impl(size_t size) abd_alloc_struct_impl() argument 245 abd_mark_zfs_page(struct page * page) abd_mark_zfs_page() argument 253 abd_unmark_zfs_page(struct page * page) abd_unmark_zfs_page() argument 260 abd_mark_zfs_page(page) global() argument 261 abd_unmark_zfs_page(page) global() argument 278 abd_alloc_chunks(abd_t * abd,size_t size) abd_alloc_chunks() argument 283 struct page *page, *tmp_page = NULL; abd_alloc_chunks() local 401 abd_alloc_chunks(abd_t * abd,size_t size) abd_alloc_chunks() argument 405 struct page *page; abd_alloc_chunks() local 455 struct page *page; abd_free_chunks() local 537 struct page *page; global() member 565 sg_set_page(struct scatterlist * sg,struct page * page,unsigned int len,unsigned int offset) sg_set_page() argument 590 abd_alloc_chunks(abd_t * abd,size_t size) abd_alloc_chunks() argument 652 abd_size_alloc_linear(size_t size) abd_size_alloc_linear() argument 853 abd_alloc_for_io(size_t size,boolean_t is_metadata) abd_alloc_for_io() argument 860 abd_get_offset_scatter(abd_t * abd,abd_t * sabd,size_t off,size_t size) abd_get_offset_scatter() argument 1055 ABD_ITER_PAGE_SIZE(page) global() argument 1059 ABD_ITER_PAGE_SIZE(page) global() argument 1072 struct page *page; abd_iter_page() local 1151 abd_nr_pages_off(abd_t * abd,unsigned int size,size_t off) abd_nr_pages_off() argument 1182 unsigned int offset, size, i; bio_map() local 1183 struct page *page; bio_map() local 1231 int size = MIN(io_size, cabd->abd_size - off); abd_gang_bio_map_off() local [all...] |
/freebsd-src/sys/x86/iommu/ |
H A D | intel_idpgtbl.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 72 iommu_gaddr_t base, iommu_gaddr_t size, int flags, 76 * The cache of the identity mapping page tables for the DMARs. Using 77 * the cache saves significant amount of memory for page tables by 78 * reusing the page tables, since usually DMARs are identical and have 80 * to match DMAR capabilities and page tabl 422 domain_map_buf_locked(struct dmar_domain * domain,iommu_gaddr_t base,iommu_gaddr_t size,vm_page_t * ma,uint64_t pflags,int flags) domain_map_buf_locked() argument 499 domain_map_buf(struct iommu_domain * iodom,iommu_gaddr_t base,iommu_gaddr_t size,vm_page_t * ma,uint64_t eflags,int flags) domain_map_buf() argument 613 domain_unmap_buf_locked(struct dmar_domain * domain,iommu_gaddr_t base,iommu_gaddr_t size,int flags) domain_unmap_buf_locked() argument 685 domain_unmap_buf(struct iommu_domain * iodom,iommu_gaddr_t base,iommu_gaddr_t size,int flags) domain_unmap_buf() argument 768 domain_flush_iotlb_sync(struct dmar_domain * domain,iommu_gaddr_t base,iommu_gaddr_t size) domain_flush_iotlb_sync() argument [all...] |
/freebsd-src/share/doc/usd/21.troff/ |
H A D | m5 | 1 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved. 76 The Compatible Time-Sharing System, 85 as page margins and footnotes 89 environment switching, page-position trap, and conditional input mechanisms 90 provide the basis for user-defined implementations. 104 Page Margins 108 to describe the top and bottom page margin areas respectively. 109 A trap is planted at page position 0 for the header, and at 110 \fI\-N\fR (\fIN\fR from the page bottom) for the footer. 120 &wh \-1i fo [all …]
|
H A D | m1 | 1 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved. 61 a user-defined \fImacro\fR in place of the control line. 80 or left-parenthesis-introduced, two-character name as in \fB\en(\fIxx\fR. 91 typewriter-like output devices. 104 \fIS\fR is the current type size in points, 128 which is output-device dependent; 131 such as \(mi> (\(->) are often extra wide. 132 The default scaling is ems for the horizontally-oriented requests 145 for the vertically-oriented requests and functions 170 The number, \fIN\fR, may be specified in decimal-fraction form [all …]
|
/freebsd-src/sys/contrib/device-tree/Bindings/perf/ |
H A D | marvell-cn10k-tad.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/perf/marvell-cn10k-tad.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Marvell CN10K LLC-TAD performance monitor 10 - Bhaskara Budiredla <bbudiredla@marvell.com> 13 The Tag-and-Data units (TADs) maintain coherence and contain CN10K 14 shared on-chip last level cache (LLC). The tad pmu measures the 15 performance of last-level cache. Each tad pmu supports up to eight 23 const: marvell,cn10k-tad-pmu [all …]
|
/freebsd-src/lib/libc/db/hash/ |
H A D | hash_page.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 39 * Page manipulation for hashing package. 64 #include "un-namespace.h" 69 #include "page.h" 82 ((u_int16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(u_int16_t); \ 83 ((u_int16_t *)(P))[2] = hashp->BSIZE; \ 87 * This is called AFTER we have verified that there is room on the page for 101 off = OFFSET(bp) - key->size; in putpair() 102 memmove(p + off, key->data, key->size); in putpair() [all …]
|
H A D | hash_bigkey.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 66 #include "page.h" 79 *-1 ==> ERROR 90 cp = bufp->page; /* Character pointer of p. */ in __big_insert() 93 key_data = (char *)key->data; in __big_insert() 94 key_size = key->size; in __big_insert() 95 val_data = (char *)val->data; in __big_insert() 96 val_size = val->size; in __big_insert() 99 for (space = FREESPACE(p) - BIGOVERHEAD; key_size; in __big_insert() [all …]
|
/freebsd-src/share/doc/usd/22.trofftut/ |
H A D | tt09 | 4 .\" Copyright (C) Caldera International Inc. 2001-2002. All rights reserved. 49 Suppose you want a title at the top of each page, 63 to get headers and footers automatically on every page. 76 (for `new page') to process 77 titles and the like at the end of one page 87 To make sure we're at the top of a page, 88 we issue a `begin page' command 90 which causes a skip to top-of-page 104 at the bottom of each page, 107 of the bottom of the page, [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/amdzen1/ |
H A D | memory.json | 11 …n": "Counts the number of operations dispatched to the LS unit. Unit Masks ADDed. Load-op-Stores.", 34 …esses, although these are generally rare. Each increment represents an eight-byte access, although… 39 "BriefDescription": "LS MAB allocates by type - DC prefetcher.", 45 "BriefDescription": "LS MAB allocates by type - stores.", 51 "BriefDescription": "LS MAB allocates by type - loads.", 63 "BriefDescription": "L1 DTLB Miss of a page of 1G size.", 69 "BriefDescription": "L1 DTLB Miss of a page of 2M size.", 75 "BriefDescription": "L1 DTLB Miss of a page of 32K size.", 81 "BriefDescription": "L1 DTLB Miss of a page of 4K size.", 87 "BriefDescription": "L1 DTLB Reload of a page of 1G size.", [all …]
|
/freebsd-src/contrib/jemalloc/include/jemalloc/internal/ |
H A D | pages.h | 4 /* Page size. LG_PAGE is determined by the configure script. */ 8 #define PAGE ((size_t)(1U << LG_PAGE)) macro 9 #define PAGE_MASK ((size_t)(PAGE - 1)) 10 /* Return the page base address for the page containing address a. */ 17 /* Huge page size. LG_HUGEPAGE is determined by the configure script. */ 19 #define HUGEPAGE_MASK ((size_t)(HUGEPAGE - 1)) 20 /* Return the huge page base address for the huge page containing address a. */ 34 * The only supported way to hard-purge on Windows is to decommit and then 35 * re-commit, but doing so is racy, and if re-commit fails it's a pain to 75 void *pages_map(void *addr, size_t size, size_t alignment, bool *commit); [all …]
|
H A D | sz.h | 10 * sz module: Size computations. 13 * p: Page 15 * s, sz: Size 16 * u: Usable size 20 * interpret function names. E.g. sz_psz2ind converts page size to page size 21 * index; sz_sa2u converts a (size, alignment) allocation request to the usable 22 * size that would result from such an allocation. 37 * size classes. In order to reduce cache footprint, the table is compressed, 44 PAGE 57 pszind_t x = lg_floor((psz<<1)-1); in sz_psz2ind() [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/ivytown/ |
H A D | virtual-memory.json | 3 … all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.… 12 "BriefDescription": "Demand load cycles page miss handler (PMH) is busy with this walk.", 21 "BriefDescription": "Page walk for a large page completed for Demand load.", 30 … load Miss in all translation lookaside buffer (TLB) levels causes an page walk of any page size.", 35 …"PublicDescription": "Misses in all TLB levels that cause a page walk of any page size from demand… 40 …": "Load operations that miss the first DTLB level but hit the second and do not cause page walks", 50 … all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.… 55 …"PublicDescription": "Misses in all TLB levels that caused page walk completed of any size by dema… 60 "BriefDescription": "Demand load cycles page miss handler (PMH) is busy with this walk.", 70 "BriefDescription": "Store misses in all DTLB levels that cause page walks", [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/broadwellde/ |
H A D | virtual-memory.json | 3 "BriefDescription": "Load misses in all DTLB levels that cause page walks", 9 …: "This event counts load misses in all DTLB levels that cause page walks of any page size (4K/2M/… 14 …: "Load operations that miss the first DTLB level but hit the second and do not cause page walks.", 41 … all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.… 51 "BriefDescription": "Load miss in all TLB levels causes a page walk that completes. (1G)", 57 …unts load misses in all DTLB levels that cause a completed page walk (1G page size). The page wal… 62 …emand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes… 68 … load misses in all DTLB levels that cause a completed page walk (2M and 4M page sizes). The page … 73 …emand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes… 79 …unts load misses in all DTLB levels that cause a completed page walk (4K page size). The page walk… [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/broadwell/ |
H A D | virtual-memory.json | 3 "BriefDescription": "Load misses in all DTLB levels that cause page walks", 9 …: "This event counts load misses in all DTLB levels that cause page walks of any page size (4K/2M/… 14 …: "Load operations that miss the first DTLB level but hit the second and do not cause page walks.", 41 … all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.… 51 "BriefDescription": "Load miss in all TLB levels causes a page walk that completes. (1G)", 57 …unts load misses in all DTLB levels that cause a completed page walk (1G page size). The page wal… 62 …emand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes… 68 … load misses in all DTLB levels that cause a completed page walk (2M and 4M page sizes). The page … 73 …emand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes… 79 …unts load misses in all DTLB levels that cause a completed page walk (4K page size). The page walk… [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/broadwellx/ |
H A D | virtual-memory.json | 3 "BriefDescription": "Load misses in all DTLB levels that cause page walks", 9 …: "This event counts load misses in all DTLB levels that cause page walks of any page size (4K/2M/… 14 …: "Load operations that miss the first DTLB level but hit the second and do not cause page walks.", 41 … all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.… 51 "BriefDescription": "Load miss in all TLB levels causes a page walk that completes. (1G)", 57 …unts load misses in all DTLB levels that cause a completed page walk (1G page size). The page wal… 62 …emand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes… 68 … load misses in all DTLB levels that cause a completed page walk (2M and 4M page sizes). The page … 73 …emand load Miss in all translation lookaside buffer (TLB) levels causes a page walk that completes… 79 …unts load misses in all DTLB levels that cause a completed page walk (4K page size). The page walk… [all …]
|
/freebsd-src/lib/libpmc/pmu-events/arch/x86/ivybridge/ |
H A D | virtual-memory.json | 3 "BriefDescription": "Page walk for a large page completed for Demand load.", 12 … load Miss in all translation lookaside buffer (TLB) levels causes an page walk of any page size.", 17 …"PublicDescription": "Misses in all TLB levels that cause a page walk of any page size from demand… 22 …": "Load operations that miss the first DTLB level but hit the second and do not cause page walks", 32 … all translation lookaside buffer (TLB) levels causes a page walk that completes of any page size.… 37 …"PublicDescription": "Misses in all TLB levels that caused page walk completed of any size by dema… 42 "BriefDescription": "Demand load cycles page miss handler (PMH) is busy with this walk.", 52 "BriefDescription": "Store misses in all DTLB levels that cause page walks", 57 … "PublicDescription": "Miss in all TLB levels causes a page walk of any page size (4K/2M/4M/1G).", 62 …": "Store operations that miss the first TLB level but hit the second and do not cause page walks", [all …]
|
/freebsd-src/contrib/llvm-project/lld/MachO/ |
H A D | UnwindInfoSection.cpp | 1 //===- UnwindInfoSection.cpp --------- 553 SecondLevelPage &page = secondLevelPages.back(); finalize() local 651 for (const SecondLevelPage &page : secondLevelPages) { writeTo() local 684 for (const SecondLevelPage &page : secondLevelPages) { writeTo() local [all...] |
/freebsd-src/lib/libc/db/man/ |
H A D | btree.3 | 46 this manual page describes only the 62 .Bd -literal 76 .Bl -tag -width indent 81 .Bl -tag -width indent 112 A suggested maximum size (in bytes) of the memory cache. 116 Since every search examines the root page of the tree, caching the most 124 is 0 (no size is specified) a default cache is used. 126 The maximum number of keys which will be stored on any single page. 128 .\" The maximum number of keys which will be stored on any single page. 136 .\" is 0 (no maximum number of keys is specified) the page fill factor is [all …]
|
/freebsd-src/lib/libsys/ |
H A D | mincore.2 | 51 .\"is first rounded down to a multiple of the page size (see 55 .\"is rounded up to a multiple of the page size. 58 array, one character per page. 59 Each character is either 0 if the page is not resident, or a combination of 62 .Bl -tag -width ".Dv MINCORE_REFERENCED_OTHER" 64 Page is in core (resident). 66 Page has been referenced by us. 68 Page has been modified by us. 70 Page has been referenced. 72 Page has been modified. [all …]
|