From owner-freebsd-net@FreeBSD.ORG Wed Feb 15 10:36:09 2012 Return-Path: Delivered-To: net@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A5EAD106566C for ; Wed, 15 Feb 2012 10:36:09 +0000 (UTC) (envelope-from bra@fsn.hu) Received: from people.fsn.hu (people.fsn.hu [195.228.252.137]) by mx1.freebsd.org (Postfix) with ESMTP id 51DFD8FC1A for ; Wed, 15 Feb 2012 10:36:09 +0000 (UTC) Received: by people.fsn.hu (Postfix, from userid 1001) id 45653C0BE78; Wed, 15 Feb 2012 11:17:50 +0100 (CET) X-Bogosity: Ham, tests=bogofilter, spamicity=0.009797, version=1.2.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MF-ACE0E1EA [pR: 8.9843] X-CRM114-CacheID: sfid-20120215_11174_0CE4D039 X-CRM114-Status: Good ( pR: 8.9843 ) X-DSPAM-Result: Whitelisted X-DSPAM-Processed: Wed Feb 15 11:17:50 2012 X-DSPAM-Confidence: 0.8503 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 4f3b864e298071754677676 X-DSPAM-Factors: 27, From*Attila Nagy , 0.00010, FreeBSD, 0.00053, STABLE, 0.00553, I+get, 0.00588, (for, 0.00759, threads, 0.00759, core, 0.00849, Received*FreeBSD.org>, 0.00866, this+happens, 0.00866, (using, 0.01000, I'm+using, 0.01000, To*FreeBSD, 0.01000, I+run, 0.01000, Subject*Very, 0.99000, To*FreeBSD.org>, 0.01000, User-Agent*i686, 0.01134, mode, 0.01243, User-Agent*Linux+i686, 0.01293, DNS, 0.01341, User-Agent*i686+en, 0.01392, thread, 0.01584, thread, 0.01584, User-Agent*Mozilla/5.0+(X11, 0.01614, whether, 0.01717, the+problem, 0.01801, query, 0.01998, X-Spambayes-Classification: ham; 0.00 Received: from japan.t-online.private (japan.t-online.co.hu [195.228.243.99]) by people.fsn.hu (Postfix) with ESMTPSA id 7C4DBC0BE6C for ; Wed, 15 Feb 2012 11:17:49 +0100 (CET) Message-ID: <4F3B864D.1010000@fsn.hu> Date: Wed, 15 Feb 2012 11:17:49 +0100 From: Attila Nagy User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0 MIME-Version: 1.0 To: FreeBSD Net Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Subject: Very bad distribution of packets between multiple listening threads 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, 15 Feb 2012 10:36:09 -0000 Hi, I'm using FreeBSD 9-STABLE on a four core machine with bce to run multi-threaded unbound with libev (using kqueue). Here's the first message (not a long thread so far) about the problem: http://unbound.net/pipermail/unbound-users/2012-February/002237.html To summarize: whether I run unbound in multi-threaded or multi-process mode, I get very bad DNS query distribution between threads/processes. There is sometimes a 10-fold difference in the queries served (QPS) between threads (for example thread X gets 300, thread Y gets 3000). What could be done to make this distribution more balanced between threads? And where does this happens exactly? Thanks,