Re: Perfomance tuning for NIS client

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 10/12/07, joseph blase <joseph.mailboxlist@xxxxxxxxx> wrote:
>
> On 10/13/07, Steve Rigler <srigler@xxxxxxxxxxxxxxx> wrote:
> > On Sat, 2007-10-13 at 03:45 +0800, joseph blase wrote:
> > > Hi,
> > >
> > > I have both linux and solaris NIS client against a Solaris NIS Server,
> > > but my linux box are shamefully slow compare to solaris some sample:
> > >
> > > on Solaris 5.8:
> > >
> > > # ypwhich
> > > transporter02.domain.com
> > > # time id userid
> > > uid=36923(userid) gid=36923(u_036923)
> > >
> > > real        0.0
> > > user        0.0
> > > sys         0.0
> > >
> > > on Linux:
> > >
> > > [root@linux]# ypwhich
> > > transporter02.domain.com
> > > [root@amsdc2-n-s04taw root]# time id userid
> > > uid=36923(userid) gid=36923(u_036923) groups=36923(u_036923)
> > >
> > > real    0m10.509s
> > > user    0m0.030s
> > > sys     0m0.090s
> >
> > Do you have nscd running on the Linux box?  Enabling it will allow
> > caching of lookups to passwd, group and hosts.
>
> Yes there is and running.
>
> > -Steve
>
> Joseph

In my case nscd does make a difference as pointed out earlier.  On my
CentOS machine,

Without nscd:

real    0m0.116s
user    0m0.008s
sys     0m0.014s

With nscd:

real    0m0.007s
user    0m0.002s
sys     0m0.004s

My Solaris box is running nscd:

0.03u 0.01s 0:00.05

Akemi
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux