Home
last modified time | relevance | path

Searched refs:sane_size (Results 1 – 17 of 17) sorted by relevance

/xnu-8020.101.4/osfmk/i386/
H A Di386_vm_init.c97 uint64_t sane_size = 0; /* Memory size for defaults calculations */ variable
514 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 …]
H A Dpmap_common.c335 …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()
/xnu-8020.101.4/bsd/dev/
H A Dunix_startup.c114 …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()
/xnu-8020.101.4/osfmk/arm/
H A Darm_vm_init.c96 uint64_t sane_size; /* Memory size to use for defaults variable
568 sane_size = mem_size - (avail_start - gPhysBase); in arm_vm_init()
/xnu-8020.101.4/osfmk/mach/
H A Dvm_param.h264 extern uint64_t sane_size; /* Memory size to use for defaults calculations */
/xnu-8020.101.4/osfmk/x86_64/
H A Dpmap.c466 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()
/xnu-8020.101.4/osfmk/kern/
H A Dstartup.c996 scale = (int)((uint64_t)sane_size / (uint64_t)(8 * 1024 * 1024 * 1024ULL)); in scale_setup()
H A Dzalloc.c5294 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()
H A Dkalloc.c540 kalloc_map_size = round_page((vm_size_t)((sane_size >> 2) / 10)); in kalloc_init_maps()
/xnu-8020.101.4/osfmk/arm64/
H A Darm_vm_init.c193 uint64_t sane_size; /* Memory size to use for defaults variable
2151 sane_size = mem_size - (avail_start - gPhysBase); in arm_vm_init()
/xnu-8020.101.4/osfmk/vm/
H A Dvm_kern.c303 map_size > MAX(1ULL << 31, sane_size / 64)) { in kernel_memory_allocate()
H A Dvm_fault.c286 …vm_hard_throttle_threshold = sane_size * (35 - MIN((int)(sane_size / (1024 * 1024 * 1024)), 25)) /… in vm_fault_init()
/xnu-8020.101.4/bsd/netinet/
H A Dtcp_cache.c1594 uint64_t sane_size_meg = sane_size / 1024 / 1024; in tcp_cache_init()
/xnu-8020.101.4/bsd/dev/dtrace/
H A Dfasttrap.c2610 fasttrap_max = (sane_size >> 28) * 100000; in fasttrap_attach()
/xnu-8020.101.4/bsd/kern/
H A Dkdebug.c2573 uint64_t max_nkdbufs_trace = (sane_size / 2) / sizeof(kd_buf); in kdbg_set_nkdbufs_trace()
H A Dkern_memorystatus.c4782 if (sane_size > 1 * 1024 * 1024 * 1024) { in memorystatus_allowed_vm_map_fork()
/xnu-8020.101.4/bsd/nfs/
H A Dnfs_bio.c222 nfsbufmax = (int)(sane_size >> PAGE_SHIFT) / (2 * (NFS_RWSIZE >> PAGE_SHIFT)); in nfs_nbinit()