This doesn't quite work with the SPL yet

This commit is contained in:
Brian Behlendorf 2008-12-23 16:32:42 -08:00
parent cb740a3631
commit ae960c7bbc
1 changed files with 3 additions and 1 deletions

View File

@ -3359,8 +3359,10 @@ arc_init(void)
* than the addressable space (intel in 32-bit mode), we may
* need to limit the cache to 1/8 of VM size.
*/
#ifndef HAVE_SPL
arc_c = MIN(arc_c, vmem_size(heap_arena, VMEM_ALLOC | VMEM_FREE) / 8);
#endif
#endif /* HAVE_SPL */
#endif /* _KERNEL */
/* set min cache to 1/32 of all memory, or 64MB, whichever is more */
arc_c_min = MAX(arc_c / 4, 64<<20);