From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kelly Burkhart Subject: Poor localhost net performance on recent stable kernel Date: Thu, 15 Apr 2010 10:44:44 -0500 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 To: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Return-path: 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 Sender: netdev-owner@vger.kernel.org List-ID: 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