From: "David S. Miller" <davem@davemloft.net>
To: dada1@cosmosbay.com
Cc: netdev@vger.kernel.org, linux-net@vger.kernel.org,
herbert@gondor.apana.org.au
Subject: Re: [PATCH] bugfix and scalability changes in net/ipv4/route.c
Date: Tue, 28 Jun 2005 13:14:32 -0700 (PDT) [thread overview]
Message-ID: <20050628.131432.13759019.davem@davemloft.net> (raw)
In-Reply-To: <42BBE72B.5010501@cosmosbay.com>
From: Eric Dumazet <dada1@cosmosbay.com>
Date: Fri, 24 Jun 2005 12:57:47 +0200
> reminder of the bugfix :
>
> The rt_check_expire() has a serious problem on machines with large
> route caches, and a standard HZ value of 1000.
>
> With default values, ie ip_rt_gc_interval = 60*HZ = 60000 ;
>
> the loop count :
>
> for (t = ip_rt_gc_interval << rt_hash_log; t >= 0;
>
>
> overflows (t is a 31 bit value) as soon rt_hash_log is >= 16 (65536
> slots in route cache hash table).
>
> In this case, rt_check_expire() does nothing at all
I'd like this bug fix as a seperate patch.
Also, coding style problems in the spinlock part of the patch:
+ static spinlock_t *rt_hash_locks;
That's a file static variable, no need to tab it at all.
+ if (*rthp == 0) continue ;
Please put the continue on a seperate line, properly
tabbed, and without a space between the continue and the
closing semicolon.
Please scan the rest of your patch for problems like this.
So, again please submit a seperate patch for the overflow
bug, then one for the locking changes, so they may be evaluated
and applied seperately.
Thanks a lot.
next prev parent reply other threads:[~2005-06-28 20:14 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.62.0506231953260.28244@graphe.net>
2005-06-24 3:36 ` [PATCH] dst_entry structure use,lastuse and refcnt abstraction David S. Miller
2005-06-24 3:40 ` Christoph Lameter
2005-06-24 3:47 ` David S. Miller
2005-06-24 3:49 ` Christoph Lameter
2005-06-24 3:54 ` David S. Miller
2005-06-24 4:06 ` Christoph Lameter
2005-06-24 4:11 ` David S. Miller
2005-06-24 6:03 ` Christoph Lameter
2005-06-24 6:16 ` David S. Miller
2005-06-24 10:57 ` [PATCH] bugfix and scalability changes in net/ipv4/route.c Eric Dumazet
2005-06-28 20:14 ` David S. Miller [this message]
[not found] ` <Pine.LNX.4.62.0506232005030.28244@graphe.net>
2005-06-24 4:58 ` [PATCH] dst numa: Avoid dst counter cacheline bouncing Dipankar Sarma
2005-06-24 5:05 ` Christoph Lameter
2005-06-24 7:29 ` Dipankar Sarma
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=20050628.131432.13759019.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=dada1@cosmosbay.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-net@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/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).