Skip to contentSkip to conversation

i686 SMP systems with more then 12 GB ram with 2.4.x kernel ?

DISCUSSION Daniel Freedman 2 participants 5 messages Jan 6, 2002 – Jan 7, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines · H. Peter Anvin

By author: Alan Cox <[email protected]>

Quoted 6 lines
Quoted 3 lines

2. Isn't the boundary at 2^30 really irrelevant and the three "correct" zones are (0 - 2^24-1), (2^24 - 2^32-1) and (2^32 - 2^36-1)?

Nope. The limit for directly mapped memory is 2^30.

2^30-2^27 to be exact (assuming a 3:1 split and 128MB vmalloc zone.)

-hpa

For my better understanding, where's the 128MB vmalloc zone assumption defined, please?

I'm pretty sure I understand that the 3:1 split you refer to is defined by PAGE_OFFSET in asm-i386/page.h

But when I tried to find the answer in the source for the vmalloc zone, I looked in linux/mm.h, linux/mmzone.h, linux/vmalloc.h, and mm/vmalloc.c, but couldn't find anything there or in O'Reilly's kernel book that I could follow/understand.

Thanks for any pointers.

Take care,

Daniel

Signature · 4 lines
Daniel A. Freedman
Laboratory for Atomic and Solid State Physics
Department of Physics
Cornell University
#1 lore raw

Is this what your looking for? Just below the definition of PAGE_OFFSET in page.h:

/*
* This much address space is reserved for vmalloc() and iomap()
* as well as fixmap mappings.
*/
#define __VMALLOC_RESERVE (128 << 20)

Quoted 29 lines · Daniel Freedman
Quoted 11 lines · H. Peter Anvin

By author: Alan Cox <[email protected]>

Quoted 5 lines
Quoted 3 lines

2. Isn't the boundary at 2^30 really irrelevant and the three "correct" zones are (0 - 2^24-1), (2^24 - 2^32-1) and (2^32 - 2^36-1)?

Nope. The limit for directly mapped memory is 2^30.

2^30-2^27 to be exact (assuming a 3:1 split and 128MB vmalloc zone.)

-hpa

For my better understanding, where's the 128MB vmalloc zone assumption defined, please?

I'm pretty sure I understand that the 3:1 split you refer to is defined by PAGE_OFFSET in asm-i386/page.h

But when I tried to find the answer in the source for the vmalloc zone, I looked in linux/mm.h, linux/mmzone.h, linux/vmalloc.h, and mm/vmalloc.c, but couldn't find anything there or in O'Reilly's kernel book that I could follow/understand.

Thanks for any pointers.

Take care,

Daniel

#2 lore raw
In reply to Daniel Freedman

Hi Marvin,

Thanks for the quick reply.

Quoted 8 lines · Marvin Justice

Is this what your looking for? Just below the definition of PAGE_OFFSET in page.h:

/*
* This much address space is reserved for vmalloc() and iomap()
* as well as fixmap mappings.
*/
#define __VMALLOC_RESERVE (128 << 20)

However, while it does seem to be exactly the definition for 128MB vmalloc offset that I was looking for, I don't seem to have this definition in my source tree (2.4.16):

  freedman@planck:/usr/src/linux$ grep -r __VMALLOC_RESERVE *
  freedman@planck:/usr/src/linux$ 

Any idea why this is so?

Thanks again,

Daniel

Quoted 30 lines · Daniel Freedman
Quoted 29 lines · H. Peter Anvin
Quoted 11 lines

By author: Alan Cox <[email protected]>

Quoted 5 lines
Quoted 3 lines

2. Isn't the boundary at 2^30 really irrelevant and the three "correct" zones are (0 - 2^24-1), (2^24 - 2^32-1) and (2^32 - 2^36-1)?

Nope. The limit for directly mapped memory is 2^30.

2^30-2^27 to be exact (assuming a 3:1 split and 128MB vmalloc zone.)

-hpa

For my better understanding, where's the 128MB vmalloc zone assumption defined, please?

I'm pretty sure I understand that the 3:1 split you refer to is defined by PAGE_OFFSET in asm-i386/page.h

But when I tried to find the answer in the source for the vmalloc zone, I looked in linux/mm.h, linux/mmzone.h, linux/vmalloc.h, and mm/vmalloc.c, but couldn't find anything there or in O'Reilly's kernel book that I could follow/understand.

Thanks for any pointers.

Take care,

Daniel

Signature · 4 lines
Daniel A. Freedman
Laboratory for Atomic and Solid State Physics
Department of Physics
Cornell University
#3 lore raw
In reply to Daniel Freedman
Quoted 18 lines · Daniel Freedman

Hi Marvin,

Thanks for the quick reply.

Quoted 8 lines · Marvin Justice

Is this what your looking for? Just below the definition of PAGE_OFFSET in page.h:

/*
* This much address space is reserved for vmalloc() and iomap()
* as well as fixmap mappings.
*/
#define __VMALLOC_RESERVE (128 << 20)

However, while it does seem to be exactly the definition for 128MB vmalloc offset that I was looking for, I don't seem to have this definition in my source tree (2.4.16):

Quoted 9 lines
  freedman@planck:/usr/src/linux$ grep -r __VMALLOC_RESERVE *
  freedman@planck:/usr/src/linux$

Any idea why this is so?

Thanks again,

Daniel

Hmmm. Looks like it was moved sometime between 2.4.16 and 2.4.18pre1. In my 2.4.16 tree it's located in arch/i386/kernel/setup.c and without the leading underscores.

-M

#4 lore raw
In reply to Daniel Freedman
Quoted 19 lines · Marvin Justice
Quoted 18 lines · Daniel Freedman

Hi Marvin,

Thanks for the quick reply.

Quoted 8 lines · Marvin Justice

Is this what your looking for? Just below the definition of PAGE_OFFSET in page.h:

/*
* This much address space is reserved for vmalloc() and iomap()
* as well as fixmap mappings.
*/
#define __VMALLOC_RESERVE (128 << 20)

However, while it does seem to be exactly the definition for 128MB vmalloc offset that I was looking for, I don't seem to have this definition in my source tree (2.4.16):

Quoted 8 lines
Quoted 2 lines
  freedman@planck:/usr/src/linux$ grep -r __VMALLOC_RESERVE *
  freedman@planck:/usr/src/linux$

Hmmm. Looks like it was moved sometime between 2.4.16 and 2.4.18pre1. In my 2.4.16 tree it's located in arch/i386/kernel/setup.c and without the leading underscores.

-M

<sheepishly buries head in sand> Oops... Sorry about missing that.

Thanks for the help and take care,

Daniel

Signature · 4 lines
Daniel A. Freedman
Laboratory for Atomic and Solid State Physics
Department of Physics
Cornell University