netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] ipv4 metrics super-sharing
@ 2011-01-28 22:35 David Miller
  0 siblings, 0 replies; only message in thread
From: David Miller @ 2011-01-28 22:35 UTC (permalink / raw)
  To: netdev


As I mentioned a few days ago, we can "super-share" the metrics
in the most common case, which is that there are not explicit
metrics set for a route.

This makes the metrics all zero, which means we can just alias
the pointer to dst_default_metrics.

Most importantly, this means we avoid atomics on the fib_info ref
count at dst destroy time.

Depending upon the configuration, this can also save a non-trivial
amount of memory in the routing tables.  Honestly, I doubt that
sites entertaining routing tables with hundreds of thousands of
routes have any non-zero metrics specified. :-)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-01-28 22:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-28 22:35 [PATCH 0/3] ipv4 metrics super-sharing David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).