Searched refs:sane_size (Results 1 - 16 of 16) sorted by relevance

/darwin-on-arm/xnu/osfmk/vm/
H A Dvm_init.c153 zsize = sane_size >> 2; /* Get target zone size as 1/4 of physical memory */
161 if (zsize > sane_size >> 1)
162 zsize = sane_size >> 1; /* Clamp to half of RAM max */
H A Dvm_fault.c210 vm_hard_throttle_threshold = sane_size * (35 - MIN((int)(sane_size / (1024*1024*1024)), 25)) / 100;
/darwin-on-arm/xnu/osfmk/i386/
H A Di386_vm_init.c97 uint64_t sane_size = 0; /* Memory size for defaults calculations */ variable
367 sane_size += region_bytes;
371 * sane_size should reflect the total amount of physical
388 sane_size += region_bytes;
392 sane_size += region_bytes;
396 sane_size += region_bytes;
400 sane_size += region_bytes;
582 mem_actual = sane_size;
589 sane_size = (sane_size
[all...]
H A Dpmap_common.c229 pv_hashed_low_water_mark = MAX(PV_HASHED_LOW_WATER_MARK_DEFAULT, ((uint32_t)(sane_size >> 30)) * 2000);
232 pv_hashed_kern_low_water_mark = MAX(PV_HASHED_KERN_LOW_WATER_MARK_DEFAULT, ((uint32_t)(sane_size >> 30)) * 1000);
/darwin-on-arm/xnu/bsd/dev/
H A Dunix_startup.c110 max_nbuf_headers = atop_kernel(sane_size / 50); /* Get 2% of ram, but no more than we can map */
118 nbuf_hashelements = atop_kernel(sane_size / 50);
190 desiredvnodes = (sane_size/65536) + 1024;
271 if (sane_size > (64 * 1024 * 1024) || ncl != 0) {
278 nmbclusters = mbuf_default_ncl(serverperfmode, sane_size);
/darwin-on-arm/xnu/osfmk/arm64/
H A Darm64_vm_init.c59 * sane_size, max_mem and mem_size are controlled by arm_vm_init
61 * At the moment, sane_size is forced to the size of memory
64 uint64_t sane_size = 0; variable
/darwin-on-arm/xnu/osfmk/kern/
H A Dstartup.c550 if ((serverperfmode != 0) && ((uint64_t)sane_size >= (uint64_t)(16 * 1024 * 1024 *1024ULL))) {
551 scale = (int)((uint64_t)sane_size / (uint64_t)(8 * 1024 * 1024 *1024ULL));
556 } else if ((uint64_t)sane_size >= (uint64_t)(3 * 1024 * 1024 *1024ULL))
H A Dkalloc.c349 kalloc_map_size = (vm_size_t)(sane_size >> 5);
/darwin-on-arm/xnu/osfmk/mach/
H A Dvm_param.h237 extern uint64_t sane_size; /* Memory size to use for defaults calculations */
/darwin-on-arm/xnu/osfmk/arm/
H A Darm_vm_init.c70 * sane_size, max_mem and mem_size are controlled by arm_vm_init
72 * At the moment, sane_size is forced to the size of memory
75 uint64_t sane_size = 0; variable
327 max_mem = mem_size = sane_size = gMemSize;
/darwin-on-arm/xnu/bsd/dev/dtrace/
H A Dfasttrap.c2451 fasttrap_max = (sane_size >> 28) * 100000;
H A Ddtrace.c11392 if (size > (sane_size / 8) / (int)NCPU) /* As in kdbg_set_nkdbufs(), roughly. */
/darwin-on-arm/xnu/bsd/kern/
H A Dkdebug.c1728 unsigned int max_entries = (sane_size/2) / sizeof(kd_buf);
H A Dkern_proc.c3029 memory_threshold = (sane_size * STARTING_PERCENTAGE) / 100; /* resident threshold in bytes */
/darwin-on-arm/xnu/bsd/vfs/
H A Dvfs_bio.c4504 blsize_t MAXNBUF; /* initialize to (sane_size / PAGE_SIZE) */
4622 MAXNBUF = (sane_size / PAGE_SIZE);
4626 nbuftarget = (sane_size >> 5) / PAGE_SIZE;
/darwin-on-arm/xnu/bsd/nfs/
H A Dnfs_bio.c156 /* size nfsbufmax to cover at most half sane_size (w/default buf size) */
157 nfsbufmax = (sane_size >> PAGE_SHIFT) / (2 * (NFS_RWSIZE >> PAGE_SHIFT));

Completed in 201 milliseconds