mirror_iproute2/misc
Steve Fink fbc0f876fa ss -p is much too slow
> On closer inspection, it appears that ss -p does a quadratic scan. It
> rescans every entry in /proc/*/fd/* repeatedly (once per listening
> port? per process? I don't remember what I figured out.)
>
> I humbly suggest that this is not a good idea.

Yep, this is junk.  Please give this patch a try:

ss: Avoid quadradic complexity with '-p'

Scan the process list of open sockets once, and store in a hash
table to be used by subsequent find_user() calls.

Reported-by: Steve Fink <sphink@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-07-31 19:31:12 -07:00
..
.gitignore Add ignore files to make using git easier 2006-08-08 12:04:38 -07:00
arpd.c arpd/ifstat/nstat/rtacct: use daemon() 2009-11-10 10:41:44 -08:00
ifstat.c arpd/ifstat/nstat/rtacct: use daemon() 2009-11-10 10:41:44 -08:00
lnstat_util.c Remove trailing whitespace 2006-12-05 10:10:22 -08:00
lnstat.c Add warning message when MAX_FIELDS reached 2008-06-30 11:57:13 -07:00
lnstat.h add const to find_field 2004-10-19 20:47:13 +00:00
Makefile Do not strip binaries with install 2008-04-01 11:26:47 -07:00
nstat.c Fix warning about sprintf() and NSTAT_HIST 2009-12-26 10:21:13 -08:00
rtacct.c arpd/ifstat/nstat/rtacct: use daemon() 2009-11-10 10:41:44 -08:00
ss.c ss -p is much too slow 2010-07-31 19:31:12 -07:00
ssfilter.h (Logical change 1.3) 2004-04-15 20:56:59 +00:00
ssfilter.y Remove trailing whitespace 2006-12-05 10:10:22 -08:00