[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1300510960.2831.2.camel@edumazet-laptop>
Date: Sat, 19 Mar 2011 06:02:40 +0100
From: Eric Dumazet <eric.dumazet@...il.com>
To: Jerry Chu <hkchu@...gle.com>
Cc: Stephen Hemminger <shemminger@...tta.com>, netdev@...r.kernel.org
Subject: Re: [PATCH] Add useful per-connection TCP stats for diagnosis
purpose.
Le vendredi 18 mars 2011 à 21:33 -0700, Jerry Chu a écrit :
> I'm well aware of the past, hideous O(n**2) problem of reading
> /proc/net/tcp but I
> thought the problem has been fixed by Tom Herbert a while back, no?
> (See http://marc.info/?l=linux-netdev&m=127588123429437&w=2)
>
O(N) is still too slow, to gather stats for your socket, if you want to
gather stats once per second for example.
AFAIK, I am not sure we want to allow any user to access all these data
for all tcp sockets on the machine. This might have security impacts.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists