From owner-freebsd-net@FreeBSD.ORG Wed Nov 5 13:40:34 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C078106568B for ; Wed, 5 Nov 2008 13:40:34 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.181]) by mx1.freebsd.org (Postfix) with ESMTP id 18DB08FC14 for ; Wed, 5 Nov 2008 13:40:33 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so1754139ele.13 for ; Wed, 05 Nov 2008 05:40:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=G07HkaoFhaQbqsX3AZq0aW/RkaxIRSQl92NyBDgR2FI=; b=TA/+pDXMt4KyhGsJYI3SAzKBtrdn/TmZqx9eMS53URWC7SFN32eN9ABQc3qnO4zXCa tuQPGMoKsWZm8tk1W6fbQ8O+OyD4bgtF+tz0vaiGGMbkHFchc58+B9JQDFecWLnm1sMk DLN+Sr23ar3w/L8IdGb6JWz+ktQNTQPHNuMGo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=AZtfkM+c+x1oQdPVaLX8eoCf17EUdpp+7BatrgqZRITJME5JswuBb5HucjKH3KL3dy Hbx8PooGcxNPKJ/2E4Gwfc8hTDjMyDZdemzorlJhHHR4pGX4BOY/YzknFue7fF1MtQZY AZ8bHIPdQ2gL+7/s3YS/2nQdu/bQ4FrEmxcE8= Received: by 10.90.99.3 with SMTP id w3mr646845agb.111.1225892432368; Wed, 05 Nov 2008 05:40:32 -0800 (PST) Received: by 10.90.81.10 with HTTP; Wed, 5 Nov 2008 05:40:32 -0800 (PST) Message-ID: Date: Wed, 5 Nov 2008 16:40:32 +0300 From: pluknet To: "FreeBSD Net" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: CARP performance tuning question. X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 05 Nov 2008 13:40:34 -0000 Hi. AT work we use device carp(4) under high load: The problem is that the server experiences a bad interactivity (from 70k states and very bad from 120-150k) i.e. when a network workload (and interrupts count) begin to increase. >From top(1): CPU states: 0.0% user, 0.0% nice, 0.4% system, 76.3% interrupt, 23.3% idle PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND 13 root 1 -44 -163 0K 8K WAIT 407:43 57.86% swi1: net ATM pfctl -s info shows such numbers: State Table Total Rate current entries 153972 searches 6052078938 4800.8/s inserts 120373545 95.5/s removals 120219573 95.4/s It works currently under UP, but could be rebuilt to work under SMP (Xeon 5130) if that helps. Can someone give hints to decrease interrupt count and to help with the server stability at all? Thanks. -- wbr, pluknet