From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Dumazet Subject: Re: [PATCH] tcp: Fix slowness in read /proc/net/tcp Date: Mon, 07 Jun 2010 12:32:11 +0200 Message-ID: <1275906731.2545.47.camel@edumazet-laptop> References: <1275895167.2545.8.camel@edumazet-laptop> <87eigjgrcw.fsf@basil.nowhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Tom Herbert , davem@davemloft.net, netdev@vger.kernel.org, Yakov Lerner To: Andi Kleen Return-path: Received: from mail-fx0-f46.google.com ([209.85.161.46]:52292 "EHLO mail-fx0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751588Ab0FGKcQ (ORCPT ); Mon, 7 Jun 2010 06:32:16 -0400 Received: by fxm8 with SMTP id 8so1928395fxm.19 for ; Mon, 07 Jun 2010 03:32:14 -0700 (PDT) In-Reply-To: <87eigjgrcw.fsf@basil.nowhere.org> Sender: netdev-owner@vger.kernel.org List-ID: Le lundi 07 juin 2010 =C3=A0 10:49 +0200, Andi Kleen a =C3=A9crit : > Eric Dumazet writes: > > > > BTW, another problem of /proc/net/tcp is the buffer size used by ne= tstat > > utility : 1024 bytes instead of PAGE_SIZE, making O(N^2) behavior e= ven > > more palpable. >=20 > That would be easily fixable in netstat. >=20 > But I'm not sure net-tools is still maintained as a separate package, > afaik the standard procedure is to submit a patch to a big distributi= on > and the others take it from there. Well, it seems this is fixed in latest netstat, sorry for the noise (I still have machines with RHEL 4)