svn commit: r184570 - head/sys/kern
Ivan Voras
ivoras at FreeBSD.org
Sun Nov 2 15:11:21 PST 2008
Author: ivoras
Date: Sun Nov 2 23:11:20 2008
New Revision: 184570
URL: http://svn.freebsd.org/changeset/base/184570
Log:
Increase the initial sbuf size for CPU topology dump to something more
usable for newer CPUs. The new value allows 2 x quad core configuration
dumps to fit within the initial buffer without reallocations.
Approved by: gnn (mentor) (older version)
Pointed out by: rdivacky
Modified:
head/sys/kern/sched_ule.c
Modified: head/sys/kern/sched_ule.c
==============================================================================
--- head/sys/kern/sched_ule.c Sun Nov 2 22:43:37 2008 (r184569)
+++ head/sys/kern/sched_ule.c Sun Nov 2 23:11:20 2008 (r184570)
@@ -2665,7 +2665,7 @@ sysctl_kern_sched_topology_spec(SYSCTL_H
KASSERT(cpu_top != NULL, ("cpu_top isn't initialized"));
- topo = sbuf_new(NULL, NULL, 100, SBUF_AUTOEXTEND);
+ topo = sbuf_new(NULL, NULL, 500, SBUF_AUTOEXTEND);
if (topo == NULL)
return (ENOMEM);
More information about the svn-src-all
mailing list