From: Jack Steiner <steiner@sgi.com>
To: Pekka Enberg <penberg@cs.helsinki.fi>
Cc: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] - Allocate larger cache_cache if order 0 fails
Date: Tue, 7 Mar 2006 14:58:01 -0600 [thread overview]
Message-ID: <20060307205801.GA12136@sgi.com> (raw)
In-Reply-To: <84144f020603071136m21782038n8951c801627ae867@mail.gmail.com>
On Tue, Mar 07, 2006 at 09:36:04PM +0200, Pekka Enberg wrote:
> Hi Jack,
>
> On 3/7/06, Jack Steiner <steiner@sgi.com> wrote:
> > - cache_estimate(0, cache_cache.buffer_size, cache_line_size(), 0,
> > - &left_over, &cache_cache.num);
> > + for (order = 0; order < MAX_ORDER; order++) {
> > + cache_estimate(order, cache_cache.buffer_size, cache_line_size(), 0,
> > + &left_over, &cache_cache.num);
> > + if (cache_cache.num)
> > + break;
> > + }
>
> Any reason why you can't use calculate_slab_order() here?
>
> Pekka
I think either will work & the amount of code is about the same.
I chose the above because it was easier to see that change had no effect
on existing platforms.
Does anyone see a compelling reason for a different but equivalent implementation??
---
Jack
next prev parent reply other threads:[~2006-03-07 20:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-07 15:48 [PATCH] - Allocate larger cache_cache if order 0 fails Jack Steiner
2006-03-07 19:36 ` Pekka Enberg
2006-03-07 20:58 ` Jack Steiner [this message]
2006-03-08 7:10 ` Pekka J Enberg
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=20060307205801.GA12136@sgi.com \
--to=steiner@sgi.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
/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