cancel
Showing results for 
Search instead for 
Did you mean: 

sudo become very slow

SOLVED
Go to solution
uxbeginner22
Trusted Contributor

sudo become very slow

I use sudo from iexpress depot.

When i run sudo as user or root,it takes 20-30 seconds for do a command!

I try truss and give me a lot of "gettimeofday"

like this.

 

 

send(7, "1e J01\0\001\0\0\0\0\0\004 h p u".., 22, 0) = 22
gettimeofday(0x7fffc3c0, NULL) = 0
poll(0x7fffc3e8, 1, 5000) [sleeping]
poll(0x7fffc3e8, 1, 5000) = 0
close(7) = 0
socket(AF_INET, SOCK_DGRAM, 0) = 7
connect(7, 0x4005d4c0, 16) = 0
send(7, "1e J01\0\001\0\0\0\0\0\004 h p u".., 22, 0) = 22
gettimeofday(0x7fffc3c0, NULL) = 0
poll(0x7fffc3e8, 1, 10000) [sleeping]

consider recent i remove this machine from a windows domain.

What can it be?

7 REPLIES
Dennis Handly
Acclaimed Contributor

Re: sudo become very slow

If you're going to use tusc, you should ask for timestamps to see which is slow.

tusc -fp -ea -T ""

uxbeginner22
Trusted Contributor

Re: sudo become very slow

I see

 

1434660900.385249 [7878] gettimeofday(0x7fffc3c0, NULL) ........................................................ = 0
Dennis Handly
Acclaimed Contributor

Re: sudo become very slow

What are the times for other syscalls?

uxbeginner22
Trusted Contributor

Re: sudo become very slow

I see a lot of this

 

1434913048.019368 [3934] close(1233) ........................................................................... ERR#9 EBADF
1434913048.019441 [3934] close(1234) ........................................................................... ERR#9 EBADF
1434913048.019513 [3934] close(1235) ........................................................................... ERR#9 EBADF
1434913048.019586 [3934] close(1236) ........................................................................... ERR#9 EBADF
1434913048.019658 [3934] close(1237) ........................................................................... ERR#9 EBADF
1434913048.019731 [3934] close(1238) ........................................................................... ERR#9 EBADF
1434913048.019803 [3934] close(1239) ........................................................................... ERR#9 EBADF
1434913048.019876 [3934] close(1240) ........................................................................... ERR#9 EBADF
1434913048.019948 [3934] close(1241) ........................................................................... ERR#9 EBADF
1434913048.020021 [3934] close(1242) ........................................................................... ERR#9 EBADF
1434913048.020092 [3934] close(1243) ........................................................................... ERR#9 EBADF
1434913048.020161 [3934] close(1244) ........................................................................... ERR#9 EBADF

Also ssh is become slow

uxbeginner22
Trusted Contributor

Re: sudo become very slow

I see also this thread but no solution

 

http://h30499.www3.hp.com/t5/System-Administration/ssh-and-sudo-responding-very-slow-on-the-system/td-p/4775240#.VYcPE0R7UuI

 

Even in my case ssh and sudo are really slow,i have recreated utmp utmpx and utmps,also wtmp[sx]

but nothing change

Sudo become between 5 and 20s to answer,ssh can be also 30s!

RJHall
Frequent Advisor

Re: sudo become very slow

We have been experiencing performance issues with the latest ixSudo because of a recently introduced interaction with Ldap. It adds several seconds to the execution.

uxbeginner22
Trusted Contributor
Solution

Re: sudo become very slow

Solution found.

Recompile latest sudo by myself and is now fast