User lookups very slow

Hi,

I have a FreeBSD 8.0-RELEASE-p2 machine running within a virtualised XenServer environment (using hardware virtualisation and local disk storage on the VM-host).

This machine is running a NIS-slave for user-sharing across several machines. In this particular case user lookups (like `id steije`) take forever.

If I run a `truss id steije` it keeps on reading the /etc/nsswitch.conf file over and over again (which I think is the problem here):

Code:
stat("/etc/nsswitch.conf",{ mode=-rw-r--r-- ,inode=44432,size=115,blksize=4096 }) = 0 (0x0)
stat("/etc/nsswitch.conf",{ mode=-rw-r--r-- ,inode=44432,size=115,blksize=4096 }) = 0 (0x0)
stat("/etc/nsswitch.conf",{ mode=-rw-r--r-- ,inode=44432,size=115,blksize=4096 }) = 0 (0x0)
stat("/etc/nsswitch.conf",{ mode=-rw-r--r-- ,inode=44432,size=115,blksize=4096 }) = 0 (0x0)

I've tried disabling NIS in /etc/nsswitch.conf, but even when I turn it off even running `id steije` stays slow.

I have several other (8.0-p2) machines running in the same virtualised environment without having these kind of issues.

Is there anybody with a solution to this problem?
 
Sure:

group: files
group_compat: nis
hosts: files dns
networks: files
passwd: files nis
passwd_compat: nis
shells: files
 
SirDice: I've tried switching 'files' and 'nis' around, no impact however. I used the handbook to configure the whole NIS setup, there are two ways of configuring NIS (or enabling it), either adding a line to /etc/passwd or by using /etc/nsswitch.conf, I've used nsswitch.conf since 5.x.

J65nko: That's an interesting thread, removing the compat lines didn't make a difference here however.
 
I've just compiled the system to 8-STABLE (with a XENHVM) kernel, the problem persists.. Any clues?
 
Back
Top