From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: big picture UDP/IP performance question re 2.6.18 -> 2.6.32 Date: Sun, 02 Oct 2011 10:03:23 +0200 Message-ID: <1317542603.3802.48.camel@edumazet-laptop> References: <6.2.5.6.2.20111001215241.03a7ed48@binnacle.cx> <1317540066.3802.32.camel@edumazet-laptop> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: linux-kernel@vger.kernel.org, netdev , Willy Tarreau , Peter Zijlstra To: starlight@binnacle.cx Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:48676 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750831Ab1JBIDa (ORCPT ); Sun, 2 Oct 2011 04:03:30 -0400 In-Reply-To: <1317540066.3802.32.camel@edumazet-laptop> Sender: netdev-owner@vger.kernel.org List-ID: Le dimanche 02 octobre 2011 =C3=A0 09:21 +0200, Eric Dumazet a =C3=A9cr= it : > You might try to disable any fancy power saving mode in your machine. > Maybe on your machine, cost to enter/exit deep sleep state is too hig= h. >=20 > I see nothing obvious in the profile but userland processing, futex > calls.=20 Just to clarify a bit : Sometimes, optimizing one part of the kernel can have a negative impact on some workloads because we end up doing more sleep/wakeup of consumers : Several threads might try to acquire a lock at the same time, while previously they got no contention. In 2.6.35, commit c377411f2494a (net: sk_add_backlog() take rmem_alloc into account) changed backlog limit, avoid taking socket lock on flood, allowing to receive 200.000 pps on a test machine instead of 100pps. But the receiver was doing a plain while (1) recv(...); And maximum throughput was reached because task never called scheduler...