Mostly-cosmetic fixes in low-memory warning messages:
o Fix linewrap issues. o Fix two typos (s/Recomended/Recommended/ and s/tunning/tuning/) o Remove a couple of extra instances of the word "of". o Update names of kmem_size variables. Approved by: pjd
This commit is contained in:
parent
9fa198bead
commit
9100d31299
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=168987
@ -2802,13 +2802,14 @@ arc_init(void)
|
||||
#ifdef _KERNEL
|
||||
/* Warn about ZFS memory requirements. */
|
||||
if (((uint64_t)physmem * PAGESIZE) < (256 + 128 + 64) * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recomended minimum of RAM size is 512MB, "
|
||||
"expect unstable behaviour.\n");
|
||||
printf("ZFS WARNING: Recommended minimum RAM size is 512MB; "
|
||||
"expect unstable behavior.\n");
|
||||
} else if (kmem_size() < 256 * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recomended minimum of kmem_map size is "
|
||||
"256MB, expect unstable behaviour.\n");
|
||||
printf(" Consider tunning vm.kmem_size and "
|
||||
"vm.kmem_size_max in /boot/loader.conf.\n");
|
||||
printf("ZFS WARNING: Recommended minimum kmem_size is 256MB; "
|
||||
"expect unstable behavior.\n");
|
||||
printf(" Consider tuning vm.kmem_size or "
|
||||
"vm.kmem_size_min\n");
|
||||
printf(" in /boot/loader.conf.\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -2802,13 +2802,14 @@ arc_init(void)
|
||||
#ifdef _KERNEL
|
||||
/* Warn about ZFS memory requirements. */
|
||||
if (((uint64_t)physmem * PAGESIZE) < (256 + 128 + 64) * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recomended minimum of RAM size is 512MB, "
|
||||
"expect unstable behaviour.\n");
|
||||
printf("ZFS WARNING: Recommended minimum RAM size is 512MB; "
|
||||
"expect unstable behavior.\n");
|
||||
} else if (kmem_size() < 256 * (1 << 20)) {
|
||||
printf("ZFS WARNING: Recomended minimum of kmem_map size is "
|
||||
"256MB, expect unstable behaviour.\n");
|
||||
printf(" Consider tunning vm.kmem_size and "
|
||||
"vm.kmem_size_max in /boot/loader.conf.\n");
|
||||
printf("ZFS WARNING: Recommended minimum kmem_size is 256MB; "
|
||||
"expect unstable behavior.\n");
|
||||
printf(" Consider tuning vm.kmem_size or "
|
||||
"vm.kmem_size_min\n");
|
||||
printf(" in /boot/loader.conf.\n");
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user