On Sat, Oct 13, 2007 at 03:45:14AM +0800, joseph blase alleged:
> [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
Start with 'strace id userid' to see where it is stalling. Maybe you'll find a
bad PTR lookup or something.
You can also determine if the stall is in NIS code with 'ypmatch userid
passwd'.
If nscd is running, does killing it make a difference?
Any selinux violations in /var/log/messages?
[root@linux root]# strace -e trace=bind -T id userid
bind(5, {sa_family=AF_INET, sin_port=htons(682), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(683), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(684), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(685), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(686), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(687), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(688), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(689), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(690), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(691), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
<<< ---------------Very Long same messages------------------------------------------>>
bind(5, {sa_family=AF_INET, sin_port=htons(672), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(673), sin_addr=inet_addr("
0.0.0.0")}, 16) = -1 EADDRINUSE (Address already in use) <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(674), sin_addr=inet_addr("0.0.0.0
")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(675), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(676), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(677), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(678), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(679), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(680), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(681), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(682), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(683), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(684), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(685), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(686), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(687), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(688), sin_addr=inet_addr("
0.0.0.0")}, 16) = 0 <0.000000>
bind(5, {sa_family=AF_INET, sin_port=htons(689), sin_addr=inet_addr("0.0.0.0")}, 16) = 0 <0.000000>
uid=36923(userid) gid=36923(u_036923) groups=36923(u_036923)
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos