From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 15 07:04:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1965E16A4CE for ; Mon, 15 Mar 2004 07:04:48 -0800 (PST) Received: from mail.icomag.de (ns.icomag.de [195.227.115.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 55D1F43D1D for ; Mon, 15 Mar 2004 07:04:47 -0800 (PST) (envelope-from bgd@icomag.de) Received: from localhost (localhost [127.0.0.1]) by mail.icomag.de (Postfix) with ESMTP id 49BA622E36 for ; Mon, 15 Mar 2004 16:04:43 +0100 (CET) Received: by mail.icomag.de (Postfix, from userid 1019) id A016E22E38; Mon, 15 Mar 2004 16:04:38 +0100 (CET) Date: Mon, 15 Mar 2004 16:04:38 +0100 From: Bogdan TARU To: freebsd-hackers@freebsd.org Message-ID: <20040315150438.GA48241@icomag.de> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i X-Virus-Scanned: by AMaViS Subject: kernel activity X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2004 15:04:48 -0000 Hi everyone, I'm running a pretty busy webserver, and right now I can see it's CPU-bound: %vmstat 1 procs memory page disks faults cpu r b w avm fre flt re pi po fr sr da0 ac0 in sy cs us sy id 78 2 0 1135684 144648 93 0 0 0 248 82 14 0 319 235 136 26 35 39 72 2 0 1135668 144060 25 0 0 0 160 0 19 0 1971 141871 1098 41 59 0 84 2 0 1135836 142692 82 0 0 0 405 0 35 0 3144 246325 1739 42 58 0 77 2 0 1135732 142104 168 0 0 0 343 0 20 0 2129 155969 1314 38 62 0 and I'm trying to figure out why so much time is consumed in 'system mode' (to see if I can further tune the box or not). Any idea what kind of structures/utilities I should consult for that? Thanks, bogdan PS. Advices like 'add more cpu power' and such are NOT welcomed, the box is already fully loaded, the webserver tuned, and if I cannot tune the box as to spend less time in system mode, then I will just load balance with another box.