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
This commit is contained in:
ivoras 2008-11-02 23:11:20 +00:00
parent 8287eede82
commit d819bb20f8

View File

@ -2665,7 +2665,7 @@ sysctl_kern_sched_topology_spec(SYSCTL_HANDLER_ARGS)
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);