[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <0100016a02d5038e-2e436033-7726-4d2a-b29d-d3dbc4c66637-000000@email.amazonses.com>
Date: Tue, 9 Apr 2019 16:01:15 +0000
From: Christopher Lameter <cl@...ux.com>
To: Pankaj Suryawanshi <pankaj.suryawanshi@...fochips.com>
cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-mm@...ck.org" <linux-mm@...ck.org>
Subject: Re: Basics : Memory Configuration
On Tue, 9 Apr 2019, Pankaj Suryawanshi wrote:
> I am confuse about memory configuration and I have below questions
Hmmm... Yes some of the terminology that you use is a bit confusing.
> 1. if 32-bit os maximum virtual address is 4GB, When i have 4 gb of ram
> for 32-bit os, What about the virtual memory size ? is it required
> virtual memory(disk space) or we can directly use physical memory ?
The virtual memory size is the maximum virtual size of a single process.
Multiple processes can run and each can use different amounts of physical
memory. So both are actually independent.
The size of the virtual memory space per process is configurable on x86 32
bit (2G, 3G, 4G). Thus the possible virtual process size may vary
depending on the hardware architecture and the configuration of the
kernel.
> 2. In 32-bit os 12 bits are offset because page size=4k i.e 2^12 and
> 2^20 for page addresses
> What about 64-bit os, What is offset size ? What is page size ? How it calculated.
12 bits are passed through? Thats what you mean?
The remainder of the bits are used to lookup the physical frame
number(PFN) in the page tables.
64 bit is the same. However, the number of bits used for lookups in the
page tables are much higher.
> 3. What is PAE? If enabled how to decide size of PAE, what is maximum
> and minimum size of extended memory.
PAE increases the physical memory size that can be addressed through a
page table lookup. The number of bits that can be specified in the PFN is
increased and thus more than 4GB of physical memory can be used by the
operating system. However, the virtual memory size stays the same and an
individual process still cannot use more memory.
Powered by blists - more mailing lists