Re: Passwd command slow
Hi, Try # ktrace passwd username # kdump -f ktrace.out You can find out where the process stuck Regards SSR From: Greg Goodman <[EMAIL PROTECTED]> Reply-To: Greg Goodman <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Passwd command slow Date: Tue, 30 Sep 2003 17:51:50 -0700 Hello Everyone, I have a server running freebsd 4.8. When you type the command "passwd" it hangs for more than 2 minutes before it finally responds and prompts to change an existing users password. Can anyone shed some light on this issue? Thanks for the help. -- Best regards, Greg Goodman mailto:[EMAIL PROTECTED] Chief Technical Officer Fastserve Network http://www.fastserve.net (213)673-4440 ext 204 548 S. Spring St. Suite 1100 Los Angeles Ca. 90013 The Net Never Sleeps And Neither Do We ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" _ Answer simple questions. Win a free honeymoon. http://server1.msn.co.in/sp03/shaadi/index.asp Sail into the sunset! ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re[3]: Passwd command slow
I would say double check NIS didnt accidentally get set up. ---Mike At 11:07 PM 30/09/2003, Greg Goodman wrote: Hello Mike, It shows: 5481028 37390 /etc/passwd I am not running NIS Tuesday, September 30, 2003, 6:19:41 PM, you wrote: MT> Wat does MT> wc /etc/passwd MT> show ? MT> Are you running NIS ? MT> ---Mike MT> At 09:13 PM 30/09/2003, Greg Goodman wrote: >>Hello Mike, >> >>I tried that and it didn't help. >>Is there anything else I can try? >> >> >> >>Tuesday, September 30, 2003, 6:06:47 PM, you wrote: >> >> >>MT> If you have a large password file, increase the cache size of pwd_mkdb >> >>MT> cd /usr/src/usr.sbin/pwd_mkdb >> >>MT> edit pwd_mkdb.c >> >>MT> On line 74 you see >>MT> HASHINFO openinfo = { >>MT> 4096, /* bsize */ >>MT> 32, /* ffactor */ >>MT> 256,/* nelem */ >>MT> 2048 * 1024,/* cachesize */ >>MT> NULL, /* hash() */ >>MT> 0 /* lorder */ >>MT> }; >> >>MT> do something like >> >>MT> HASHINFO openinfo = { >>MT> 4096, /* bsize */ >>MT> 32, /* ffactor */ >>MT> 256,/* nelem */ >>MT> 32 * 2048 * 1024,/* cachesize */ >>MT> NULL, /* hash() */ >>MT> 0 /* lorder */ >>MT> }; >> >> >>MT> Then >> >>MT> make depend >>MT> make >>MT> make install >> >>MT> ---Mike >>MT> At 08:51 PM 30/09/2003, Greg Goodman wrote: >> >>Hello Everyone, >> >> >> >>I have a server running freebsd 4.8. >> >>When you type the command "passwd" it hangs for more than 2 minutes >> >>before it finally responds and prompts to change an existing users >> >>password. >> >> >> >>Can anyone shed some light on this issue? >> >> >> >>Thanks for the help. >> >> >> >>-- >> >>Best regards, >> >> Greg Goodman mailto:[EMAIL PROTECTED] >> >> >> >> Chief Technical Officer >> >> >> >> Fastserve Network >> >>http://www.fastserve.net >> >> (213)673-4440 ext 204 >> >> 548 S. Spring St. Suite 1100 >> >>Los Angeles Ca. 90013 >> >>The Net Never Sleeps And Neither Do We >> >> >> >>___ >> >>[EMAIL PROTECTED] mailing list >> >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> >>To unsubscribe, send any mail to >> "[EMAIL PROTECTED]" >> >> >>-- >>Best regards, >> Greg Goodman mailto:[EMAIL PROTECTED] >> >> Chief Technical Officer >> >> Fastserve Network >>http://www.fastserve.net >> (213)673-4440 ext 204 >> 548 S. Spring St. Suite 1100 >>Los Angeles Ca. 90013 >>The Net Never Sleeps And Neither Do We -- Best regards, Gregmailto:[EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Passwd command slow
Greg Goodman wrote: I have a server running freebsd 4.8. When you type the command "passwd" it hangs for more than 2 minutes before it finally responds and prompts to change an existing users password. Can anyone shed some light on this issue? That sounds a lot like an NIS timeout. Are you using NIS, or do you have a domainname set? Try running "passwd -l" and see whether that goes faster... -- -Chuck ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re[2]: Passwd command slow
Wat does wc /etc/passwd show ? Are you running NIS ? ---Mike At 09:13 PM 30/09/2003, Greg Goodman wrote: Hello Mike, I tried that and it didn't help. Is there anything else I can try? Tuesday, September 30, 2003, 6:06:47 PM, you wrote: MT> If you have a large password file, increase the cache size of pwd_mkdb MT> cd /usr/src/usr.sbin/pwd_mkdb MT> edit pwd_mkdb.c MT> On line 74 you see MT> HASHINFO openinfo = { MT> 4096, /* bsize */ MT> 32, /* ffactor */ MT> 256,/* nelem */ MT> 2048 * 1024,/* cachesize */ MT> NULL, /* hash() */ MT> 0 /* lorder */ MT> }; MT> do something like MT> HASHINFO openinfo = { MT> 4096, /* bsize */ MT> 32, /* ffactor */ MT> 256,/* nelem */ MT> 32 * 2048 * 1024,/* cachesize */ MT> NULL, /* hash() */ MT> 0 /* lorder */ MT> }; MT> Then MT> make depend MT> make MT> make install MT> ---Mike MT> At 08:51 PM 30/09/2003, Greg Goodman wrote: >>Hello Everyone, >> >>I have a server running freebsd 4.8. >>When you type the command "passwd" it hangs for more than 2 minutes >>before it finally responds and prompts to change an existing users >>password. >> >>Can anyone shed some light on this issue? >> >>Thanks for the help. >> >>-- >>Best regards, >> Greg Goodman mailto:[EMAIL PROTECTED] >> >> Chief Technical Officer >> >> Fastserve Network >>http://www.fastserve.net >> (213)673-4440 ext 204 >> 548 S. Spring St. Suite 1100 >>Los Angeles Ca. 90013 >>The Net Never Sleeps And Neither Do We >> >>___ >>[EMAIL PROTECTED] mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Best regards, Greg Goodman mailto:[EMAIL PROTECTED] Chief Technical Officer Fastserve Network http://www.fastserve.net (213)673-4440 ext 204 548 S. Spring St. Suite 1100 Los Angeles Ca. 90013 The Net Never Sleeps And Neither Do We ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re[2]: Passwd command slow
Hello Mike, I tried that and it didn't help. Is there anything else I can try? Tuesday, September 30, 2003, 6:06:47 PM, you wrote: MT> If you have a large password file, increase the cache size of pwd_mkdb MT> cd /usr/src/usr.sbin/pwd_mkdb MT> edit pwd_mkdb.c MT> On line 74 you see MT> HASHINFO openinfo = { MT> 4096, /* bsize */ MT> 32, /* ffactor */ MT> 256,/* nelem */ MT> 2048 * 1024,/* cachesize */ MT> NULL, /* hash() */ MT> 0 /* lorder */ MT> }; MT> do something like MT> HASHINFO openinfo = { MT> 4096, /* bsize */ MT> 32, /* ffactor */ MT> 256,/* nelem */ MT> 32 * 2048 * 1024,/* cachesize */ MT> NULL, /* hash() */ MT> 0 /* lorder */ MT> }; MT> Then MT> make depend MT> make MT> make install MT> ---Mike MT> At 08:51 PM 30/09/2003, Greg Goodman wrote: >>Hello Everyone, >> >>I have a server running freebsd 4.8. >>When you type the command "passwd" it hangs for more than 2 minutes >>before it finally responds and prompts to change an existing users >>password. >> >>Can anyone shed some light on this issue? >> >>Thanks for the help. >> >>-- >>Best regards, >> Greg Goodman mailto:[EMAIL PROTECTED] >> >> Chief Technical Officer >> >> Fastserve Network >>http://www.fastserve.net >> (213)673-4440 ext 204 >> 548 S. Spring St. Suite 1100 >>Los Angeles Ca. 90013 >>The Net Never Sleeps And Neither Do We >> >>___ >>[EMAIL PROTECTED] mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Best regards, Greg Goodman mailto:[EMAIL PROTECTED] Chief Technical Officer Fastserve Network http://www.fastserve.net (213)673-4440 ext 204 548 S. Spring St. Suite 1100 Los Angeles Ca. 90013 The Net Never Sleeps And Neither Do We ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Passwd command slow
If you have a large password file, increase the cache size of pwd_mkdb cd /usr/src/usr.sbin/pwd_mkdb edit pwd_mkdb.c On line 74 you see HASHINFO openinfo = { 4096, /* bsize */ 32, /* ffactor */ 256,/* nelem */ 2048 * 1024,/* cachesize */ NULL, /* hash() */ 0 /* lorder */ }; do something like HASHINFO openinfo = { 4096, /* bsize */ 32, /* ffactor */ 256,/* nelem */ 32 * 2048 * 1024,/* cachesize */ NULL, /* hash() */ 0 /* lorder */ }; Then make depend make make install ---Mike At 08:51 PM 30/09/2003, Greg Goodman wrote: Hello Everyone, I have a server running freebsd 4.8. When you type the command "passwd" it hangs for more than 2 minutes before it finally responds and prompts to change an existing users password. Can anyone shed some light on this issue? Thanks for the help. -- Best regards, Greg Goodman mailto:[EMAIL PROTECTED] Chief Technical Officer Fastserve Network http://www.fastserve.net (213)673-4440 ext 204 548 S. Spring St. Suite 1100 Los Angeles Ca. 90013 The Net Never Sleeps And Neither Do We ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]" ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Passwd command slow
Hello Everyone, I have a server running freebsd 4.8. When you type the command "passwd" it hangs for more than 2 minutes before it finally responds and prompts to change an existing users password. Can anyone shed some light on this issue? Thanks for the help. -- Best regards, Greg Goodman mailto:[EMAIL PROTECTED] Chief Technical Officer Fastserve Network http://www.fastserve.net (213)673-4440 ext 204 548 S. Spring St. Suite 1100 Los Angeles Ca. 90013 The Net Never Sleeps And Neither Do We ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"