From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 26 Feb 2018 20:13:55 -0500 (EST) Message-Id: <20180226.201355.1546591469388453458.davem@davemloft.net> To: stephen@networkplumber.org Cc: willy@infradead.org, netdev@vger.kernel.org, linux-mm@kvack.org, ikomyagin@gmail.com, sthemmin@microsoft.com Subject: Re: [PATCH 0/2] mark some slabs as visible not mergeable From: David Miller In-Reply-To: <20180226134613.04edcc98@xeon-e3> References: <20180224190454.23716-1-sthemmin@microsoft.com> <20180226.151502.1181392845403505211.davem@redhat.com> <20180226134613.04edcc98@xeon-e3> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: From: Stephen Hemminger Date: Mon, 26 Feb 2018 13:46:13 -0800 > This is ancient original iproute2 code that dumpster dives into > slabinfo to get summary statistics on active objects. > > 1) open sockets (sock_inode_cache) The sockets inuse counter from /proc/net/sockstat is really sufficient for this. > 2) TCP ports bound (tcp_bind_buckets) [*] > 3) TCP time wait sockets (tw_sock_TCP) [*] Time wait is provided by /proc/net/sockstat as well. > 4) TCP syn sockets (request_sock_TCP) [*] It shouldn't be too hard to fill in the last two gaps, maintaining a counter for bind buckets and request socks, and exporting them in new /proc/net/sockstat field. That would be so much better than disabling a useful optimization in the SLAB allocator. Thank you. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org