This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] [PATCH] sched_getaffinity() fails with -EINVAL


Hi
This is the patch I am proposing to fix the issue, I had mentioned earlier in this mailing list.
Is it possible to accommodate the patch in glibc ?
This increased the CPU SETSIZE to reflect kernel capabilities. Other wise cpuset data structures will support only 1096 CPUS while kernel can do 4096.


	Let me know your thoughts
Thanks
Sharyathi


Index: glibc/bits/sched.h
===================================================================
--- glibc.orig/bits/sched.h	2009-10-29 11:09:30.000000000 +0530
+++ glibc/bits/sched.h	2009-10-29 12:14:20.000000000 +0530
@@ -38,7 +38,7 @@
 #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	4096
 # define __NCPUBITS	(8 * sizeof (__cpu_mask))
 
 /* Type for array elements in 'cpu_set'.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]