From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754686Ab0DOPor (ORCPT ); Thu, 15 Apr 2010 11:44:47 -0400 Received: from mail-pv0-f174.google.com ([74.125.83.174]:35550 "EHLO mail-pv0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752540Ab0DOPop (ORCPT ); Thu, 15 Apr 2010 11:44:45 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=eHytYbympRGF5BdRFcU4VbSnUWrSZ2161LAFYJoR/VDq96oqqeZGJB0QcVtCiO+icP K3yxLvbdPmeOzc1UMNlYtzWYXu8CoRTPU5du2UrYQhWW/ET2pt2B62xNrJN7k/gUI2XE nIZUA+Gmq3lisqFL04WecrSWzFuXEaJN28A2M= MIME-Version: 1.0 Date: Thu, 15 Apr 2010 10:44:44 -0500 Message-ID: Subject: Poor localhost net performance on recent stable kernel From: Kelly Burkhart To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, While working on upgrading distributions, I've noticed that local network communication is much slower on 2.6.33.2 than on our old kernel 2.6.16.60 (sles 10.2). Results of netperf, UDP_RR against localhost I get around 150000 tps on the new kernel vs. 290000 tps with the old kernel. The netperf command: netperf -T 1 -H 127.0.0.1 -t UDP_RR -c -C -- -r 100 TCP_RR had similar results. The problem did not exist with TCP_STREAM. While trying to track this down, I wrote a test program that writes then reads a 32 bit integer to a pipe: static void tst_pipe0( int sleep_us ) { int pipefd[2]; int idx; uint32_t tarr[ITERS]; printf("tst_pipe0 -- sleep %dus\n", sleep_us); if (pipe(pipefd) < 0) err_exit("pipe"); for(idx=0; idx