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

/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Di386_vm_init.c90 uint64_t sane_size = 0; /* Memory size to use for defaults calculations */ variable
237 sane_size += (uint64_t)(mptr->NumberOfPages << I386_PGSHIFT);
246 * sane_size should reflect the total amount of physical ram
250 sane_size += (uint64_t)(mptr->NumberOfPages << I386_PGSHIFT);
383 mem_actual = sane_size;
393 sane_size = (sane_size + 128 * MEG - 1) & ~((uint64_t)(128 * MEG - 1));
402 if (maxmem == 0 && sane_size > K32_MAXMEM) {
405 sane_size, (uint32_t) (K32_MAXMEM/GIG));
411 if ( (maxmem > (uint64_t)first_avail) && (maxmem < sane_size)) {
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/
H A Dunix_startup.c102 max_nbuf_headers = atop(sane_size / 50); /* Get 2% of ram, but no more than we can map */
110 nbuf_hashelements = atop(sane_size / 50);
182 desiredvnodes = (sane_size/65536) + 1024;
234 if (sane_size > (64 * 1024 * 1024) || ncl) {
236 if ((nmbclusters = ((sane_size / 16)/MCLBYTES)) > 32768)
/macosx-10.5.8/xnu-1228.15.4/osfmk/vm/
H A Dvm_init.c140 zsize = sane_size >> 2; /* Get target zone size as 1/4 of physical memory */
/macosx-10.5.8/xnu-1228.15.4/osfmk/mach/
H A Dvm_param.h220 extern uint64_t sane_size; /* Memory size to use for defaults calculations */
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A Dppc_vm_init.c86 uint64_t sane_size; /* Memory size to use for defaults calculations */ variable
198 sane_size = max_mem; /* Calculate a sane value to use for init */
199 if(sane_size > (addr64_t)(VM_MAX_KERNEL_ADDRESS + 1))
200 sane_size = (addr64_t)(VM_MAX_KERNEL_ADDRESS + 1); /* If flush with ram, use addressible portion */
H A Dmappings.c797 mapCtl.mapcmin = (sane_size / PAGE_SIZE) / 16;
1445 retr = kmem_suballoc(kernel_map, &mapping_min, sane_size / 16,
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dkalloc.c190 kalloc_map_size = sane_size >> 5;
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dkdebug.c1011 unsigned int max_entries = (sane_size/4) / sizeof(kd_buf);
/macosx-10.5.8/xnu-1228.15.4/bsd/vfs/
H A Dvfs_bio.c3706 blsize_t MAXNBUF; /* initialize to (sane_size / PAGE_SIZE) */
3823 MAXNBUF = (sane_size / PAGE_SIZE);
3827 nbuftarget = (sane_size >> 5) / PAGE_SIZE;
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/dtrace/
H A Dfasttrap.c2371 fasttrap_max = (sane_size >> 28) * 100000;
H A Ddtrace.c9973 if (size > (sane_size / 8) / (int)NCPU) /* As in kdbg_set_nkdbufs(), roughly. */
/macosx-10.5.8/xnu-1228.15.4/bsd/nfs/
H A Dnfs_bio.c155 /* size nfsbufmax to cover at most half sane_size (w/default buf size) */
156 nfsbufmax = (sane_size >> PAGE_SHIFT) / (2 * (NFS_RWSIZE >> PAGE_SHIFT));

Completed in 114 milliseconds