On Mon, Mar 27, 2000 at 11:25:34AM -0600, Greg Moeller wrote:
> > You need to tell us additional facts about the server that are relevant to the 
>question.
> > 
> > Eg, Is /var/qmail/queue on a separate partition? 
> Yes, it is.
> /dev/dsk/c2t5d1s6    8404669 5654879 2665744    68%    /var/qmail

Hmm. 2Gig of /var/qmail, that seems quite large, even for 3,000 queue entries. Btw,
3000 queue entries is not necessarily a problem. That's about 100K per mail message,
which is very large indeed. Is there something else significant on that partition?


> /dev/dsk/c2t5d0s6    43080643 21556631 21093206    51%    /mailhome
> 
> > 
> > What are the iostats like on each of the spindles?
> # iostat 10
>       tty          sd0           sd6          sd20          sd65          cpu
>  tin tout kps tps serv  kps tps serv  kps tps  serv  kps tps  serv  us sy wt id
>    0   24 182  12   33    0   0    0  2440 302    5  1619 252    2  38 36 22  4
>    0    8  61   5  113    0   0    0  1061 156   30  1894 308    3  40 42 11  7
>    0    8 148  18   24    0   0    0  594  98     9  1512 261    2  47 41  8  4
>    0    8 137   9   28    0   0    0  527  93     6  1528 265    1  49 42  3  6
>    0    8  97  12   21    0   0    0  2529 335    5  2386 397    2  35 47 17  2
>    0    8  31   3   93    0   0    0  1049 160   35  2194 381    2  36 43 10 11
> sd65 is /var/qmail
> df20 is /mailhome


Looks like both disks are getting pummelled into the ground. 200+ tps is a lot!

> > How are you running qmail-smtpd?
> It's running from tcpserver.
> /usr/local/bin/tcpserver -x/etc/smtp.rules.cdb -H -R -c300 -u 60004 -g 65535 0 smtp 
>/var/qmail/bin/qmail-smtpd &
> > 
> > what are your concurrency settings?
> Local is 50, remote is 100.

So you can have upto 350 processes trying to do i/o to the queue. That seems
high to me. You might want to a separate instance of qmail handling inbound smtp
and outbound smtp. That way you can control the concurrency better.

> > What does qmail-qstat show?
> > 
> # /var/qmail/bin/qmail-qstat
> messages in queue: 3602
> messages in queue but not yet preprocessed: 0

That's good. big todo wont do much for you. It may simply be that you're trying to run
too much concurrency for a single spindle. How may of each time of qmail process do you
have?

ps -ef | grep qmail-|awk '{print $9}' | sort | uniq -c | sort -nr

> 
> That about covers it.  There were 2500 in the queue when I sent the original 
> Email (at 10:53, it's now 11:25)

How many were remote and how many were local?


Regards.

Reply via email to