From: Robert Olsson <Robert.Olsson@data.slu.se>
To: Andi Kleen <ak@muc.de>
Cc: Robert Olsson <Robert.Olsson@data.slu.se>,
Jens.Laas@data.slu.se, netdev@oss.sgi.com
Subject: Re: (diet-)FIB alternative fib_hlist.c
Date: Wed, 4 May 2005 22:10:31 +0200 [thread overview]
Message-ID: <17017.11319.855946.521718@robur.slu.se> (raw)
In-Reply-To: <m1zmvax2cx.fsf@muc.de>
Andi Kleen writes:
> Great patch! I wanted to do something like this for a long time :/
> It is a good solution for 99.999% of all users who never have more
> than a few routes.
>
> Random comments while reading the code:
>
> I would perhaps add a printk that warns the user if there are
> more than 10 routes or so to use a different FIB.
When we find the break-even point we can a print warning at insertions
above this point. A minor problem.
> Also I would try to replace the write locks with normal spinlocks.
> read/write locks should not be needed for the use case of a normal
> client who basically never changes the routing table, and normal
> spinlocks are more friendly to modern cache coherency protocols.
Interesting. I'll guess this goes for all FIB variants. Needs some
experimentation.
> With only a few routes it is overkill to have two kmem caches,
> which both need at least a page each. With 10-20 routes you
> waste half the memory because of that. Better use a single
> slab cache for both object types or just kmalloc.
Doable. slab objects are nice & easy to monitor during development.
> Now we only need support for loadable fibs, then
> distributions could use this too. Loadable ones should
> be pretty easy, as long as you dont try to make them unloadable.
First step yes. Also we need hi-pref system to have multiple
FIB variants. Just attack it if got some ideas.
> The later would need a lot of reference counting in fast paths,
> which would be probably a bad idea. And losing that capability
> is not a big issue.
Yes leave that out for now.
Cheers.
--ro
next prev parent reply other threads:[~2005-05-04 20:10 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-04 16:10 (diet-)FIB alternative fib_hlist.c Robert Olsson
2005-05-04 18:39 ` Andi Kleen
2005-05-04 20:10 ` Robert Olsson [this message]
2005-05-05 12:49 ` jamal
2005-05-05 18:07 ` Andi Kleen
2005-05-05 19:54 ` Andre Tomt
2005-05-06 11:31 ` Robert Olsson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17017.11319.855946.521718@robur.slu.se \
--to=robert.olsson@data.slu.se \
--cc=Jens.Laas@data.slu.se \
--cc=ak@muc.de \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).