allocate more than 2 GB on IA32
Hello,
i would like to allocate more than 2 GB of memory on an IA32 architecture.
The machine is a dual XEON_DP with 3 GB of Ram and 4 GB of swap space.
I have tried with the default SUSE 8.1 kernel as well as with a 2.4.20-pre4aa1 Kernel compile by my own using these Options:
CONFIG_HIGHMEM4G=yCONFIG_HIGHMEM=yCONFIG_1GB=y
but I am only able to allocate 2 GB with a single malloc call. I tought it should be possible to allocate up to 2.9 GB of memory to a process, with this kernel settings.
Thank You for any help
Hartmut Manz
Signature · 7 lines
----------------------------------------------------------------------------- Hartmut Manz WWW: http://www.intes.de INTES GmbH Phone: +49-711-78499-29 Schulze-Delitzsch-Str. 16 Fax: +49-711-78499-10 D-70565 Stuttgart E-mail: [email protected] Ein Mensch sieht, was vor Augen ist; der Herr aber sieht das Herz an. ------------------------------------------------------- 1. Samuel 16, 7 -----
Quoted 3 lines · Hartmut Manz
but I am only able to allocate 2 GB with a single malloc call. I tought it should be possible to allocate up to 2.9 GB of memory to a process, with this kernel settings.
have you tried your own anonymous mmap() with start set to getpagesize() ?
Signature · 3 lines
// Gianni Tedesco (gianni at scaramanga dot co dot uk) lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import 8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D
Quoted 2 lines
I tought it should be possible to allocate up to 2.9 GB of memory to a process, with this kernel settings.
Obviously, No.
Unfortunatly kernel do not use segments (fully). So even you have HIMEM at the kernel it's not possible to user program to address more than 4 gb a ram at the same time. And as far as i know program can not have more than 1 gm of usable readwrite memory.
THe only way for u is to use 64 bit architecture... or remap default address range splitting increase address range for pgrogram data (it's require to recompile all programs).
Agri
Quoted 36 lines · On Tue, 11 Feb 2003 10:15:54 +0100 Hartmut Manz <[email protected]> wrote:
Hello,
i would like to allocate more than 2 GB of memory on an IA32 architecture.
The machine is a dual
XEON_DPwith 3 GB of Ram and 4 GB of swap space.I have tried with the default SUSE 8.1 kernel as well as with a 2.4.20-pre4aa1 Kernel compile by my own using these Options:
CONFIG_HIGHMEM4G=yCONFIG_HIGHMEM=yCONFIG_1GB=ybut I am only able to allocate 2 GB with a single malloc call. I tought it should be possible to allocate up to 2.9 GB of memory to a process, with this kernel settings.
Thank You for any help
Hartmut Manz
Signature · 13 lines
----------------------------------------------------------------------------- Hartmut Manz WWW: http://www.intes.de INTES GmbH Phone: +49-711-78499-29 Schulze-Delitzsch-Str. 16 Fax: +49-711-78499-10 D-70565 Stuttgart E-mail: [email protected] Ein Mensch sieht, was vor Augen ist; der Herr aber sieht das Herz an. ------------------------------------------------------- 1. Samuel 16, 7 ----- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Quoted 7 lines
i would like to allocate more than 2 GB of memory on an IA32 architecture.
The machine is a dual
XEON_DPwith 3 GB of Ram and 4 GB of swap space.I have tried with the default SUSE 8.1 kernel as well as with a 2.4.20-pre4aa1 Kernel compile by my own using these Options:
Quoted 7 lines
CONFIG_HIGHMEM4G=yCONFIG_HIGHMEM=yCONFIG_1GB=ybut I am only able to allocate 2 GB with a single malloc call. I tought it should be possible to allocate up to 2.9 GB of memory to a process, with this kernel settings.
Well, assuming you had no user-space code or data, or a stack, or any shared libraries to fit into that space as well ;-)
Try shifting TASK_UNMAPPED_BASE down from 1GB to 0.5GB - that should give you some more breathing room, though you'll never get to 2.9GB.
M.
Quoted 16 lines · Martin J. Bligh
Quoted 8 lines
i would like to allocate more than 2 GB of memory on an IA32 architecture.
The machine is a dual
XEON_DPwith 3 GB of Ram and 4 GB of swap space.I have tried with the default SUSE 8.1 kernel as well as with a 2.4.20-pre4aa1 Kernel compile by my own using these Options:
Quoted 7 lines
CONFIG_HIGHMEM4G=yCONFIG_HIGHMEM=yCONFIG_1GB=ybut I am only able to allocate 2 GB with a single malloc call. I tought it should be possible to allocate up to 2.9 GB of memory to a process, with this kernel settings.
Quoted 7 lines
Well, assuming you had no user-space code or data, or a stack, or any shared libraries to fit into that space as well ;-)
Try shifting
TASK_UNMAPPED_BASEdown from 1GB to 0.5GB - that should give you some more breathing room, though you'll never get to 2.9GB.M.
First of all I would like to say THANK YOU for your help.
I am now able to allocate up to ~3.2 GB of memory on a 4 GB Machine, even with shared libraries.
This is what I have done.
1. I have activated the kernel option in Kernel 2.4.21pre4aa3 CONFIG_05GB=y
This gives the following:
a: TASK_UNMAPPED_BASE is now 0xe000000 wich is 224 MB
b: Upper Limit for User-Space memory is now at 3.5 GB
So I have the potential to allocated up to 3360 MB of memory
2. I have exchanged malloc with anonymous mmap, since malloc was still only able to allocate about 2 GB.
Signature · 7 lines
----------------------------------------------------------------------------- Hartmut Manz WWW: http://www.intes.de INTES GmbH Phone: +49-711-78499-29 Schulze-Delitzsch-Str. 16 Fax: +49-711-78499-10 D-70565 Stuttgart E-mail: [email protected] Ein Mensch sieht, was vor Augen ist; der Herr aber sieht das Herz an. ------------------------------------------------------- 1. Samuel 16, 7 -----