From owner-freebsd-stable@FreeBSD.ORG Fri Sep 22 07:38:51 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C9E116A403; Fri, 22 Sep 2006 07:38:51 +0000 (UTC) (envelope-from taras@elantech.ru) Received: from mail2.elantech.ru (mail2.elantech.ru [87.245.154.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4065D43D5F; Fri, 22 Sep 2006 07:38:51 +0000 (GMT) (envelope-from taras@elantech.ru) Received: from [10.10.10.3] (mail.elantech.ru [62.231.11.113]) by mail2.elantech.ru (Postfix) with ESMTP id 2577D33C6B; Fri, 22 Sep 2006 11:38:41 +0400 (MSD) Message-ID: <4513930A.9080401@elantech.ru> Date: Fri, 22 Sep 2006 11:38:50 +0400 From: Taras Savchuk User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: freebsd-stable@freebsd.org Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org, delphij@delphij.net Subject: Dovecot 1.0 rc7 on FreeBSD 6.1-RELEASE/i386 with kqueue eats much CPU X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Sep 2006 07:38:51 -0000 I have a problem with dovecot eating sometimes up to 90% CPU. While making such high cpu load, dovecot calls gettimeofday() more than 20000 times per second: mail2# cat k.dov.l.txt | grep CALL | grep gettimeofday | wc -l 1195552 mail2# head -n 1 k.dov.l.txt 20910 imap 0.000000 CALL gettimeofday(0x80c2c60,0x80c2c68) mail2# tail -n 1 k.dov.l.txt 20910 imap 51.826065 RET gettimeofday 0 Here is my kdump: http://www.elantech.ru/kdump-dovecot.txt.gz top shows high system load (~50%) and small user load (~0-5%). We discussed this problem in dovecot@ mailing list ( http://www.dovecot.org/list/dovecot/2006-September/016096.html ), and people from dovecot@ recomended me to send this problem also to freebsd-stable@ and freebsd-current@. Thanks for help in advance! -- С уважением, Савчук Тарас ООО "Элантек" : Аутсорсинг ИТ, WEB-разработка http://www.elantech.ru +7 (495) 589 68 81 +7 (926) 575 22 11