Home
last modified time | relevance | path

Searched refs:pgcnt_t (Results 1 – 25 of 178) sorted by relevance

12345678

/titanic_50/usr/src/uts/common/sys/
H A Dmem_cage.h51 extern pgcnt_t kcage_freemem;
52 extern pgcnt_t kcage_needfree;
53 extern pgcnt_t kcage_lotsfree;
54 extern pgcnt_t kcage_desfree;
55 extern pgcnt_t kcage_minfree;
56 extern pgcnt_t kcage_throttlefree;
58 extern void kcage_freemem_add(pgcnt_t);
59 extern void kcage_freemem_sub(pgcnt_t);
60 extern int kcage_create_throttle(pgcnt_t, int);
66 extern void kcage_range_init(struct memlist *, kcage_dir_t, pgcnt_t);
[all …]
H A Dmem_config.h45 extern int kphysm_add_memory_dynamic(pfn_t base, pgcnt_t npgs);
56 pgcnt_t phys_pages; /* total physical pages */
57 pgcnt_t managed; /* providing this many managed pages */
58 pgcnt_t nonrelocatable; /* of which this many non-relocatable */
64 pgcnt_t phys_pages; /* total physical pages */
65 pgcnt_t managed; /* providing this many managed pages */
66 pgcnt_t collected; /* done when == managed */
71 extern int kphysm_del_span(memhandle_t, pfn_t base, pgcnt_t npgs);
73 extern int kphysm_del_span_query(pfn_t base, pgcnt_t npgs, memquery_t *);
113 void (*post_add)(void *arg, pgcnt_t delta_pages);
[all …]
H A Dvmsystm.h52 extern pgcnt_t freemem; /* remaining blocks of free memory */
53 extern pgcnt_t avefree; /* 5 sec moving average of free memory */
54 extern pgcnt_t avefree30; /* 30 sec moving average of free memory */
55 extern pgcnt_t deficit; /* estimate of needs of new swapped in procs */
56 extern pgcnt_t nscan; /* number of scans in last second */
57 extern pgcnt_t desscan; /* desired pages scanned per second */
58 extern pgcnt_t slowscan;
59 extern pgcnt_t fastscan;
60 extern pgcnt_t pushes; /* number of pages pushed to swap device */
63 extern pgcnt_t maxpgio; /* max paging i/o per sec before start swaps */
[all …]
H A Dcpr.h296 pgcnt_t csd_dirty_npages;
314 pgcnt_t cpd_pages; /* number of contiguous pages */
478 pgcnt_t cs_nosw_pages; /* # of pages of no backing store */
579 pgcnt_t pages;
632 extern pgcnt_t cpr_count_kpages(int, bitfunc_t);
633 extern pgcnt_t cpr_count_pages(caddr_t, size_t, int, bitfunc_t, int);
634 extern pgcnt_t cpr_count_volatile_pages(int, bitfunc_t);
635 extern pgcnt_t i_cpr_count_sensitive_kpages(int, bitfunc_t);
636 extern pgcnt_t i_cpr_count_special_kpages(int, bitfunc_t);
637 extern pgcnt_t i_cpr_count_storage_pages(int, bitfunc_t);
[all …]
H A Dsystm.h73 extern pgcnt_t maxmem; /* max available memory (pages) */
74 extern pgcnt_t physmem; /* physical memory (pages) on this CPU */
76 extern pgcnt_t physinstalled; /* physical pages including PROM/boot use */
83 extern pgcnt_t availrmem; /* Available resident (not swapable) */
85 extern pgcnt_t availrmem_initial; /* initial value of availrmem */
86 extern pgcnt_t segspt_minfree; /* low water mark for availrmem in seg_spt */
87 extern pgcnt_t freemem; /* Current free memory. */
/titanic_50/usr/src/uts/common/vm/
H A Danon.h161 extern pgcnt_t pages_locked;
162 extern pgcnt_t pages_claimed;
163 extern pgcnt_t pages_useclaim;
164 extern pgcnt_t obp_pages;
182 pgcnt_t ani_max;
183 pgcnt_t ani_free;
184 pgcnt_t ani_resv;
202 pgcnt_t ani_count;
203 uchar_t pad[64 - sizeof (pgcnt_t)];
215 pgcnt_t *ani_countp; \
[all …]
H A Dpage.h672 extern pgcnt_t total_pages; /* total pages in the system */
677 extern pgcnt_t pages_pp_maximum; /* tuning: lock + claim <= max */
714 int page_create_wait(pgcnt_t npages, uint_t flags);
765 int page_resv(pgcnt_t, uint_t);
766 void page_unresv(pgcnt_t);
795 pgcnt_t page_busy(int);
817 int page_reclaim_mem(pgcnt_t, pgcnt_t, int);
849 void page_migrate(struct seg *, caddr_t, page_t **, pgcnt_t);
865 pgcnt_t hp_pgcnt; /* base pagesize cnt */
879 pgcnt_t page_get_pagecnt(uint_t);
[all …]
/titanic_50/usr/src/uts/common/fs/swapfs/
H A Dswap_subr.c59 pgcnt_t swapfs_desfree = 0;
60 pgcnt_t swapfs_minfree = 0;
61 pgcnt_t swapfs_reserve = 0;
76 static pgcnt_t initial_swapfs_desfree;
77 static pgcnt_t initial_swapfs_minfree;
78 static pgcnt_t initial_swapfs_reserve;
91 swapfs_recalc(pgcnt_t pgs) in swapfs_recalc()
93 pgcnt_t new_swapfs_desfree; in swapfs_recalc()
94 pgcnt_t new_swapfs_minfree; in swapfs_recalc()
95 pgcnt_t new_swapfs_reserve; in swapfs_recalc()
[all …]
/titanic_50/usr/src/uts/common/os/
H A Dmem_config_stubs.c38 pgcnt_t kcage_freemem;
39 pgcnt_t kcage_throttlefree;
40 pgcnt_t kcage_minfree;
41 pgcnt_t kcage_desfree;
42 pgcnt_t kcage_needfree;
43 pgcnt_t kcage_lotsfree = 1;
62 kcage_create_throttle(pgcnt_t npages, int flags) in kcage_create_throttle()
H A Dvm_pageout.c78 pgcnt_t slowscan = 0;
79 pgcnt_t fastscan = 0;
81 static pgcnt_t handspreadpages = 0;
83 static pgcnt_t looppages;
86 static pgcnt_t maxfastscan = 0;
87 static pgcnt_t maxslowscan = 100;
89 pgcnt_t maxpgio = 0;
90 pgcnt_t minfree = 0;
91 pgcnt_t desfree = 0;
92 pgcnt_t lotsfree = 0;
[all …]
H A Dmem_cage.c69 pgcnt_t kt_kcage_freemem_start;
70 pgcnt_t kt_kcage_freemem_end;
71 pgcnt_t kt_freemem_start;
72 pgcnt_t kt_freemem_end;
237 static int kcage_invalidate_page(page_t *, pgcnt_t *);
239 static int kcage_range_add_internal(pfn_t base, pgcnt_t npgs, kcage_dir_t);
240 static void kcage_init(pgcnt_t preferred_size);
241 static int kcage_range_delete_internal(pfn_t base, pgcnt_t npgs);
247 pgcnt_t kcage_freemem;
248 pgcnt_t kcage_needfree;
[all …]
H A Dmem_config.c64 static void kphysm_setup_post_add(pgcnt_t);
65 static int kphysm_setup_pre_del(pgcnt_t);
66 static void kphysm_setup_post_del(pgcnt_t, int);
68 static int kphysm_split_memseg(pfn_t base, pgcnt_t npgs);
70 static int delspan_reserve(pfn_t, pgcnt_t);
71 static void delspan_unreserve(pfn_t, pgcnt_t);
80 static void kphysm_addmem_error_undospan(pfn_t, pgcnt_t);
81 static struct memseg *memseg_reuse(pgcnt_t);
96 extern int memseg_alloc_meta(pfn_t, pgcnt_t, void **, pgcnt_t *);
97 extern void memseg_free_meta(void *, pgcnt_t);
[all …]
/titanic_50/usr/src/uts/i86pc/os/
H A Dpmem.c99 static pgcnt_t pmem_pgcnt; /* the number of small pages in a large page */
108 static pgcnt_t pmem_nmpages = 0;
119 static pgcnt_t mpool_break(page_t **, pgcnt_t);
120 static void mpool_append(page_t **, pgcnt_t);
121 static void lpp_break(page_t **, pgcnt_t, pgcnt_t, pmem_lpg_t *);
122 static void lpp_free(page_t *, pgcnt_t, pmem_lpg_t **);
123 static int lpp_create(page_t **, pgcnt_t, pgcnt_t *, pmem_lpg_t **,
125 static void tlist_in(page_t *, pgcnt_t, vnode_t *, u_offset_t *);
126 static void tlist_out(page_t *, pgcnt_t);
127 static int pmem_cookie_alloc(struct devmap_pmem_cookie **, pgcnt_t, uint_t);
[all …]
/titanic_50/usr/src/uts/i86xpv/sys/
H A Dballoon_impl.h48 void balloon_init(pgcnt_t);
63 pgcnt_t bln_current_pages; /* current reservation */
64 pgcnt_t bln_new_target; /* target value for reservation */
65 pgcnt_t bln_max_pages; /* first pfn for which we don't have a page_t */
66 pgcnt_t bln_low; /* lowest value of reservation since boot */
67 pgcnt_t bln_high; /* highest value of reservation since boot */
/titanic_50/usr/src/uts/sun4v/os/
H A Dmemseg.c37 extern pgcnt_t pp_dummy_npages;
45 extern pgcnt_t ppvm_size;
49 extern struct memseg *memseg_reuse(pgcnt_t);
50 extern void remap_to_dummy(caddr_t, pgcnt_t);
75 memseg_alloc_meta(pfn_t base, pgcnt_t npgs, void **ptp, pgcnt_t *metap) in memseg_alloc_meta()
78 pgcnt_t metapgs; in memseg_alloc_meta()
168 memseg_free_meta(void *ptp, pgcnt_t metapgs) in memseg_free_meta()
198 memseg_get_metapfn(void *ptp, pgcnt_t metapg) in memseg_get_metapfn()
229 pgcnt_t metapgs; in memseg_remap_meta()
/titanic_50/usr/src/uts/sun4/os/
H A Dlgrpplat.c75 static pgcnt_t lgrp_plat_mem_size_default(lgrp_handle_t, lgrp_mem_query_t);
197 pgcnt_t
201 pgcnt_t npgs = (pgcnt_t)0; in lgrp_plat_mem_size()
270 static pgcnt_t
276 pgcnt_t npgs = 0; in lgrp_plat_mem_size_default()
280 return ((pgcnt_t)freemem); in lgrp_plat_mem_size_default()
294 return ((pgcnt_t)0); in lgrp_plat_mem_size_default()
/titanic_50/usr/src/uts/sun4/sys/
H A Dmemlist_plat.h54 pgcnt_t *npages, int *memblocks);
55 extern pgcnt_t size_virtalloc(prom_memlist_t *avail, size_t size);
57 pgcnt_t *);
58 extern void installed_top_size(struct memlist *, pfn_t *, pgcnt_t *);
H A Dmemnode.h88 extern void plat_mem_node_intersect_range(pfn_t, pgcnt_t, int, pgcnt_t *);
114 extern pgcnt_t mem_node_memlist_pages(int, struct memlist *);
/titanic_50/usr/src/uts/common/cpr/
H A Dcpr_dump.c66 static int cpr_compress_and_write(vnode_t *, uint_t, pfn_t, pgcnt_t);
201 pgcnt_t bitmap_pages; in cpr_write_header()
202 pgcnt_t kpages, vpages, upages; in cpr_write_header()
203 pgcnt_t cpr_count_kpages(int mapflag, bitfunc_t bitfunc); in cpr_write_header()
335 pgcnt_t spages; in cpr_write_statefile()
551 pgcnt_t
594 static pgcnt_t
628 pgcnt_t (*st_fcn)(int, bitfunc_t, struct seg *); /* function to call */
669 pgcnt_t
673 pgcnt_t pages; in cpr_count_seg_pages()
[all …]
/titanic_50/usr/src/uts/sun4u/os/
H A Dcpr_impl.c68 extern pgcnt_t cpr_scan_kvseg(int mapflag, bitfunc_t bitfunc, struct seg *seg);
69 extern pgcnt_t cpr_count_seg_pages(int mapflag, bitfunc_t bitfunc);
73 static int i_cpr_storage_desc_alloc(csd_t **, pgcnt_t *, csd_t **, int);
74 static void i_cpr_storage_desc_init(csd_t *, pgcnt_t, csd_t *);
75 static caddr_t i_cpr_storage_data_alloc(pgcnt_t, pgcnt_t *, int);
102 pgcnt_t i_cpr_sensitive_pgs_dumped;
103 pgcnt_t i_cpr_storage_data_sz; /* in pages */
104 pgcnt_t i_cpr_storage_desc_pgcnt; /* in pages */
138 static pgcnt_t ppage_count;
736 pgcnt_t
[all …]
H A Dmemscrub.c148 int memscrub_add_span(pfn_t pfn, pgcnt_t pages);
149 int memscrub_delete_span(pfn_t pfn, pgcnt_t pages);
223 static int memscrub_add_span_gen(pfn_t, pgcnt_t, struct memlist **, uint_t *);
224 static int memscrub_verify_span(ms_paddr_t *addrp, pgcnt_t *pagesp);
327 (pgcnt_t)(src->ml_size >> PAGESHIFT))) { in memscrub_init()
373 (pgcnt_t)(memscrub_memlist->ml_size >> PAGESHIFT)); in memscrub_cleanup()
465 pgcnt_t pages; in memscrubber()
662 memscrub_verify_span(ms_paddr_t *addrp, pgcnt_t *pagesp) in memscrub_verify_span()
727 memscrub_add_span(pfn_t pfn, pgcnt_t pages) in memscrub_add_span()
761 pgcnt_t pages, in memscrub_add_span_gen()
[all …]
/titanic_50/usr/src/uts/common/sys/fs/
H A Dswapnode.h43 extern pgcnt_t swapfs_minfree; /* amount of availrmem (in pages) */
45 extern pgcnt_t swapfs_desfree;
47 extern pgcnt_t swapfs_reserve; /* amount of availrmem (in pages) */
/titanic_50/usr/src/uts/sun4u/sys/
H A Dmachsystm.h275 extern int ndata_alloc_tsbs(struct memlist *, pgcnt_t);
277 extern int ndata_alloc_kpm(struct memlist *, pgcnt_t);
280 extern size_t calc_pp_sz(pgcnt_t);
281 extern size_t calc_kpmpp_sz(pgcnt_t);
282 extern size_t calc_hmehash_sz(pgcnt_t);
283 extern size_t calc_pagehash_sz(pgcnt_t);
/titanic_50/usr/src/uts/sun4v/sys/
H A Dmachsystm.h276 extern int ndata_alloc_tsbs(struct memlist *, pgcnt_t);
278 extern int ndata_alloc_kpm(struct memlist *, pgcnt_t);
281 extern size_t calc_pp_sz(pgcnt_t);
282 extern size_t calc_kpmpp_sz(pgcnt_t);
283 extern size_t calc_hmehash_sz(pgcnt_t);
284 extern size_t calc_pagehash_sz(pgcnt_t);
/titanic_50/usr/src/uts/sun4/vm/
H A Dvm_dep.h339 pgcnt_t plc_mt_pgmax; /* max page cnt */
340 pgcnt_t plc_mt_clpgcnt; /* cache list cnt */
341 pgcnt_t plc_mt_flpgcnt; /* free list cnt - small pages */
342 pgcnt_t plc_mt_lgpgcnt; /* free list cnt - large pages */
345 pgcnt_t plc_mts_pgcnt; /* per page size count */
347 pgcnt_t *plc_mtsc_pgcnt; /* per color bin count */
359 colors * sizeof (pgcnt_t)); \
372 plc_mtsc_pgcnt = (pgcnt_t *)base; \
373 base += (colors * sizeof (pgcnt_t)); \
442 pgcnt_t _acnt = ABS(_cnt); \
[all …]

12345678