Re: please revert bogus patch to vmscan.c

Victor Yodaiken
2001-10-30T22:41:44Z

On Wed, Oct 31, 2001 at 08:39:48AM +1100, Paul Mackerras wrote:
> Victor Yodaiken writes:
>
> > You can't turn off hardware hash-chains on anything past 603, sadly enough.
> > So all Macs, many embedded boards, ...
>
> All the 4xx, 8xx, and 82xx embedded PPC cpus use software TLB
> loading. The 7450 has a mode bit to say whether to use a hash table
> or software TLB loading. And the new "Book E" specification also
> mandates software-loaded TLBs.
>
> That still leaves almost all of the current Macs and RS/6000s using a
> hash table, of course. It does sound like providing at least the
> option to use software TLB loading is becoming common in new PPC
> designs.

But, as I understand it, not in PPC64 or in the mainline PC series.

What's really cool about the hashtable design is that each bucket will
have at most one useful piece of information but still fill an entire
cache line.

> (And BTW they are not hash *chains*, there is no chaining involved.
> There is a primary bucket and a secondary bucket for any given
> address, each of which can hold 8 ptes.)

Which are almost certain to be unrelated, so two consecutive TLB misses
will almost certainly require two fetches from main memory.
And, reusing a context requires a scrub of the hash table ..
Once you start down this slope, all sorts ofother disadvantages appear
for free.

>
> Paul.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/