Thread (10 messages) 10 messages, 6 authors, 2018-02-27

Re: [PATCH 0/2] mark some slabs as visible not mergeable

From: David Miller <davem@davemloft.net>
Date: 2018-02-27 01:13:59
Also in: linux-mm

From: Stephen Hemminger <stephen@networkplumber.org>
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help