2008/6/24 Alex <[EMAIL PROTECTED]>:

> >
> >
> >
> > então o que eu estou falando que um processador de 32 bits consegue no
> > maximo acessar 4GB de memória.
> > quanto é 4.294.967.296 ????
> > 4GB
>
>
> Consegu usar, mas não fica disponível todos os 4 GB para usar alocar no SO
> Uma fonte interessante:
> http://www.microsoft.com/whdc/system/platform/server/PAE/pae_os.mspx
>
> "Given the method with which PCI addresses memory beyond 32 bits, there is
> a
> failure mode that is subtle. Any I/O range that "spans" across two 4-GB
> regions must be treated specially. If not, the address range will be
> correctly decoded for only one part of the transfer and the remaining part
> will be transposed to an incorrect memory location. This will corrupt
> memory
> and will crash the system, crash the application, or silently corrupt data
> at that location. Applications cannot prevent this because they are only
> presented virtual addresses and have no visibility to the physical level.
> All operating systems that use PAE face this problem, but some do not
> explicitly prevent this from occurring and instead depend on the device
> driver to take the correct actions."
>
> "As the physical memory increases, the relative amount of I/O addresses
> beyond 32 bits also increases in relation to those addresses below 32 bits.
> In most cases, the operating system transparently provides double
> buffering,
> although some Unix variants do not provide any assistance in this function
> and require any 32-bit devices and drivers to manage their own double
> buffering routines and allocations."
>
> Com "PAE" ativo seriam então 36 bits... ou seja tem a limitação da
> plataforma 32bits como um todo, no máximo tu vai conseguir 3,72 GB
> kernel/user space (creio eu).


Vou repetir mais uma vez:

32 bits: até 4GiB (espaço de endereçamento físico) - é claro que há
sobreposições com alguns hardwares e i/o mapeado em memória (e.g. PCI como
acima), em especial vídeo.

64 bits: até 1TiB (espaço de endereçamento físico) - com as mesmas
sobreposições. Note que o espaço de endereçamento linear é 2^64, enquanto
que o físico é 2^40 (A AMD tá anunciando processadores com mais bits de
endereçamento, mas até agora nada).

Quer mais de 4GiB em 32 bits: recompila o kernel para ele utilizar +4 bits
de endereçamento - isso é da plataforma, não tem nada a ver com o SO em si,
se limitação ou outra coisa. A opção do kernel é CONFIG_HIGHMEM64G

Favor leiam o material que eu já coloquei o link no outro e-mail: um é da
Intel sobre a arquitetura e o outro é da IBM sobre o Kernel Linux. Não há
fonte mais segura.

Se você colocou 4G e não está aparecendo (free -m) é porque o free ou já
está desconsiderando as sobreposições ou porque você está com algum problema
no hardware (em geral te venderam gato por lebre).

E fechem esta thread pelo amor de Deus.

André Cavalcante
-- 
Interessado em aprender mais sobre o Ubuntu em português?
http://wiki.ubuntu-br.org/ComeceAqui  -
ubuntu-br mailing list
ubuntu-br@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-br

Responder a