Slow NIS performance with programs such as 'finger'

Bug #1036622 reported by Evren Yurtesen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nis (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I am having slow NIS performance compared to Fedora with nearly identical configurations. I couldnt quite find out exactly what might be the problem and I also tried asking it as a question in "answers" section. All I got was a reply that I should open a bug report.

https://answers.launchpad.net/ubuntu/+question/205634

The yp.conf is identical between Fedora and Ubuntu boxes in question. I am guessing Fedora caches the NIS information somehow. But I am not sure exactly why this does not happen in Ubuntu?

Do you have any suggestions???

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: nis 3.17-32ubuntu4.1
ProcVersionSignature: Ubuntu 3.2.0-29.46-generic 3.2.24
Uname: Linux 3.2.0-29-generic x86_64
NonfreeKernelModules: fglrx
ApportVersion: 2.0.1-0ubuntu12
Architecture: amd64
Date: Tue Aug 14 14:42:24 2012
ExecutablePath: /usr/sbin/ypbind
InstallationMedia: This
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
SourcePackage: nis
UpgradeStatus: No upgrade log present (probably fresh install)
modified.conffile..etc.yp.conf: [modified]
mtime.conffile..etc.yp.conf: 2012-08-06T15:55:37.478872

Revision history for this message
Evren Yurtesen (eyurtese-g) wrote :
Revision history for this message
Robie Basak (racb) wrote :

I'm not sure how much help you're going to get on this issue since only a small proportion of users use NIS.

Five seconds sounds like some kind of timeout to me. Can you use tcpdump to see if there's anything obvious that pops out?

Changed in nis (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Evren Yurtesen (eyurtese-g) wrote :

Well, it is not like I use NIS at home all by myself :p if Ubuntu wont support it, just remove it from distribution then. So it would make the decision of which distro to use in large organisations easier.

I checked the packets using tcpdump limited to the NIS server.

Ubuntu had 24k lines in the output file
Fedora had 2.4k lines in the output file

Fedora was accessing port 767 and accessed an additional UDP port 770 and sometimes 938 on the server... while Ubuntu was just accessing 767 only so many more times...

I tried disabling iptables on ubuntu altogether and still the results are same. It is just that I am getting the correct info as well and finger seems to be working. I am not sure what might be timing out.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in nis (Ubuntu):
status: New → Confirmed
Revision history for this message
Lenin (gagarin) wrote :

hm, between 3-5 seconds here as well. on 12.04 as well as 13.04.

Revision history for this message
Lenin (gagarin) wrote :

Are you using finger with the -m option and the username? That's way much faster since it doesn't strcmp all of the entries. Try ltrace finger -m userid compared to ltrace finger searchstring

Revision history for this message
Evren Yurtesen (eyurtese-g) wrote :

Yes, -m seems to be working much faster...strange...

Revision history for this message
Lenin (gagarin) wrote :

not really strange, from the manpage of finger:

     -m Prevent matching of user names. User is usually a login name; however, matching will also be done on the
           users' real names, unless the -m option is supplied. All name matching performed by finger is case in‐
           sensitive.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.