All of lore.kernel.org
 help / color / mirror / Atom feed
* [parisc-linux] BTLBs usable as HUGHTLBs ?
@ 2004-10-31 14:04 Helge Deller
  2004-10-31 17:33 ` Grant Grundler
  0 siblings, 1 reply; 2+ messages in thread
From: Helge Deller @ 2004-10-31 14:04 UTC (permalink / raw)
  To: parisc-linux

Maybe a stupid question from someone not knowledgeable of memory-stuff on Linux...

Since HPPA offers Block-TLBs (BTLBs), couldn't those be used comparable/wrapped as so-called HUGHTLBs (CONFIG_HUGETLBFS) as available on i386/ia64 ?

from /proc/cpuinfo on my 715/64:
BTLB fixed      : max. 16384 pages, pagesize=4096 (64MB)
BTLB fix-entr.  : 0 instruction, 0 data (8 combined)		<--- 8
BTLB var-entr.  : 0 instruction, 0 data (0 combined)

Helge
_______________________________________________
parisc-linux mailing list
parisc-linux@lists.parisc-linux.org
http://lists.parisc-linux.org/mailman/listinfo/parisc-linux

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [parisc-linux] BTLBs usable as HUGHTLBs ?
  2004-10-31 14:04 [parisc-linux] BTLBs usable as HUGHTLBs ? Helge Deller
@ 2004-10-31 17:33 ` Grant Grundler
  0 siblings, 0 replies; 2+ messages in thread
From: Grant Grundler @ 2004-10-31 17:33 UTC (permalink / raw)
  To: Helge Deller; +Cc: parisc-linux

On Sun, Oct 31, 2004 at 03:04:30PM +0100, Helge Deller wrote:
> Since HPPA offers Block-TLBs (BTLBs), couldn't those be used
> comparable/wrapped as so-called HUGHTLBs (CONFIG_HUGETLBFS)
> as available on i386/ia64 ?

I think so. But here is one caveat.
IIRC, PDC calls are required to program the BTLB entries. If that's
correct, then they will be SLOW.  On A500, each PCI Cfg write took
20ms when using PAT PDC vs 4us when using direct access. YMMV depending
on platform and how PDC is stored/loaded on that platform. My advice
is to measure some simple PDC call by reading cr16  before/after
the call. Then do the math to see if it's worth it.

AFAIK, BTLB was only intended for things like GFX buffers,
kernel data/text, and similarly long lived mappings.
Is HugeTLBFS generally used that way?

> from /proc/cpuinfo on my 715/64:
> BTLB fixed      : max. 16384 pages, pagesize=4096 (64MB)
> BTLB fix-entr.  : 0 instruction, 0 data (8 combined)		<--- 8

8*64MB == 512MB
That's not as bad as I thought for a PA1.1 machine.
IIRC, first generation BTLB only has 2 entries.

hth,
grant

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-31 17:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-31 14:04 [parisc-linux] BTLBs usable as HUGHTLBs ? Helge Deller
2004-10-31 17:33 ` Grant Grundler

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.