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:
parent
8287eede82
commit
d819bb20f8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user