From patchwork Fri Aug 5 12:38:02 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Changsheng.Liu" X-Patchwork-Id: 14329 Received: (qmail 114235 invoked by alias); 5 Aug 2016 12:38:40 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 114212 invoked by uid 89); 5 Aug 2016 12:38:38 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.8 required=5.0 tests=BAYES_50, SPF_PASS autolearn=ham version=3.3.2 spammy=H*Ad:D*inspur.com, HTo:U*drepper, H*RU:ASMTP, Hx-spam-relays-external:ASMTP X-HELO: ssh247.corpemail.net From: Changsheng.Liu To: , , , CC: , Subject: [PATCH] The size of CPU sets, __CPU_SETSIZE is too small Date: Fri, 5 Aug 2016 08:38:02 -0400 Message-ID: <1470400682-12912-1-git-send-email-liuchangsheng@inspur.com> MIME-Version: 1.0 X-CTCH: RefID="str=0001.0A150201.57A488B2.004E,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0"; Spam="Unknown"; VOD="Unknown" From: Changsheng Liu Now the size of struct cpu_set_t is 1024 bits, But there are many thousands of cores in the server and the cpumask in the Linux Kernel has been expanded to 5120 bits (CONFIG_NR_CPUS=5120). So in this patch the size of CPU sets is expanded to 5120 for the server that has many thousands of cores Signed-off-by: Changsheng Liu --- bits/sched.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/sched.h b/bits/sched.h index ca10569..a9ba623 100644 --- a/bits/sched.h +++ b/bits/sched.h @@ -52,7 +52,7 @@ struct __sched_param #if defined _SCHED_H && !defined __cpu_set_t_defined # define __cpu_set_t_defined /* Size definition for CPU sets. */ -# define __CPU_SETSIZE 1024 +# define __CPU_SETSIZE 5120 # define __NCPUBITS (8 * sizeof (__cpu_mask)) /* Type for array elements in 'cpu_set_t'. */