<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Just for demonstration, my system has relative low usage, but you can
see the output of top:<br>
<tt><br>
PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU
COMMAND<br>
83831 cyrus 1 44 0 34068K 824K select 3 16:31 0.00% master<br>
83834 cyrus 1 44 0 55296K 480K select 3 15:44 0.00% idled<br>
28343 cyrus 1 44 0 93048K 5240K select 0 0:03 0.00% imapd<br>
28383 cyrus 1 44 0 82208K 4920K select 1 0:02 0.00% imapd<br>
28382 cyrus 1 44 0 80120K 4812K select 0 0:01 0.00% imapd<br>
28350 cyrus 1 44 0 66420K 4300K select 3 0:01 0.00% imapd<br>
28375 cyrus 1 44 0 66488K 4108K select 0 0:00 0.00% imapd<br>
11942 cyrus 1 4 0 66392K 5060K accept 0 0:00 0.00% pop3d<br>
12157 cyrus 1 44 0 66988K 5688K select 1 0:00 0.00% pop3d<br>
12159 cyrus 1 44 0 66708K 5656K select 3 0:00 0.00% pop3d<br>
12158 cyrus 1 44 0 66580K 5648K select 0 0:00 0.00% pop3d<br>
12238 cyrus 1 4 0 66408K 5452K accept 0 0:00 0.00% lmtpd</tt><br>
<br>
As you can see, it's using CPUs 0, 1 and 3 at this point.<br>
<br>
Raymond T. Sundland wrote:
<blockquote cite="mid49A5CFA7.6030807@sundland.com" type="cite">
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
When master receives a connection, it spawns a child process to manage
that connection. That would essentially make it multi-threaded making
use of the multiple CPUs when needed, I would think. Is that not the
case? You can launch multiple master processes, but that wouldn't have
any better guarantee to use multiple CPUs, either.<br>
<br>
<br>
Atif Ghaffar wrote:
<blockquote
cite="midf240b640902251447u2a23a50egb506df74eba922a6@mail.gmail.com"
type="cite">Hello,<br>
<br>
I am a long time cyrus user but have not been hands on for a while.<br>
At my current job we are running cyrus to manage all mailstore for our
ISP.<br>
<br>
Recently I have migrate a couple of boxes to newer ones with more cores
per cpu.<br>
<br>
when running htop -u cyrus, i see that only one core is being used for
most of the work and that seems to be a waste of the rest of the cpus.<br>
<br>
We are using the following services (imap, pop3, lmtp, sieve)<br>
<br>
One thought that comes to mind is to run different master processes
which do one service at a time.<br>
<br>
I am thinking on consolidating into<br>
<br>
1. cyrus-master-main (running imap/sieve)<br>
2. cyrus-master-pop3 (running pop3)<br>
3. cyrus-master-lmtp (running lmtp)<br>
<br>
Does this makes any sense?<br>
Would this balance the usage of the CPUs.<br>
<br>
If yes, I will post the config files for inspection.<br>
<br>
<br>
best regards<br>
Atif <br>
<pre wrap=""><hr size="4" width="90%">
----
Cyrus Home Page: <a class="moz-txt-link-freetext"
href="http://cyrusimap.web.cmu.edu/">http://cyrusimap.web.cmu.edu/</a>
Cyrus Wiki/FAQ: <a class="moz-txt-link-freetext"
href="http://cyrusimap.web.cmu.edu/twiki">http://cyrusimap.web.cmu.edu/twiki</a>
List Archives/Info: <a class="moz-txt-link-freetext"
href="http://asg.web.cmu.edu/cyrus/mailing-list.html">http://asg.web.cmu.edu/cyrus/mailing-list.html</a></pre>
</blockquote>
<pre wrap="">
<hr size="4" width="90%">
----
Cyrus Home Page: <a class="moz-txt-link-freetext" href="http://cyrusimap.web.cmu.edu/">http://cyrusimap.web.cmu.edu/</a>
Cyrus Wiki/FAQ: <a class="moz-txt-link-freetext" href="http://cyrusimap.web.cmu.edu/twiki">http://cyrusimap.web.cmu.edu/twiki</a>
List Archives/Info: <a class="moz-txt-link-freetext" href="http://asg.web.cmu.edu/cyrus/mailing-list.html">http://asg.web.cmu.edu/cyrus/mailing-list.html</a></pre>
</blockquote>
</body>
</html>