12.04 Slow NIS performance with Ubuntu

Asked by Evren Yurtesen

I have setup NIS client on Ubuntu, however programs such as 'finger' function very slowly. With same settings, this works much faster on Fedora. the difference is about 0.5seconds vs 5 seconds. IP is used in yp.conf for the server settings (the yp.conf is same in the Fedora and Ubuntu box). I tried installing nscd but it didnt help and also it was not existent on Fedora anyway.

Any ideas on what might be the problem?

# cat nsswitch.conf
# /etc/nsswitch.conf
#
# Example configuration of GNU Name Service Switch functionality.
# If you have the `glibc-doc-reference' and `info' packages installed, try:
# `info libc "Name Service Switch"' for information about this file.

passwd: files compat
group: files compat
shadow: files

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
networks: files

protocols: db files
services: db files
ethers: db files
rpc: db files

netgroup: files nis
#

# cat yp.conf
#
# yp.conf Configuration file for the ypbind process. You can define
# NIS servers manually here if they can't be found by
# broadcasting on the local net (which is the default).
#
# See the manual page of ypbind for the syntax of this file.
#
# IMPORTANT: For the "ypserver", use IP addresses, or make sure that
# the host is in /etc/hosts. This file is only interpreted
# once, and if DNS isn't reachable yet the ypserver cannot
# be resolved and ypbind won't ever bind to the server.

# ypserver ypserver.network.com

domain XXX.YY server X.Y.Z.Q
ypserver X.Y.Z.Q
ypserver X.Y.Z.Q1

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

I suggest you report a bug, the fact that it works ok in Fedora is quite interesting as they are both the same OS, Linux.

Revision history for this message
Evren Yurtesen (eyurtese-g) said :
#2

I thought it would make sense to ask in "answers" first to see if this is a known issue of some sort. I think I will give it a few days and make a bug report.

It is quite strange really. I have setup NIS client several times in Fedora and used same settings directly from config files I used in Fedora. Yet things like 'finger' works slow in all of the ubuntu installations.

Revision history for this message
Evren Yurtesen (eyurtese-g) said :
#3

The only difference I can see is that ubuntu runs ypbind with -no-dbus option... I wonder if that can be the problem...

Revision history for this message
Evren Yurtesen (eyurtese-g) said :
#4

OK. I have tried to run ypbind with -no-dbus on Fedora and it still executes 'finger' fast...

Can you help with this problem?

Provide an answer of your own, or ask Evren Yurtesen for more information if necessary.

To post a message you must log in.