https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227116

--- Comment #12 from Gleb Smirnoff <gleb...@freebsd.org> ---
Thanks Kostik. I was just preparing a patch to print out all variables.

So, the fix should be:

Index: uma_core.c
===================================================================
--- uma_core.c  (revision 331844)
+++ uma_core.c  (working copy)
@@ -1820,7 +1820,7 @@ uma_startup_count(int vm_zones)
 #endif

        /* Memory for the rest of startup zones, UMA and VM, ... */
-       if (zsize > UMA_SLAB_SIZE)
+       if (roundup2(zsize, UMA_BOOT_ALIGN) > UMA_SLAB_SIZE)
                pages += (zones + vm_zones) *
                    howmany(roundup2(zsize, UMA_BOOT_ALIGN), UMA_SLAB_SIZE);
        else

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to