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
5cc8e97f59
commit
2e4e429921
@ -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…
x
Reference in New Issue
Block a user