If you’re here: https://github.com/torvalds/linux/blob/master/fs/ext4/file.c#L360 You have access to these two structs inside the ext4_file_mmap function: I am changing the implementation of this function for dax mode so that the page tables get entirely filled out for the file the moment you call mmap (to see how much better performance not taking any pagefaults gives us). I have managed to get
Tag: paging
Manual Virtual Address Translation
I’ve looked at a few different articles related to this already but none of them explain the solution in a way that I can understand and replicate. I need to know how to translate a physical address to a virtual address in memory based on the following: A simple virtual memory system has 32KB physical memory with 16-bit virtual address,
Linux Kernel Memory Management Paging Levels
I’m reading through the book “Understanding Linux Kernel” by Bovet and Cesati. In the second chapter, under “Paging in Linux” the author mentions how Page Middle and Upper Directories are eliminated with 32 architectures not having PAE enabled. I’m having trouble following what the author means. They have been loose in their treatment and does not make a whole lot