Searched refs:sane_size (Results 1 – 17 of 17) sorted by relevance
97 uint64_t sane_size = 0; /* Memory size for defaults calculations */ variable514 sane_size += region_bytes; in i386_vm_init()530 sane_size += region_bytes; in i386_vm_init()534 sane_size += region_bytes; in i386_vm_init()538 sane_size += region_bytes; in i386_vm_init()542 sane_size += region_bytes; in i386_vm_init()715 sane_size = (sane_size + 128 * MB - 1) & ~((uint64_t)(128 * MB - 1)); in i386_vm_init()716 if (sane_size != mem_actual) { in i386_vm_init()718 mem_actual, sane_size); in i386_vm_init()720 sane_size = mem_actual; in i386_vm_init()[all …]
335 …pv_hashed_low_water_mark = MAX(PV_HASHED_LOW_WATER_MARK_DEFAULT, ((uint32_t)(sane_size >> 30)) * 2… in mapping_free_prime()338 …pv_hashed_kern_low_water_mark = MAX(PV_HASHED_KERN_LOW_WATER_MARK_DEFAULT, ((uint32_t)(sane_size >… in mapping_free_prime()
114 …max_nbuf_headers = (int)atop_kernel(sane_size / 50); /* Get 2% of ram, but no more than we can map… in bsd_startupearly()125 nbuf_hashelements = (int)atop_kernel(sane_size / 50); in bsd_startupearly()208 desiredvnodes = (int)(sane_size / 65536) + 1024; in bsd_startupearly()297 if (sane_size > (64 * 1024 * 1024) || ncl != 0) { in bsd_mbuf_cluster_reserve()
96 uint64_t sane_size; /* Memory size to use for defaults variable568 sane_size = mem_size - (avail_start - gPhysBase); in arm_vm_init()
264 extern uint64_t sane_size; /* Memory size to use for defaults calculations */
466 if (sane_size <= 8 * GB) { in pmap_scale_shift()467 scale = (uint32_t)(sane_size / (2 * GB)); in pmap_scale_shift()468 } else if (sane_size <= 32 * GB) { in pmap_scale_shift()469 scale = 4 + (uint32_t)((sane_size - (8 * GB)) / (4 * GB)); in pmap_scale_shift()471 scale = 10 + (uint32_t)MIN(4, ((sane_size - (32 * GB)) / (8 * GB))); in pmap_scale_shift()
996 scale = (int)((uint64_t)sane_size / (uint64_t)(8 * 1024 * 1024 * 1024ULL)); in scale_setup()
5294 pgz_slots = (uint32_t)(sane_size >> 22); in pgz_get_size()9344 zsize = (vm_size_t)(sane_size >> 2); in zone_phys_size_max()9353 if (zsize > sane_size >> 1) { in zone_phys_size_max()9354 zsize = (vm_size_t)(sane_size >> 1); /* Clamp to half of RAM max */ in zone_phys_size_max()
540 kalloc_map_size = round_page((vm_size_t)((sane_size >> 2) / 10)); in kalloc_init_maps()
193 uint64_t sane_size; /* Memory size to use for defaults variable2151 sane_size = mem_size - (avail_start - gPhysBase); in arm_vm_init()
303 map_size > MAX(1ULL << 31, sane_size / 64)) { in kernel_memory_allocate()
286 …vm_hard_throttle_threshold = sane_size * (35 - MIN((int)(sane_size / (1024 * 1024 * 1024)), 25)) /… in vm_fault_init()
1594 uint64_t sane_size_meg = sane_size / 1024 / 1024; in tcp_cache_init()
2610 fasttrap_max = (sane_size >> 28) * 100000; in fasttrap_attach()
2573 uint64_t max_nkdbufs_trace = (sane_size / 2) / sizeof(kd_buf); in kdbg_set_nkdbufs_trace()
4782 if (sane_size > 1 * 1024 * 1024 * 1024) { in memorystatus_allowed_vm_map_fork()
222 nfsbufmax = (int)(sane_size >> PAGE_SHIFT) / (2 * (NFS_RWSIZE >> PAGE_SHIFT)); in nfs_nbinit()