Re: sendmail/strace hanging

2004-04-17 Thread Cory Petkovsek
On Sat, Apr 10, 2004 at 08:29:38AM +0100, Matthew Seaman wrote:
 Hmmm... Very strange.  I wonder if it's sendmail causing the effect at
 all -- sounds like it might be something more systemic.  Do you have
 ACPI enabled?  Could it be that the system is throttling the CPU under
 load -- perhaps to keep the CPU cool?

Possibly, but I have not had any further problems once it started working
again.  I have it configured as I want it, so I won't worry about it until it
happens again.  I have noticed sendmail blocking as I send a message through
mutt.  I presume this is caused by dns lookups, but it is nearly always brief.

strace still blocks if I just say:
$ strace cat file

It blocks, but will jump start if I 'ctrl+z' and 'fg'.
ioctl(3, PIOCWAIT

Cory


-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: sendmail/strace hanging

2004-04-10 Thread Matthew Seaman
On Fri, Apr 09, 2004 at 06:27:42PM -0700, Cory Petkovsek wrote:
 On Fri, Apr 09, 2004 at 10:16:42AM +0100, Matthew Seaman wrote:
  On Thu, Apr 08, 2004 at 04:08:39PM -0700, Cory Petkovsek wrote:
  
   Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
   takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
   while before moving.  Booting also has this delay.
  
  In the interests of eliminating the obvious: you have confirmed that
  this is not some sort of DNS timeout?  Delays of that length on
  starting up sendmail are usually due to waiting out the DNS timeouts.
 
 Would dns timeouts affect mailq?  My dns is setup correctly locally, which is
 where I was trying to send my tests, to my local mailhub.  What is also
 interesting is that it has started working again at a normal speed, without any
 changes or restarts.  It was slow over config changes, make world, and
 reboots.  But became slow, then became normal just by sitting idle.  I have a
 p4 with HT and an SMP/HT kernel.  Could that have anything to do with it?

Hmmm... Very strange.  I wonder if it's sendmail causing the effect at
all -- sounds like it might be something more systemic.  Do you have
ACPI enabled?  Could it be that the system is throttling the CPU under
load -- perhaps to keep the CPU cool?

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: sendmail/strace hanging

2004-04-09 Thread Matthew Seaman
On Thu, Apr 08, 2004 at 04:08:39PM -0700, Cory Petkovsek wrote:

 Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
 takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
 while before moving.  Booting also has this delay.

In the interests of eliminating the obvious: you have confirmed that
this is not some sort of DNS timeout?  Delays of that length on
starting up sendmail are usually due to waiting out the DNS timeouts.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   26 The Paddocks
  Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey Marlow
Tel: +44 1628 476614  Bucks., SL7 1TH UK


pgp0.pgp
Description: PGP signature


Re: sendmail/strace hanging

2004-04-09 Thread Cory Petkovsek
On Fri, Apr 09, 2004 at 10:16:42AM +0100, Matthew Seaman wrote:
 On Thu, Apr 08, 2004 at 04:08:39PM -0700, Cory Petkovsek wrote:
 
  Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
  takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
  while before moving.  Booting also has this delay.
 
 In the interests of eliminating the obvious: you have confirmed that
 this is not some sort of DNS timeout?  Delays of that length on
 starting up sendmail are usually due to waiting out the DNS timeouts.

Would dns timeouts affect mailq?  My dns is setup correctly locally, which is
where I was trying to send my tests, to my local mailhub.  What is also
interesting is that it has started working again at a normal speed, without any
changes or restarts.  It was slow over config changes, make world, and
reboots.  But became slow, then became normal just by sitting idle.  I have a
p4 with HT and an SMP/HT kernel.  Could that have anything to do with it?

Cory



-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


sendmail/strace hanging

2004-04-08 Thread Cory Petkovsek
I'm running the 5.2 branch, last updated about 3/23-28.  Last night I was
working on forwarding sendmail on my freebsd workstation to my solaris
mailhub.  I modified my rc.conf to change:
sendmail_enable=YES
to
sendmail_enable=NO
sendmail_submit_enable=YES

Then I worked on making a submit sendmail cf.  I ran `sh /etc/rc.sendmail` and
it restarted the daemons.  Things worked fine.  I could run mailq and sendmail
as normal (aside from mail level problems).

In the mean time I got side tracked with a solaris problem.  I left that root
window open and tackled solaris.  When I came back to that window, things were
not working quite right.  `mailq` delayed for about 1min 15 seconds before
displaying anything.  It took about as long to send a message `echo
test|sendmail cory`.  Prompt comes back, but the process sits there for some
time.

Stopping sendmail with `sh /etc/rc.sendmail stop` works quickly.  Starting it
takes about 3min.   Both sendmail-submit and sendmail-clientmqueue take a
while before moving.  Booting also has this delay.

I have since commented out both sendmail lines in the rc.conf.  I've also reset
the sendmail configuration in /etc/mail.  I did a cvsup with src-alll
tag=RELENG_5_2 and did a make build/installworld last night.  Still have the
delay.  Mergemaster replaced sendmail.cf, but saw no difference with
rc.sendmail.

Now for the fun part.  I installed strace to see what was going on.  Strace
exibited similar blocking!  ARRGGHH!  doing an `strace ls` on one window and an
`strace -p` in another shows it blocking at ioctl(3, PIOCWAIT
If I hit ctrl-z and then `fg` on the `strace ls` window it instantly runs.

If I `strace mailq`, again it blocks.  `strace -p` in another window
shows same thing.  Doing a ctrl-z/fg makes it go and I get a bunch of output
followed by this at the end: 
execve(/usr/libexec/sendmail/sendmail, [], [/* 0 vars */]PIOCWSTOP:
Input/output error

If I `mailq` and strace -p while it blocks I see it waiting at:
kevent(0x3, 0xbfbfbcc0, 0x1, 0xbfbfbcc0, 0x1, 0xbfbfbca0
with a wchan of kqread.

What happend?

Cory

-- 
Cory Petkovsek   Adapting Information
Adaptable IT ConsultingTechnology to Your
(858) 705-1655   Business
[EMAIL PROTECTED]  www.AdaptableIT.com
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]