<br><br>
<div><span class="gmail_quote">On 10/13/07, <b class="gmail_sendername">Garrick Staples</b> <<a href="mailto:garrick@usc.edu">garrick@usc.edu</a>> wrote:</span></div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Sat, Oct 13, 2007 at 03:45:14AM +0800, joseph blase alleged:<br>> [root@amsdc2-n-s04taw root]# time id userid
<br>> uid=36923(userid) gid=36923(u_036923) groups=36923(u_036923)<br>><br>> real 0m10.509s<br>> user 0m0.030s<br>> sys 0m0.090s</blockquote>
<div> </div>
<div> </div>
<div> </div>
<div><br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Start with 'strace id userid' to see where it is stalling. Maybe you'll find a<br>bad PTR lookup or something.
</blockquote>
<div> </div>
<div>Thanks, seems strace show something use but can't parse it.</div>
<div> </div>
<div>[root@linux]# strace -c -e trace=network -T id userid</div>
<div>uid=36923(userid) gid=36923(u_036923) groups=36923(u_036923)<br>% time seconds usecs/call calls errors syscall<br>------ ----------- ----------- --------- --------- ----------------<br> 26.19 0.879992
86 10184 <font style="BACKGROUND-COLOR: #ff0000">72 bind</font><br> 23.81 0.800000 200000 4 connect<br> 17.26 0.579985 57 10112 recvfrom<br> 12.50
0.419998 42 10112 sendto<br> 12.20 0.409995 41 10112 setsockopt<br> 8.04 0.269990 27 10116 socket<br>------ ----------- ----------- --------- --------- ----------------
<br>100.00 3.359960 50640 72 total<br>[root@linux]# strace -c -T id userid <br>uid=36923(myjtaf) gid=36923(u_036923) groups=36923(u_036923)<br>% time seconds usecs/call calls errors syscall
<br>------ ----------- ----------- --------- --------- ----------------<br> 28.37 5.659654 560 10112 poll<br> 4.36 0.869994 85 10184 <font style="BACKGROUND-COLOR: #ff0000">
72 bind<br></font> 4.21 0.839992 83 10114 readv<br> 4.06 0.809998 80 10131 7 open<br> 4.06 0.809974 80 10112 setsockopt<br> 4.01 0.800000
200000 4 mprotect<br> 4.01 0.800000 200000 4 brk<br> 4.01 0.800000 200000 4 writev<br> 4.01 0.800000 200000 4 connect
<br> 3.91 0.779980 77 10112 sendto<br> 3.51 0.700000 700000 1 write<br> 3.51 0.700000 33333 21 mmap<br> 3.51 0.700000 700000 1 getpid
<br> 3.51 0.700000 700000 1 arch_prctl<br> 3.01 0.600000 33333 18 read<br> 3.01 0.600000 75000 8 munmap<br> 2.76 0.549979 54 10116 fcntl
<br> 2.66 0.529992 52 10112 ioctl<br> 2.21 0.439998 44 10112 recvfrom<br> 2.01 0.400000 200000 2 lseek<br> 2.01 0.400000 200000 2 uname
<br> 1.40 0.279993 28 10116 socket<br> 1.40 0.279977 14 20240 close<br> 0.50 0.100000 7692 13 fstat<br>------ ----------- ----------- --------- --------- ----------------
<br>100.00 19.949531 121544 79 total<br> </div>
<div>It seem that bind to something takes too much time. </div>
<div><br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">You can also determine if the stall is in NIS code with 'ypmatch userid<br>passwd'.</blockquote>
<div> </div>
<div> </div>
<div>Normal here.</div><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">If nscd is running, does killing it make a difference?</blockquote>
<div> </div>
<div>It worsen it.</div>
<div> </div>
<div><br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Any selinux violations in /var/log/messages?</blockquote>
<div> </div>
<div> </div>
<div>None, as no selinux enabled.</div>
<p> </p>
<div> </div>
<div>with trace=bind output, please shed light what's happening in this?</div>
<div> </div>
<div>
<p>[root@linux root]# strace -e trace=bind -T id userid<br>bind(5, {sa_family=AF_INET, sin_port=htons(682), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(683), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(684), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
bind(5, {sa_family=AF_INET, sin_port=htons(685), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(686), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(687), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
bind(5, {sa_family=AF_INET, sin_port=htons(688), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(689), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(690), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
bind(5, {sa_family=AF_INET, sin_port=htons(691), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000></p>
<p><<< ---------------Very Long same messages------------------------------------------>></p>
<p>bind(5, {sa_family=AF_INET, sin_port=htons(672), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(673), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = -1 EADDRINUSE (Address already in use) <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(674), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>
")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(675), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(676), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(677), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
bind(5, {sa_family=AF_INET, sin_port=htons(678), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(679), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(680), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
bind(5, {sa_family=AF_INET, sin_port=htons(681), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(682), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(683), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
bind(5, {sa_family=AF_INET, sin_port=htons(684), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(685), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(686), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
bind(5, {sa_family=AF_INET, sin_port=htons(687), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(688), sin_addr=inet_addr("
<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>bind(5, {sa_family=AF_INET, sin_port=htons(689), sin_addr=inet_addr("<a href="http://0.0.0.0">0.0.0.0</a>")}, 16) = 0 <0.000000><br>
uid=36923(userid) gid=36923(u_036923) groups=36923(u_036923)<br></p></div>
<div>Joseph<br> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">_______________________________________________<br>CentOS mailing list<br><a href="mailto:CentOS@centos.org">
CentOS@centos.org</a><br><a href="http://lists.centos.org/mailman/listinfo/centos">http://lists.centos.org/mailman/listinfo/centos</a><br><br><br></blockquote><br>