Messages in this thread | | | From | "dada1" <> | Subject | Re: /proc reliability & performance | Date | Fri, 17 Oct 2003 19:24:56 +0200 |
| |
From: "David S. Miller" <davem@redhat.com> > "dada1" <dada1@cosmosbay.com> wrote: > > > A "cat /proc/net/tcp" takes too much time to even try it. :( > > > > tools like "netstat" or "lsof", (even with -n flag) are just unusable. > > Because they don't use the netlink TCP socket dumping > facility which is made to handle such things much better > than procfs ever can.
Thanks David for the hint. :) I buy it.
I found that the ss command from iproute2 package does use the 'netlink TCP dumping' you mention (how many people on earth heard about that ?)
Instead of 15 minutes for a 'netstat -n > FILE', my server takes now 6 seconds with 'ss -n > FILE', with 200000 sockets opened.
Eric
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |