Date: Mon, 6 Apr 2015 18:45:42 +0000 (UTC) From: Dmitry Chagin <dchagin@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r281162 - head/sys/vm Message-ID: <201504061845.t36Ijggp094300@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dchagin Date: Mon Apr 6 18:45:41 2015 New Revision: 281162 URL: https://svnweb.freebsd.org/changeset/base/281162 Log: Properly calculate "UMA Zones" per cpu cache size. Avoid allocating an extra struct uma_cache since the struct uma_zone already has one. PR: 199169 Submitted by: luke.tw gmail com MFC after: 1 week Modified: head/sys/vm/uma_core.c Modified: head/sys/vm/uma_core.c ============================================================================== --- head/sys/vm/uma_core.c Mon Apr 6 18:40:50 2015 (r281161) +++ head/sys/vm/uma_core.c Mon Apr 6 18:45:41 2015 (r281162) @@ -1822,7 +1822,7 @@ uma_startup(void *bootmem, int boot_page #endif args.name = "UMA Zones"; args.size = sizeof(struct uma_zone) + - (sizeof(struct uma_cache) * (mp_maxid + 1)); + (sizeof(struct uma_cache) * (mp_maxid)); args.ctor = zone_ctor; args.dtor = zone_dtor; args.uminit = zero_init;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504061845.t36Ijggp094300>