Home
last modified time | relevance | path

Searched refs:pages (Results 1 – 25 of 114) sorted by relevance

12345

/f-stack/dpdk/usertools/
H A Ddpdk-hugepages.py53 def set_hugepages(path, pages): argument
58 nr_hugepages.write('{}\n'.format(pages))
75 if pages > 0:
87 pages = get_hugepages(path + '/' + hdir)
88 if pages > 0:
123 def set_numa_pages(pages, hugepgsz, node=None): argument
132 set_hugepages(huge_path, pages)
135 def set_non_numa_pages(pages, hugepgsz): argument
138 set_hugepages(path, pages)
141 def reserve_pages(pages, hugepgsz, node=None): argument
[all …]
/f-stack/app/nginx-1.16.1/src/core/
H A Dngx_slab.c73 ngx_uint_t pages);
75 ngx_uint_t pages);
137 ngx_memzero(pool->pages, pages * sizeof(ngx_slab_page_t)); in ngx_slab_init()
139 page = pool->pages; in ngx_slab_init()
146 page->slab = pages; in ngx_slab_init()
155 pages -= m; in ngx_slab_init()
159 pool->last = pool->pages + pages; in ngx_slab_init()
689 page[pages].slab = page->slab - pages; in ngx_slab_alloc_pages()
713 for (p = page + 1; pages; pages--) { in ngx_slab_alloc_pages()
743 if (pages) { in ngx_slab_free_pages()
[all …]
/f-stack/freebsd/vm/
H A Dvm_glue.c327 for (i = 0; i < pages; i++) in vm_thread_stack_create()
329 pmap_qenter(ks, ma, pages); in vm_thread_stack_create()
343 pmap_qremove(ks, pages); in vm_thread_stack_dispose()
367 if (pages <= 1) in vm_thread_new()
368 pages = kstack_pages; in vm_thread_new()
370 pages = KSTACK_MAX_PAGES; in vm_thread_new()
383 pages); in vm_thread_new()
387 td->td_kstack_pages = pages; in vm_thread_new()
398 int pages; in vm_thread_dispose() local
400 pages = td->td_kstack_pages; in vm_thread_dispose()
[all …]
H A Dvm_reserv.c469 rv->pages->psind = 0; in vm_reserv_depopulate()
582 KASSERT(rv->pages->psind == 0, in vm_reserv_populate()
605 rv->pages->psind = 1; in vm_reserv_populate()
682 m = &rv->pages[index]; in vm_reserv_alloc_contig()
796 KASSERT(rv->pages == m, in vm_reserv_alloc_contig()
806 m_ret = &rv->pages[index]; in vm_reserv_alloc_contig()
854 m = &rv->pages[index]; in vm_reserv_alloc_page()
932 KASSERT(rv->pages == m, in vm_reserv_alloc_page()
939 return (&rv->pages[index]); in vm_reserv_alloc_page()
960 rv->pages->psind = 0; in vm_reserv_break()
[all …]
H A Dvm_swapout.c533 int i, pages; in vm_thread_swapout() local
537 pages = td->td_kstack_pages; in vm_thread_swapout()
539 pmap_qremove(kaddr, pages); in vm_thread_swapout()
541 for (i = 0; i < pages; i++) { in vm_thread_swapout()
560 int a, count, i, j, pages, rv; in vm_thread_swapin() local
563 pages = td->td_kstack_pages; in vm_thread_swapin()
564 vm_thread_stack_back(td->td_domain.dr_policy, kaddr, ma, pages, in vm_thread_swapin()
566 for (i = 0; i < pages;) { in vm_thread_swapin()
573 for (j = i + 1; j < pages; j++) in vm_thread_swapin()
587 pmap_qenter(kaddr, ma, pages); in vm_thread_swapin()
/f-stack/freebsd/kern/
H A Dkern_physio.c50 struct vm_page **pages; in physio() local
104 pages = NULL; in physio()
108 pages = malloc(sizeof(*pages) * maxpages, M_DEVBUF, M_WAITOK); in physio()
114 pages = pbuf->b_pages; in physio()
156 if (pages) { in physio()
160 prot, pages, maxpages)) < 0) { in physio()
167 pages, npages); in physio()
170 bp->bio_ma = pages; in physio()
185 if (pages) { in physio()
208 else if (pages) in physio()
[all …]
H A Dkern_kthread.c85 struct proc **newpp, int flags, int pages, const char *fmt, ...) in kproc_create() argument
98 fr.fr_pages = pages; in kproc_create()
265 struct thread **newtdp, int flags, int pages, const char *fmt, ...) in kthread_add() argument
278 newtd = thread_alloc(pages); in kthread_add()
464 int flags, int pages, const char *procname, const char *fmt, ...) in kproc_kthread_add() argument
473 procptr, flags, pages, "%s", procname); in kproc_kthread_add()
491 tdptr, flags, pages, "%s", buf); in kproc_kthread_add()
/f-stack/app/redis-5.0.5/deps/jemalloc/test/unit/
H A Dpages.c6 void *pages, *hugepage; in TEST_BEGIN() local
10 pages = pages_map(NULL, alloc_size, PAGE, &commit); in TEST_BEGIN()
11 assert_ptr_not_null(pages, "Unexpected pages_map() error"); in TEST_BEGIN()
14 hugepage = (void *)(ALIGNMENT_CEILING((uintptr_t)pages, HUGEPAGE)); in TEST_BEGIN()
21 pages_unmap(pages, alloc_size); in TEST_BEGIN()
/f-stack/tools/libxo/
H A DMakefile.am36 GH_PAGES_DIR = gh-pages/
37 GH_PAGES_DIR_VER = gh-pages/${PACKAGE_VERSION}
65 && git push origin gh-pages ) ; true
77 && git push origin gh-pages ) ; true
85 get-gh-pages:
87 gh-pages -b gh-pages
117 && git push origin gh-pages ) ; true
/f-stack/freebsd/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_2835_arm.c401 vm_page_t* pages; in create_pagelist() local
424 (num_pages * sizeof(pages[0])); in create_pagelist()
462 pages = (vm_page_t*)(addrs + num_pages); in create_pagelist()
469 vm_page_unhold_pages(pages, actual_pages); in create_pagelist()
486 addr = (void *)PHYS_TO_VCBUS(VM_PAGE_TO_PHYS(pages[i])); in create_pagelist()
546 vm_page_t*pages; in free_pagelist() local
559 pages = (vm_page_t*)(pagelist->addrs + num_pages); in free_pagelist()
575 copyout_page(pages[0], in free_pagelist()
584 copyout_page(pages[num_pages-1], in free_pagelist()
599 vm_page_dirty(pages[i]); in free_pagelist()
[all …]
/f-stack/freebsd/sys/
H A Dkthread.h55 int flags, int pages, const char *, ...) __printflike(6, 7);
67 int flags, int pages,
72 int flags, int pages, const char *, ...) __printflike(7, 8);
/f-stack/freebsd/arm64/arm64/
H A Dbusdma_bounce.c315 int pages; in bounce_bus_dma_tag_create() local
320 if (alloc_bounce_pages(newtag, pages) < pages) in bounce_bus_dma_tag_create()
409 int error, maxpages, pages; in bounce_bus_dmamap_create() local
458 pages = MIN(maxpages - bz->total_bpages, pages); in bounce_bus_dmamap_create()
459 pages = MAX(pages, 2); in bounce_bus_dmamap_create()
460 if (alloc_bounce_pages(dmat, pages) < pages) in bounce_bus_dmamap_create()
974 sl->pages = NULL; in bounce_bus_dmamap_load_buffer()
1067 m = sl->pages; in dma_dcache_sync()
1353 int pages; in reserve_bounce_pages() local
1360 bz->free_bpages -= pages; in reserve_bounce_pages()
[all …]
/f-stack/dpdk/drivers/common/dpaax/
H A Ddpaax_iova_table.c231 entry[i].pages = entry[i-1].pages + in dpaax_iova_table_populate()
234 entry[i].pages = (uint64_t *)((unsigned char *)entry + in dpaax_iova_table_populate()
239 i, entry[i].start, entry[i].len, entry[i].pages); in dpaax_iova_table_populate()
309 entry[i].pages[e_offset] = align_vaddr; in dpaax_iova_table_update()
375 i, entry[i].start, entry[i].len, entry[i].pages); in dpaax_iova_table_dump()
378 if (entry[i].pages[j] == 0) in dpaax_iova_table_dump()
382 entry[i].pages[j]); in dpaax_iova_table_dump()
H A Ddpaax_iova_table.h30 uint64_t *pages; /**< VA for each physical page in this block */ member
104 vaddr = (void *)((uintptr_t)entry[i].pages[index] + offset); in dpaax_iova_table_get_va()
/f-stack/dpdk/doc/guides/tools/
H A Dhugepages.rst47 Set NUMA node to reserve pages on
56 Reserve huge pages.
66 status of huge pages, modifying the setup requires root privileges.
76 To a complete setup of with 2 Gigabyte of 1G huge pages::
/f-stack/freebsd/arm/arm/
H A Dbusdma_machdep.c555 int pages; in bus_dma_tag_create() local
560 if (alloc_bounce_pages(newtag, pages) < pages) in bus_dma_tag_create()
670 int pages; in allocate_bz_and_pages() local
673 pages = MIN(maxpages - bz->total_bpages, pages); in allocate_bz_and_pages()
674 pages = MAX(pages, 2); in allocate_bz_and_pages()
675 if (alloc_bounce_pages(dmat, pages) < pages) in allocate_bz_and_pages()
1213 sl->pages = NULL; in _bus_dmamap_load_buffer()
1318 m = sl->pages; in dma_dcache_sync()
1639 int pages; in reserve_bounce_pages() local
1646 bz->free_bpages -= pages; in reserve_bounce_pages()
[all …]
/f-stack/freebsd/contrib/openzfs/include/os/linux/spl/sys/
H A Dparam.h30 #define ptob(pages) ((pages) << PAGE_SHIFT) argument
/f-stack/freebsd/opencrypto/
H A Dcriov.c80 pages++; \
158 cvm_page_apply(vm_page_t *pages, int off, int len, in cvm_page_apply() argument
167 char *kaddr = (char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(*pages)); in cvm_page_apply()
175 pages++; in cvm_page_apply()
186 pages += (skip / PAGE_SIZE); in cvm_page_contiguous_segment()
188 return (((char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(*pages))) + skip); in cvm_page_contiguous_segment()
205 bcopy(cp, (char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(*pages)) + off, in cvm_page_copyback()
211 pages++; in cvm_page_copyback()
222 cvm_page_copydata(vm_page_t *pages, int off, int len, caddr_t cp) in cvm_page_copydata() argument
230 bcopy(((char *)PHYS_TO_DMAP(VM_PAGE_TO_PHYS(*pages)) + off), cp, in cvm_page_copydata()
[all …]
/f-stack/freebsd/contrib/openzfs/config/
H A Dkernel-totalhigh_pages.m48 unsigned long pages __attribute__ ((unused));
9 pages = totalhigh_pages();
H A Dkernel-totalram-pages-func.m49 unsigned long pages __attribute__ ((unused));
10 pages = totalram_pages();
/f-stack/dpdk/lib/librte_eal/common/
H A Deal_common_dynmem.c280 struct rte_memseg **pages; in eal_dynmem_hugepage_init() local
306 pages = malloc(sizeof(*pages) * needed); in eal_dynmem_hugepage_init()
309 cur_pages = eal_memalloc_alloc_seg_bulk(pages, in eal_dynmem_hugepage_init()
313 free(pages); in eal_dynmem_hugepage_init()
319 struct rte_memseg *ms = pages[i]; in eal_dynmem_hugepage_init()
323 free(pages); in eal_dynmem_hugepage_init()
/f-stack/freebsd/mips/mips/
H A Dbusdma_machdep.c458 int pages; in bus_dma_tag_create() local
463 if (alloc_bounce_pages(newtag, pages) < pages) in bus_dma_tag_create()
600 int pages; in bus_dmamap_create() local
603 pages = MIN(maxpages - bz->total_bpages, pages); in bus_dmamap_create()
604 pages = MAX(pages, 1); in bus_dmamap_create()
605 if (alloc_bounce_pages(dmat, pages) < pages) in bus_dmamap_create()
1429 int pages; in reserve_bounce_pages() local
1436 bz->free_bpages -= pages; in reserve_bounce_pages()
1437 bz->reserved_bpages += pages; in reserve_bounce_pages()
1438 map->pagesreserved += pages; in reserve_bounce_pages()
[all …]
/f-stack/freebsd/x86/x86/
H A Dbusdma_bounce.c166 int pages; in bounce_bus_dma_zone_setup() local
171 if (alloc_bounce_pages(dmat, pages) < pages) in bounce_bus_dma_zone_setup()
299 int error, maxpages, pages; in bounce_bus_dmamap_create() local
350 pages = MIN(maxpages - bz->total_bpages, pages); in bounce_bus_dmamap_create()
351 pages = MAX(pages, 1); in bounce_bus_dmamap_create()
352 if (alloc_bounce_pages(dmat, pages) < pages) in bounce_bus_dmamap_create()
1212 int pages; in reserve_bounce_pages() local
1219 bz->free_bpages -= pages; in reserve_bounce_pages()
1220 bz->reserved_bpages += pages; in reserve_bounce_pages()
1221 map->pagesreserved += pages; in reserve_bounce_pages()
[all …]
/f-stack/dpdk/doc/guides/faq/
H A Dfaq.rst12 If I want to change the number of hugepages allocated, how do I remove the original pages allocated?
15 The number of pages allocated can be seen by executing the following command::
19 Once all the pages are mmapped by an application, they stay that way.
20 If you start a test application with less than the maximum, then you have free pages.
21 When you stop and restart the test application, it looks to see if the pages are available in the `…
22 If you look in the directory, you will see ``n`` number of 2M pages files. If you specified 1024, y…
25 If you need to change the number of pages, it is easier to first remove the pages.
31 I have set up a total of 1024 Hugepages (that is, allocated 512 2M pages to each NUMA node).
33 …parameter does not guarantee that huge pages will be reserved on specific sockets. Therefore, allo…
127 This is especially true when using a large number (>512) of 2 MB huge pages. Please increase the op…
/f-stack/dpdk/doc/guides/nics/
H A Dbuild_and_test.rst34 #. Mount huge pages:
41 #. Request huge pages:
44 hugepage size configured in the system and calculate the number of pages
47 To reserve 1024 pages of 2MB:

12345