Warn if kmem_map size is set to less than 512MB. Previous warning was a bit
pointless, because default is set to something around 300MB and also insufficient. MFC after: 3 days
This commit is contained in:
parent
6429fb5015
commit
4d4daf5901
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=173419
@ -2804,12 +2804,12 @@ arc_init(void)
|
||||
if (((uint64_t)physmem * PAGESIZE) < (256 + 128 + 64) * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recommended minimum RAM size is 512MB; "
|
||||
"expect unstable behavior.\n");
|
||||
} else if (kmem_size() < 256 * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recommended minimum kmem_size is 256MB; "
|
||||
} else if (kmem_size() < 512 * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recommended minimum kmem_size is 512MB; "
|
||||
"expect unstable behavior.\n");
|
||||
printf(" Consider tuning vm.kmem_size or "
|
||||
"vm.kmem_size_min\n");
|
||||
printf(" in /boot/loader.conf.\n");
|
||||
printf(" Consider tuning vm.kmem_size and "
|
||||
"vm.kmem_size_max\n");
|
||||
printf(" in /boot/loader.conf.\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -2804,12 +2804,12 @@ arc_init(void)
|
||||
if (((uint64_t)physmem * PAGESIZE) < (256 + 128 + 64) * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recommended minimum RAM size is 512MB; "
|
||||
"expect unstable behavior.\n");
|
||||
} else if (kmem_size() < 256 * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recommended minimum kmem_size is 256MB; "
|
||||
} else if (kmem_size() < 512 * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recommended minimum kmem_size is 512MB; "
|
||||
"expect unstable behavior.\n");
|
||||
printf(" Consider tuning vm.kmem_size or "
|
||||
"vm.kmem_size_min\n");
|
||||
printf(" in /boot/loader.conf.\n");
|
||||
printf(" Consider tuning vm.kmem_size and "
|
||||
"vm.kmem_size_max\n");
|
||||
printf(" in /boot/loader.conf.\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user