/illumos-gate/usr/src/uts/intel/physmem/ |
H A D | Makefile | 22 # uts/intel/physmem/Makefile 29 # This makefile drives the production of the physmem driver 42 MODULE = physmem
|
/illumos-gate/usr/src/uts/sparc/physmem/ |
H A D | Makefile | 22 # uts/sparc/physmem/Makefile 41 MODULE = physmem
|
/illumos-gate/usr/src/uts/common/fs/swapfs/ |
H A D | swap_subr.c | 129 * set swapfs_reserve to a minimum of 4Mb or 1/128 of physmem whichever 179 if (!swapfs_recalc(physmem)) 180 cmn_err(CE_PANIC, "swapfs_minfree(%lu) > physmem(%lu)", 181 swapfs_minfree, physmem); 357 (void) swapfs_recalc(physmem - swapfs_pending_delete); 369 if (!swapfs_recalc(physmem - nv)) { 391 (void) swapfs_recalc(physmem - nv);
|
/illumos-gate/usr/src/uts/common/conf/ |
H A D | param.c | 298 * bufhwm_pct -- ditto, but given in % of physmem. 568 original_physmem = physmem; 581 if (physmem > original_physmem) { 582 physmem = original_physmem; 583 cmn_err(CE_NOTE, "physmem limited to %ld", physmem); 587 pgcnt_t physmegs = physmem >> (20 - PAGESHIFT); 703 if (physmem != original_physmem) { 704 cmn_err(CE_NOTE, "physmem cannot be modified to 0x%lx" 706 physmem); [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | dump.c | 105 size = ptob((uint64_t)physmem) / DUMP_COMPRESS_RATIO; 130 if (dumpsize_in_pages > (uint64_t)physmem) 131 dumpsize_in_pages = (uint64_t)physmem;
|
H A D | physmem.c | 45 #include <sys/physmem.h> 122 * physmem segments active. 279 * since it's a physmem vnode, it must be in the hash. 322 char *name = "physmem"; 324 cmn_err(CE_PANIC, "physmem vnodeops already set\n"); 500 * physmem should be responsible for checking for cage 637 * If the page has been hashed into the physmem vnode, then just look it up 667 * We can not allow a process mapping /dev/physmem pages to fork as there can 668 * only be a single mapping to a /dev/physmem page at a given time. Thus, the 957 "physmem drive [all...] |
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | startup.c | 120 pgcnt_t physmem = 0; /* memory size in pages, patch if you want less */ variable 433 * | segmap segment | SEGMAPSIZE (1/8th physmem, 1314 * If physmem is patched to be non-zero, use it instead of 1315 * the monitor value unless physmem is larger than the total 1318 if (physmem == 0 || physmem > npages) 1319 physmem = npages; 1328 * a significant portion of memory), physmem is adjusted. 1336 physmem -= ramdisk_npages; 1549 maxmem = physmem; [all...] |
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | startup.c | 208 * than PHYSMEM is required in 32 bit mode, physmem can be set to the desired 232 pgcnt_t physmem = PHYSMEM; variable 1156 * If physmem is patched to be non-zero, use it instead of the computed 1159 if (physmem == 0 || physmem > npages) { 1160 physmem = npages; 1161 } else if (physmem < npages) { 1163 npages = physmem; 1165 PRM_DEBUG(physmem); 1236 pse_shift = size_pse_array(physmem, max_ncpu [all...] |
H A D | memscrub.c | 174 if (physmem < memscrub_min_pages)
|
H A D | fakebop.c | 200 * space we can treat physmem as a pfn (not just a pgcnt) and 203 if (physmem != 0 && high_phys > pfn_to_pa(physmem)) 204 high_phys = pfn_to_pa(physmem); 208 * On 32 bit avoid physmem above 4Gig if PAE isn't enabled 234 * physmem might be further limited by bootenv.rc 685 if (do_bsys_getproplen(NULL, "physmem") != -1 && 686 do_bsys_getprop(NULL, "physmem", line) >= 0 && 688 if (0 < lvalue && (lvalue < physmem || physmem [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/ |
H A D | cmd_memerr_arch.c | 551 uint64_t bmem, physmem = 0; local 580 physmem = 0; 583 physmem += bmem; 585 npage = (ulong_t)(physmem / cmd.cmd_pagesize);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | memory.c | 504 pgcnt_t total_pages, physmem; local 542 if (mdb_readvar(&physmem, "physmem") == -1) { 543 mdb_warn("unable to read physmem"); 562 * If physmem != total_pages, then the administrator has limited the 582 ((physmem) * 10))) 628 if (physmem > stats.ms_total) 629 freemem = physmem - stats.ms_total; 657 physmem, 658 (uint64_t)physmem * PAGESIZ [all...] |
/illumos-gate/usr/src/uts/sun4/vm/ |
H A D | vm_dep.c | 631 if (maptype != MAPPGSZ_ISM && physmem < privm_lpg_min_physmem) { 669 if (physmem < min_physmem || max_lpsize <= MMU_PAGESIZE) { 1060 * Minimum physmem required for enabling large pages for kernel heap 1072 size_t memtotal = physmem * PAGESIZE;
|
/illumos-gate/usr/src/lib/libzpool/common/ |
H A D | kernel.c | 49 uint64_t physmem; variable 934 physmem = sysconf(_SC_PHYS_PAGES); 936 dprintf("physmem = %llu pages (%.2f GB)\n", physmem, 937 (double)physmem * sysconf(_SC_PAGE_SIZE) / (1ULL << 30));
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | systm.h | 73 extern pgcnt_t physmem; /* physical memory (pages) on this CPU */
|
/illumos-gate/usr/src/man/man7d/ |
H A D | Makefile | 100 physmem.7d \
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | kstat_fr.c | 181 kstat_named_t physmem; member in struct:__anon370 202 { "physmem", KSTAT_DATA_ULONG }, 883 system_pages_kstat.physmem.value.ul = (ulong_t)physmem;
|
H A D | pid.c | 678 * if you have more than 4G of memory, like ptob(physmem)/1M 681 upc_hashsize = (1 << highbit(physmem >> (20 - PAGESHIFT)));
|
H A D | bio.c | 161 extern int bufhwm_pct; /* ditto - given in % of physmem */ 1137 bio_max_hwm = MIN(physmem / BIO_MAX_PERCENT, 1154 bio_default_hwm = MIN(physmem / pct,
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_seg.c | 1403 physmegs = physmem >> (20 - PAGESHIFT); 1409 if (segpcache_hashsize_win == 0 || segpcache_hashsize_win > physmem) { 1415 segpcache_hashsize_win = MAX(1024, physmem / pages_per_bucket); 1448 segpcache_hashsize_wired > physmem / 4) { 1450 * Choose segpcache_hashsize_wired based on physmem.
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_isoch_chan.c | 441 if (btopr(totalsz) > physmem / AV1394_MEM_MAX_PERCENT) {
|
/illumos-gate/usr/src/uts/common/tnf/ |
H A D | tnf.c | 611 /* bug fix #4057599 if (bufsz > (physmem << PAGESHIFT) / 2) */ 612 if (btop(bufsz) > (physmem / 2))
|
/illumos-gate/usr/src/lib/libzpool/common/sys/ |
H A D | zfs_context.h | 534 extern uint64_t physmem;
|
/illumos-gate/usr/src/cmd/zonestat/zonestatd/ |
H A D | zonestatd.c | 3227 uint64_t physmem; local 3341 knp = kstat_data_lookup(kstat, "physmem"); 3343 zsd_warn(gettext("Unable to read physmem")); 3346 physmem = knp->value.ui64; 3348 physmem = knp->value.ui32; 3364 physmem *= ctl->zsctl_pagesize; 3542 if ((phys_total - physmem) > 0) 3543 sys->zss_locked_kern += phys_total - physmem;
|
/illumos-gate/usr/src/cmd/prstat/ |
H A D | prstat.c | 239 size_t physmem = sysconf(_SC_PHYS_PAGES) * pagesize; local 338 (float)physmem;
|