[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150624233237.3a4a263b@uryu.home.lan>
Date: Wed, 24 Jun 2015 23:32:37 -0400
From: Stephen Hemminger <stephen@...workplumber.org>
To: Eric Dumazet <eric.dumazet@...il.com>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH iproute2] ss: do not bindly dump two families
On Fri, 29 May 2015 05:37:49 -0700
Eric Dumazet <eric.dumazet@...il.com> wrote:
> From: Eric Dumazet <edumazet@...gle.com>
>
> ss currently dumps IPv4 sockets, then IPv6 sockets from the kernel,
> even if -4 or -6 option was given. Filtering in user space then has to
> drop all sockets of wrong family. Such a waste of time...
>
> Before :
>
> $ time ss -tn -4 | wc -l
> 251659
>
> real 0m1.241s
> user 0m0.423s
> sys 0m0.806s
>
> After:
>
> $ time ss -tn -4 | wc -l
> 251672
>
> real 0m0.779s
> user 0m0.412s
> sys 0m0.386s
>
>
> Signed-off-by: Eric Dumazet <edumazet@...gle.com>
I applied all 3 ss patches for the 4.1 release in progress.
--
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