Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Multi-Minute Startup?

On Sat, Aug 9, 2008 at 12:03 AM, Benjamin R. Haskell <zsh@xxxxxxxxxx> wrote:
> On Fri, 8 Aug 2008, Aaron Davies wrote:
>> On Fri, Aug 8, 2008 at 10:58 AM, Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
>> wrote:
>>> In the last episode (Aug 08), Aaron Davies said:
>>>> FWIW, "getent group" returns 773 lines and takes about 3.5 minutes to
>>>> run.
>>> If it takes that long to return only 773 lines, you should probably
>>> turn on nscd, or if it's already on, crank up the cache size and TTL.
>> hmm, i don't see any sign that ncsd's even installed, let alone running.
> Maybe just a typo in your email, but it's:
> nscd == Name Service Caching Daemon
> not ncsd (== National Cyber Security Division [part of Homeland Security!])


ok, it is running, and it looks like it should be doing something.

> egrep passwd\|group /etc/nscd.conf
# Currently supported cache names (services): passwd, group, hosts
        enable-cache            passwd          yes
        positive-time-to-live   passwd          600
        negative-time-to-live   passwd          20
        suggested-size          passwd          211
        check-files             passwd          yes
        persistent              passwd          yes
        shared                  passwd          yes
        enable-cache            group           yes
        positive-time-to-live   group           3600
        negative-time-to-live   group           60
        suggested-size          group           211
        check-files             group           yes
        persistent              group           yes
        shared                  group           yes

how would you suggest i modify these?

there are about 700 users and 800 groups in the getent results.
Aaron Davies

Messages sorted by: Reverse Date, Date, Thread, Author