What are the ramifications of increasing NGROUPS?

Eduardo Krell ekrell at hector.UUCP
Sat Sep 3 09:55:34 AEST 1988


In article <21258 at tut.cis.ohio-state.edu> karl at triceratops.cis.ohio-state.edu (Karl Kleinpaste) writes:

>I am inclined to send NGROUPS up quite a ways, possibly to 100 or
>higher.
>Can I get away with recompiling just the kernel and
>/bin/login?

I don't think so since the groups are kept in the user structure.
You would have to recompile anything that depends on the size of the user
structure.

>I have never examined the implementation of BSD's multiple groups
>concept closely; this is my first serious approach to this area.

You should consider the fact that it's just an array that gets searched
lineary. Linear search is OK with 8 or 20 groups, but 100?
    
Eduardo Krell                   AT&T Bell Laboratories, Murray Hill, NJ

UUCP: {att,decvax,ucbvax}!ulysses!ekrell  Internet: ekrell at ulysses.att.com



More information about the Comp.unix.wizards mailing list