Searched refs:sane_size (Results 1 – 15 of 15) 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()
117 …max_nbuf_headers = (int)atop_kernel(sane_size / 50); /* Get 2% of ram, but no more than we can map… in bsd_get_bufferhdr_map_size()156 nbuf_hashelements = (int)atop_kernel(sane_size / 50); in bsd_startupearly()212 desiredvnodes = (int)(sane_size / 65536) + 1024; in bsd_startupearly()302 if (sane_size > (64 * 1024 * 1024) || ncl != 0) { in bsd_mbuf_cluster_reserve()
462 if (sane_size <= 8 * GB) { in pmap_scale_shift()463 scale = (uint32_t)(sane_size / (2 * GB)); in pmap_scale_shift()464 } else if (sane_size <= 32 * GB) { in pmap_scale_shift()465 scale = 4 + (uint32_t)((sane_size - (8 * GB)) / (4 * GB)); in pmap_scale_shift()467 scale = 10 + (uint32_t)MIN(4, ((sane_size - (32 * GB)) / (8 * GB))); in pmap_scale_shift()
265 extern uint64_t sane_size; /* Memory size to use for defaults calculations */
994 scale = (int)((uint64_t)sane_size / (uint64_t)(8 * 1024 * 1024 * 1024ULL)); in scale_setup()
5544 pgz_slots = (uint32_t)(sane_size >> 22); in pgz_get_size()9938 } else if ((sane_size >> 30) >= 4) { in zone_bootstrap()10322 zsize = (vm_size_t)(sane_size >> 2); in zone_set_map_sizes()10329 if (zsize > sane_size >> 1) { in zone_set_map_sizes()10330 zsize = (vm_size_t)(sane_size >> 1); /* Clamp to half of RAM max */ in zone_set_map_sizes()
445 uint64_t sane_size; /* Memory size to use for defaults variable1744 sane_size = mem_size - (avail_start - gPhysBase); in arm_vm_init()
192 uint64_t sane_size; /* Memory size to use for defaults variable2210 sane_size = mem_size - (avail_start - gPhysBase); in arm_vm_init()
802 size > MAX(1ULL << 31, sane_size / 64))) {3641 if (sprayqtn_range_size > (sane_size / 2)) { in kmem_add_extra_claims()3642 sprayqtn_range_size = sane_size / 2; in kmem_add_extra_claims()
277 …vm_hard_throttle_threshold = sane_size * (35 - MIN((int)(sane_size / (1024 * 1024 * 1024)), 25)) /… in vm_fault_init()
1590 uint64_t sane_size_meg = sane_size / 1024 / 1024; in tcp_cache_init()
2614 fasttrap_max = (sane_size >> 28) * 100000; in fasttrap_attach()
2146 MIN(kmem_range_id_size(KMEM_RANGE_ID_DATA), sane_size) / 2 / in kdbg_set_nkdbufs_trace()
4779 if (sane_size > 1 * 1024 * 1024 * 1024) { in memorystatus_allowed_vm_map_fork()