That would eliminate the need for a sysctl.
At my company we've set NGROUPS_MAX to 256 and adadpted the NFS
client code to handle >16 groups. I guess that adding 256*sizeof(gid_t)
to the struct task_struct (i.e. 0.5/1.0 Kb increase for every process) is
not a big memory issue when looking at the average size of a
process. However, this becomes interesting if you want to use
a really *large* number of groups, say 100K or more. Now memory
will be an issue and looking up a group id in the group list becomes
an additional performance problem (see in_group_p() in kernel/sys.c:
might want to use a hash table or a binary tree there).
So, for (let's say) <1000 groups a #define will do but otherwise a
whole new implementation will be necessary.
-- Frank van Maarseveen Driebergen f.vanmaarseveen@inter.nl.net The Netherlands -------------------------------------------------------------- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/