Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Nov 2008 23:11:20 +0000 (UTC)
From:      Ivan Voras <ivoras@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r184570 - head/sys/kern
Message-ID:  <200811022311.mA2NBKj2050514@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811022311.mA2NBKj2050514>