On Sat, Dec 01, 2007 at 02:08:31PM +0100, Eric Dumazet wrote: > > I agree adding yet another atomics ops is a big problem. > > Another idea, coupled with recent work on percpu storage done by Christoph > Lameter, would be to use kind of a percpu_counter :
Yes that's an interesting idea. > We dont really need strong and precise memory accounting (UDP , but TCP as > well), just some kind of limit to avoid memory to be too much used. BTW it's no big deal for TCP because it's completely serialised so it doesn't use atomic ops for the accounting. More importantly, it uses sk_forward_alloc so not every packet needs to touch the global counter. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html