Re: Le saviez-vous ?

Pàgina inicial

Reply to this message
Autor: Charles Walmsley
Data:  
A: Guillaume Allègre, guilde
Assumpte: Re: Le saviez-vous ?
Guillaume Allègre wrote:

>Précisions après 2 mails reçus :
>le style devinette du sujet est trompeur, je me pose vraiment la
>question, et je n'ai pas la réponse.
>
>La source de mes interrogations : j'ai cherché hier pourquoi une
>machine de calcul avec 2 Go de mémoire n'en voyait que 960 Mo.
>
>Réponse dans l'aide de compilation du noyau (2.4.24) :
>( cd /usr/src/linux-2.4.24/ ; make menuconfig... )
>Menu :
>  Processor type and features  --->  
>    High Memory Support    ---> Help

>
>CONFIG_NOHIGHMEM:
> Linux can use up to 64 Gigabytes of physical memory on x86 systems. 
> However, the address space of 32-bit x86 processors is only 4
> Gigabytes large. That means that, if you have a large amount of
> physical memory, not all of it can be "permanently mapped" by the 
> kernel. The physical memory that's not permanently mapped is called 
> "high memory".           

>
> If you are compiling a kernel which will never run on a machine with
> more than 960 megabytes of total physical RAM, answer "off" here (default
> choice and suitable for most users). This will result in a "3GB/1GB"
> split: 3GB are mapped so that each process sees a 3GB virtual memory
> space and the remaining part of the 4GB virtual memory space is used
> by the kernel to permanently map as much physical memory as possible.
>
> If the machine has between 1 and 4 Gigabytes physical RAM, then
> answer "4GB" here.
>
> If more than 4 Gigabytes is used then answer "64GB" here. This
> selection turns Intel PAE (Physical Address Extension) mode on.               
>[...] (si vous voulez voir la suite, regardez par vous même).

>
>
>Le 2e paragraphe ressemble à une explication sur "pourquoi limiter à 960
>Mo / 1 Go", mais je ne la comprends pas.
>
>
>
>

Bien, mais moi je n'ai pas expliqué la raison pour ma curiosité non
plus. J'ai l'idée que toute la mémoire n'est pas "vue" du kernel. (vue
du kernel ou reconnue par le kernel). Pour l'heure, j'ai rajouté
"mem=512M" sur la ligne "append" pour ce kernel en lilo.conf. Il faut
noter que le kernel est tout neuf, Mandrake 2.4.22-28.
Si l'on veut me passer des idées ou les indications, j'aimerais bien.
En matière de Linux, je suis comme mon kernel - je fais mes premiers pas.
Salutations