[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Memoria



On 5/21/07, Renato S. Yamane <renatoyamane@mandic.com.br> wrote:
paulobruck1 escreveu:
> Em Seg, 2007-05-21 às 11:28 -0300, Renato S. Yamane escreveu:
>> Dúvida: Qual a melhor opção a ser utilizada em máquinas que possuem
>> exatamente 1Gb de RAM?
>>
> aptitude search linux-kernel
> i   linux-image-2.6.18-4-486                              - Linux 2.6.18
> image on x86
> p   linux-image-2.6.18-4-686                              - Linux 2.6.18
> image on PPro/Celeron/PII/PIII/P4

A questão não é qual kernel utilizar, mas sim qual opção eu devo marcar
no item "Memory" na compilação do Kernel.

Se a minha máquina possui 1Gb de RAM é preferível marcar a opção "até
1Gb" e "perder" 128Mb de RAM ou marcar a opção "entre 1Gb e 4Gb" e
utilizar 1Gb de RAM?

O ganho de performance (se é que existe) na opção "até 1Gb" é tão grande
a ponto de deixarmos de usar 128Mb?

A perda de de performance é alegada pelo fato de que, sem highmem, o
sistema acessa a memória diretamente, com o highmem é criado um
endereço temporário chamado ZONE_NORMAL, que corresponde aos últimos
128MB de memória (ou seja, do 1024-128 MB em diante, geralmente ~896)

Eu pelo menos nunca vi ganhos de performance ao usar "até 1GB" tendo
1GB de memória, acredito que estes 128MB adicionais ajudaram a manter
o bom desempenho, inclusive. :)


Estes são alguns problemas do uso de highmem:

"The main danger of running on a 32 bit system with lots of highmem
(more than 8GB) is that the kernel could end up needing to allocate
more data than what fits in ZONE_NORMAL. This means the machine can
effectively run out of memory, even if there were still lots of high
memory free.

Another issue is that the system will more aggressively reclaim kernel
data structures like cached inodes, buffer heads and other caches that
can help system performance.

The third issue is that, on a 32 bit system, no process will be able
to effectively use more than 3GB of memory. This means that buying
more than 4GB of memory is only useful if none of the processes on
your system need all of the memory.

For these reasons it is recommended that if you buy a system with more
than 4GB of memory, you should consider getting a 64 bit CPU and
installing a 64 bit operating system. The price difference between 32
and 64 bit systems is practically nonexistant in 2005, and 64 bit
x86-64 systems can still run 32 bit applications, so there is no real
need to experience the pains of highmem any more..."

Fonte: Linux Memory Management Project - http://linux-mm.org/HighMemory


Só para constar, esse problema é especifico de x86.



Reply to: