sparc64 pgalloc.h pgd_quicklist question

sparc64 pgalloc.h pgd_quicklist question

Post by David S. Mille » Sun, 26 May 2002 01:30:09




   Date: Fri, 24 May 2002 11:12:25 -0500

   Anyway, After looking at the SMP and UP configuration in pgalloc.h, could
   you simply remove the UP/SMP differentiation in the routines, as in my
   attachment?  It looks to me, that the struct for pgt_quicklist is built
   correctly for UP or SMP above this?  I could be wrong on this....

That would waste 3/4 of every page allocated for PGDs.

We use the pointers to keep track of which bits of the page
are allocated to PGDs.  So how about rewriting our code to
use bits in page->flags instead?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

sparc64 pgalloc.h pgd_quicklist question

Post by Russell Kin » Sun, 26 May 2002 01:40:05




>    Date: Fri, 24 May 2002 11:12:25 -0500

>    Anyway, After looking at the SMP and UP configuration in pgalloc.h, could
>    you simply remove the UP/SMP differentiation in the routines, as in my
>    attachment?  It looks to me, that the struct for pgt_quicklist is built
>    correctly for UP or SMP above this?  I could be wrong on this....

> That would waste 3/4 of every page allocated for PGDs.

> We use the pointers to keep track of which bits of the page
> are allocated to PGDs.  So how about rewriting our code to
> use bits in page->flags instead?

See arch/arm/mm/small_page.c (2.4) or arch/arm/mach-arc/small_page.c for
a sub-page allocator using page->flags.

--

             http://www.arm.linux.org.uk/personal/aboutme.html

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. sparc64 pgalloc.h pgd_quicklist question

Russell,

I meant to ask this a little bit back, while I was looking through this
code.  In the 2.5 iteration you have for small_page.c your using the
next_hash and pprev_hash entries, which no longer are available in the
struct page, as far as I have looked, unless your struct page is defined
elsewhere, other than linux/mm.h?  Just wondering, as I pull apart the mm
code in what time I have looking at this.

Thanks
Bruce H.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Tape Labeling Software

3. FW: sparc64 pgalloc.h pgd_quicklist question

4. OS/2 TCPIP-NFS and Linux

5. Some Questions for Sparc64 and Solaris 7/8

6. SCO bash command (DATE) "yesturday"

7. Linux kernel 2.2.13 and Sparc64

8. xset led control (ChangeKeyboardControl) broken in Xfree 3.1.2?

9. Sparc64 can't boot w/linux 2.5 current

10. Sparc64 Swan Song

11. [2.5][10/14] smp_call_function_on_cpu - sparc64

12. OpenBSD 3.0 and Sun Blade 100 (sparc64)

13. Compile of 2.4.10-ac12 dies on sparc64