From owner-freebsd-net@FreeBSD.ORG Thu Feb 12 19:33:43 2009 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 1B904106566B for ; Thu, 12 Feb 2009 19:33:43 +0000 (UTC) (envelope-from sepron@gmail.com) Received: from yx-out-2324.google.com (yx-out-2324.google.com [74.125.44.30]) by mx1.freebsd.org (Postfix) with ESMTP id C66838FC19 for ; Thu, 12 Feb 2009 19:33:42 +0000 (UTC) (envelope-from sepron@gmail.com) Received: by yx-out-2324.google.com with SMTP id 31so525061yxl.13 for ; Thu, 12 Feb 2009 11:33:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=xy4M8ny8/5QpbuO8Cm1ceK8RhmGQ/pJojv8SdPj/TVw=; b=lbFEIFqeFP6GJhsiot6WjFmEIaqoGvMh3NRhZ5VDWqboFRqtSYubbr/ZSyNJFzbbW2 KhssKZM/iaOCm+8R1mYT8IA1pzt/701zhZOUYTTd8JGcj7qViYh8MOQUJzag3DwiKQoc uVFBHqENkSJcr+pqBRh2AA8ZbhmbHxmpiDhVQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=ZBAx1uPyNhl9IqRjqHIgPnU1NFn79YTBaEEjwt5g1XYj7pnDg7P7BbnKV30cLe7Rv+ AGybucftXrnK6eaKyEmcHv9Ip3ULQX6Bdip+6sZ5cl39spaXJ1w0dhCnauNkVm2deIn5 9DaAGK4bCiXH7CYh0S/BkjpbP6Gu5gaF6kZ/k= MIME-Version: 1.0 Received: by 10.150.157.17 with SMTP id f17mr231648ybe.49.1234465612559; Thu, 12 Feb 2009 11:06:52 -0800 (PST) Date: Thu, 12 Feb 2009 22:06:52 +0300 Message-ID: From: Sergey Pronin To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Synopsis: process swi1:net gives 100% CPU usage. 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: Thu, 12 Feb 2009 19:33:43 -0000 Synopsis: process swi1:net gives 100% CPU usage. Not depending on the conditions (no heavy load, not a lot of traffic passing through, not a lot of ng nodes) server stops to work properly. 1) swi1:net gives me 100% CPU usage. 2) server is not responding to icmp echo requests 3) ssh of course not working 4) mpd has an "ngsock" state at the top 5) tasq of the em0 card using 0% of the cpu. 6) rebooting the server helps. What do I have: 3 simillar servers. INTEL S3200SH with Q8200. NIC: 82571EB using default em driver (6.9.6) OS: Freebsd 7.1-RELEASE-p2 Soft: mpd 4.4.1 using netgraph modules, ipfw + dummynet, pf (nat only). PPPoE. Using only em0 card. About 200 vlans. 2000 ng nodes created. About 300-400 simultaneous PPPoE sessions. When error occurs there may be about 100 PPPoE sessions. I'm using tablearg, so there are not a lot of ipfw rules. (About 20) sysctl.conf: net.inet.ip.intr_queue_maxlen=1000 net.inet.tcp.blackhole=2 net.inet.udp.blackhole=1 net.inet.ip.dummynet.hash_size=1024 net.inet.ip.dummynet.io_fast=1 net.inet.ip.fw.one_pass=1 net.inet.ip.fastforwarding=1 kern.ipc.maxsockbuf=1048576 net.isr.direct=0 #net.inet.ip.portrange.randomized=0 net.inet.tcp.syncookies=1 net.inet.ip.portrange.first=1024 net.inet.ip.portrange.last=65535 dev.em.0.rx_processing_limit=1024 loader.conf: autoboot_delay="2" kern.ipc.maxpipekva=10000000 vm.kmem_size=512M net.inet.tcp.tcbhashsize=8096 kern.maxusers=512 kern.ipc.nmbclusters=16384 kern.ipc.maxsockets=16384 net.graph.maxalloc=2048 net.graph.maxdgram=1048576 net.graph.recvspace=1048576 hw.em.rxd="512" hw.em.txd="512" And I have the 4th server with the same hardware and software configuration but with FreeBSD 7.1-RELEASE-p1. Everything works fine. Any ideas? Thank you.