Re: How to alloc highmem page below 4GB on i386?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Pierre Ossman <drzeus-list@...>
Cc: LKML <linux-kernel@...>, <linux-mm@...>
Date: Friday, July 4, 2008 - 4:37 pm

On Fri, 4 Jul 2008 22:23:23 +0200
Pierre Ossman <drzeus-list@drzeus.cx> wrote:


actually your impression is not correct. There's a difference between
how many physical bits the bus has, and the logical data. Specifically,
PCI (and PCIE etc) have something that's called "Dual Address Cycle",
which is a pci bus transaction that sends the 64 bit address using 2
cycles on the bus even if the buswidth is 32 bit (logically).



4Gb systems are entirely reasonably still with 32 bit kernels (I'm
typing on one right now ;-); it gets problematic in the 12-16Gb range.


ok this is tricky and goes way deep into buddy allocator internals.
On the highest level (2Mb chunks iirc, but it could be a bit or
two bigger now) we allocate top down. But once we split such a top level
chunk up, inside the chunk we allocate bottom up (so that the scatter
gather IOs tend to group nicer). 
In addition, the kernel will prefer allocating userspace/pagecache
memory from highmem over lowmem, out of an effort to keep memory
pressure in the lowmem zones lower.



-- 
If you want to reach me at my work email, use arjan@linux.intel.com
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to alloc highmem page below 4GB on i386?, Pierre Ossman, (Mon Jun 30, 2:03 pm)
Re: How to alloc highmem page below 4GB on i386?, Pierre Ossman, (Fri Jul 4, 1:58 pm)
Re: How to alloc highmem page below 4GB on i386?, Arjan van de Ven, (Fri Jul 4, 2:12 pm)
Re: How to alloc highmem page below 4GB on i386?, Pierre Ossman, (Fri Jul 4, 4:23 pm)
Re: How to alloc highmem page below 4GB on i386?, Arjan van de Ven, (Fri Jul 4, 4:37 pm)
Re: How to alloc highmem page below 4GB on i386?, Pierre Ossman, (Fri Jul 4, 6:02 pm)
Re: How to alloc highmem page below 4GB on i386?, Arjan van de Ven, (Fri Jul 4, 6:24 pm)