Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 18:48:06 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r221396 - projects/largeSMP/sys/sys
Message-ID:  <201105031848.p43Im6At006596@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Tue May  3 18:48:06 2011
New Revision: 221396
URL: http://svn.freebsd.org/changeset/base/221396

Log:
  Add a comment explaining the discrepancy in size between kernel and
  userland of cpuset_t.
  
  Discussed with:	jhb

Modified:
  projects/largeSMP/sys/sys/cpuset.h

Modified: projects/largeSMP/sys/sys/cpuset.h
==============================================================================
--- projects/largeSMP/sys/sys/cpuset.h	Tue May  3 18:36:36 2011	(r221395)
+++ projects/largeSMP/sys/sys/cpuset.h	Tue May  3 18:48:06 2011	(r221396)
@@ -36,6 +36,10 @@
 #define	CPU_SETSIZE	MAXCPU
 #endif
 
+/*
+ * In userland a bigger cpuset structure is preferable in order to cope
+ * with kernel bumping of MAXCPU and still have a compatible layout.
+ */
 #define	CPU_MAXSIZE	(4 * MAXCPU)
 
 #ifndef	CPU_SETSIZE



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