237 views
1 votes
1 votes
If Page size = Frame size is always true

and offset in Logical address = offset in physical address holds

Then how/why Logical address size can come different than physical address size?

1 Answer

Best answer
6 votes
6 votes

Logical address is the amount of memory every process assumes to have. Its not true that the entire memory is available to the processes everytime. Its logical to assume that all processes have the same amount of memory. Lets say we have system with 4GB RAM. Every process in the system assumes that it has 4 GB space.
Its is worth noting that 

  •  $Programmer's$ $View$ : Thinks just like the process and doesn't have to care about the amount of memory available to execute a program.So the programmer can complete focus on his logics.
     
  • $Processor's$ $View$ : It sees the processes and its pages .It is bound to generate a virtual address which is mapped to physical by MMU. There is a very common misconception that the processor generates Main Memory address. Infact it cannot generate any address as its a dumb hardware. It executes instructions which provides the virtual to  physical translation by MMU.
     
  • $Process'$ $View$: In a system with 4GB it is almost never possible that each process can consume 4GB of space that it assumes to have. This is because that much memory isn't even physically available.

    Lets consider we have 64-bit system with those 4 gigs of RAM.
    Every process will assume that it can consume  264 B of storage.Although a very large portion of it remains unused.That is why the stack and heap portions of a process' memory map is kept to be floating and has no fixed boundary.

    U can learn more on these from HPCA 4 .
     
selected by

Related questions

379
views
2 answers
0 votes
Unique_999 asked Aug 17, 2023
379 views
Can Any explain the relationship between The “ Word Size “ and “ Logical Address Space “
1.8k
views
3 answers
1 votes
Hirak asked Jun 13, 2019
1,770 views
I have read that paging does not suffer from external fragmentation as the frames and the pages are all of the equal sizes, but when we store a last ... , right? So why is it said that paging does not have external fragmentation?
1.2k
views
1 answers
2 votes
3lurryface asked Jan 9, 2019
1,159 views
If there is 2 or more level paging for processes, is it possible to have more than 1 page fault while accessing any single addressable unit(byte or word) ?
1.4k
views
1 answers
0 votes
Markzuck asked Dec 22, 2018
1,435 views
for memory overhead in Multi level paging, for innermost table only 1 page size shall be counted na? and NOT the complete page table size?please explain the concept, thanks!