page-fault Questions

3

Solved

I was wondering what differences and relations are between segmentation fault and page fault? Does segmentation fault only belong to segmented memory model? Does page fault only belong to paged ...

1

Solved

I'm trying to learn about memory and page fault, so I wrote the code below to check my understanding. I don't understand why calling malloc caused MINFL to increase since malloc() shouldn't affect ...
Pinot asked 27/3, 2021 at 5:41

5

Solved

So Belady's Anomaly states that when using a FIFO page replacement policy, when adding more page space we'll have more page faults. My intuition says that we should less or at most, the same numbe...
Decennary asked 26/1, 2011 at 0:12

5

Solved

I'm a C++ developer and I'm wondering what may cause Page Fault at the C++ level. I've read some articles about Page Fault and I think fork() and malloc/new can cause Page Fault. Are there other ...
Priming asked 28/11, 2019 at 12:5

2

I'm a bit confused about what happens when we're in user-mode and a page fault occurs. IIRC, a page fault will be generated when the TLB is attempting to map my (user-space) virtual address into ...
Inviolable asked 3/5, 2019 at 4:12

3

When a page table entry(PTE) is not marked as valid, it means the data needed is not in memory, but on the disk. So now page fault happens and the OS is responsible to load this page of data from t...
Tirado asked 20/12, 2014 at 11:40

2

Solved

I am thinking about 'Minimizing page faults (and TLB faults) while “walking” a large graph' 'How to know whether a pointer is in physical memory or it will trigger a Page Fault?' is a related ques...
Khotan asked 7/9, 2018 at 11:25

3

Problem (think of the mark phase of a GC) I have a graph of “objects” that I need to walk, visiting all objects. I can store in each object if it has been visited. All the objects are stored in m...
Checani asked 7/9, 2018 at 11:13

2

When we malloc memory, only virtual memory is available, and it actually pointed to zero-page. The real physical memory will be allocated when we try to write to the malloced memory, at this moment...
Adenosine asked 7/7, 2017 at 10:27

2

Solved

So calloc() works by asking the OS for some virtual memory. The OS is working in cahoots with the MMU, and cleverly responds with a virtual memory address which actually maps to a copy-on-write, re...

1

Solved

I'm trying to download Xcode (onto version El Capitan) and it seems to be stuck. When I run 'top', I see a process called 'storedownloadd' and the "STATE" column is alternating between sleeping, st...
Rawlins asked 10/5, 2016 at 16:52

3

Solved

I get this occasionally when exiting my app - my app is running the EXE over a network. I understand it's a page fault when part of the EXE is loaded on demand. I have also observed it in the OnDr...
Hendren asked 1/8, 2011 at 22:49

3

I use sigaction to handle page fault exception, and the handler function is defind like this: void sigaction_handler(int signum, siginfo_t *info, void *_context) So it's easy to get page fault a...
Fracture asked 16/7, 2013 at 8:43

4

I am trying to study for an exam..and I found this example but can't understand how they got the answer. Can anyone explain it please? Question: Consider the two-dimensional array A: int A[][]...
Beanstalk asked 12/4, 2013 at 1:22

3

Solved

I am comparing a few system calls where I read/write from/to memory. Is there any API defined to measure page faults (pages in/out) in C ? I found this library libperfstat.a but it is for AIX, I c...
Oviparous asked 25/4, 2014 at 20:49

1

I experience one weird problem. I use Delphi and Indy to upload and backup some files. It runs just fine on many computers (Win7 64bit, WinXP) . CPU usage is less then 1% and max. 20MB in RAM. Bu...
Epiboly asked 5/2, 2014 at 17:54

2

Solved

If the answer to the question is NO, why is it not a good idea to do this? Can the kernel not handle and fix page faults that occur in kernel mode? Does the answer change if the code that uses page...

2

Does anyone know how to get the memory accesses (pointers) that cause page faults? I'm interested mostly in the major page faults. A bit of background about what I'm trying to achieve. I have an a...
Agnew asked 25/3, 2013 at 17:39

2

Solved

In Linux, when process asks for some (virtual) memory from system, it just registered in vma (descriptor of process's virtual memory) but physical page for every virtual is not reserved at time of ...
Danieldaniela asked 19/12, 2012 at 7:26

2

Solved

I need to make the process to run in real time as much as possible. All the communication is done via shared memory - memory mapped files - no system calls at all - it uses busy waiting on shared ...
Pren asked 2/12, 2012 at 15:59

2

Solved

I recently encountered an issue in a custom Linux kernel (2.6.31.5, x86) driver where copy_to_user would periodically not copy any bytes to user space. It would return the count of bytes passed to ...

1

Solved

My question is Linux specific and needs understanding of kernel, virtual memory, mmap, pagefaults. I have C program with large static arrays, which will go into bss section (memory, initialized to ...
Boxboard asked 24/8, 2012 at 19:19

1

Solved

I am implementing cp(file copy) command using mmap(). For that I mapped the source file in MAP_PRIVATE (As I just want to read)mode and destination file in MAP_SHARED mode(As I have to writeback th...
Ferrule asked 21/6, 2012 at 6:18

1

Solved

I am wondering where is the major page fault handler. I wrote an algorithm to minimize page faults in the kernel. So I need to record something whenever a page fault happens. I currently record a ...
Admittance asked 4/5, 2012 at 1:4

1

I'm profiling a C# .NET WinForms application and i have noticed that it generates millions of soft page faults and keep increasing during the work ... I know that in .NET the number of pages fault...
Belinda asked 25/11, 2011 at 23:3

© 2022 - 2024 — McMap. All rights reserved.