Skip to main content

Questions tagged [virtual-memory]

Questions about techniques for providing the appearance of an isolated, contiguous address space to each process. The size of the address spaces may be made to appear larger than the size of main memory by moving pages or segments between main memory and a larger backing store.

3 votes
3 answers
950 views

Is kernel memory mapped once or repeatedly for each spawned process

In virtually every picture of the memory layout of a running process there is a segment reserved for kernel memory e.g. https://unix.stackexchange.com/questions/31407/how-does-forking-affect-a-...
PinkFlamingos's user avatar
1 vote
1 answer
67 views

In OS is it possible for 2 processes to share the entire physical memory image of a process- including code, data, heap & stack -not just parts of it?

I came across a question that asked: “Can two running processes share the complete process image in physical memory (not just parts of it)?” At first, I thought the answer was No, since each process ...
Aman's user avatar
  • 11
3 votes
0 answers
49 views

How does GPU page table and TLB management differ from CPUs?

While reading the paper "Fine-grain Quantitative Analysis of Demand Paging in Unified Virtual Memory", I came across the following statements: It says: GPU page table updates and TLB ...
kdh's user avatar
  • 31
0 votes
0 answers
36 views

I cant understand memory references in memory trace of valgrind with lackey

i am executing this command on terminal valgrind --tool=lackey --trace-mem=yes ls 2> trace.txt looking at some of the memory trace ...
Leo's user avatar
  • 1
0 votes
0 answers
84 views

Spatial locality and virtual vs physical memory

I want to make sure that I correctly understand spatial locality & how it relates to hardware with an example: Assume that we have two objects in memory in a program running on a modern 64-bit ...
greenlagoon's user avatar
0 votes
0 answers
45 views

What is the physical address for a given logical address?

What is the physical address for logical address 23? I am not really sure how to solve this? I mean how do I access logical address 23 when all I can see is between 0 to 3?
Need_MathHelp's user avatar
0 votes
1 answer
115 views

Is this David Patterson 'Computer Architecture A Quantitative Approach' scheme right?

My guess is that L1 cache tag is also 28 bits as the L1 tag compare adress. Another question is why the offset is going to CPU? And the last one What other improvements and errors does this memory ...
HaitianSpaceman's user avatar
1 vote
1 answer
77 views

Are they talking about virtual memory in this article?

I am reading this Wikipedia article: https://en.wikipedia.org/wiki/Memory_segmentation And I am in this paragraph: Segmentation with paging Instead of a memory location, the segment information ...
user394334's user avatar
1 vote
0 answers
83 views

Who and how generate the virtual/logical addresses? Confusion if it's the compiler, the linker, the loader

I know that when I compile a program and then I inspect with objdump, I have addresses. These are relative addresses. But if it's a C program and I printf with <...
Allexj's user avatar
  • 111
1 vote
0 answers
74 views

How does virtualization handle modern TLBs?

In an answer to this question: For instance, modern Intel TLBs have a process context ID (PCID); each TLB entry is tagged with the PCID of the process that the page mapping is for, and the processor ...
whoisit's user avatar
  • 165
1 vote
1 answer
139 views

Do I need a multilevel page table in the following design?

I am practicing paging in virtual memory and came across a question with the following details 44-bit address space 16KB page size 16 Bytes Page table entry (PTE) If I understand paging correctly ...
kate's user avatar
  • 13
0 votes
1 answer
75 views

Cache Miss in First Private Cache but Hit in Shared LEvel 2 Cache: Does it Result in a Penalty?

In the context of Shared Memory Multiprocessor (SMP) systems with different cache levels, if a cache miss occurs in the first private cache but is followed by a hit in the second shared cache, would ...
First_1st's user avatar
1 vote
1 answer
318 views

Can a MMU be emulated entirely in software?

I'm curious about the viability of creating memory isolated processes on a processor without an MMU. While it would be inefficient I'm wondering if it's possible to basically create a virtual machine ...
FourierFlux's user avatar
2 votes
1 answer
285 views

What is the reason or motivation for having 128-bit pointers?

I read here that the reason that intptr_t and uintptr_t are optional in C is because there might be a platform where pointers ...
CPlus's user avatar
  • 209
0 votes
3 answers
163 views

Page fault, virtual memory

I am reading the book: Digital Design and Computer Architecture: ARM Edition I am on the chapter about virtual memory. I am wondering, when a page fault occurs, is it the processor or the OS that &...
user394334's user avatar

15 30 50 per page
1
2 3 4 5
12