Page table size is determined by multiplying number of pages with page table entry size and why not by multiplying with number of pages with page size
why page table size is not determined not by multiplying with number of pages with page size?
98 Views Asked by BadBoy At
1
There are 1 best solutions below
Related Questions in MEMORY-MANAGEMENT
- Polars with Rust: Out of Memory Error when Processing Large Dataset in Docker Using Streaming
- how is strncpy able to copy from source to empty destination?
- Mallocing int* inside of int** gives unexpected integer values in the first and sometimes second allocation
- How to prevent R from slowing down in long analysis besides freeing up memory?
- React Navigation: Navigate into page, increase RAM, navigate back and RAM stays high
- Java Memory UTF-16 Vs UTF-8
- How to protect a page so that it cannot be write in mips arch?
- How does pre-allocating a pool of SocketAsyncEventArgs objects upfront improve the performance of a server application in c#
- Finding total RAM consumption of process, including swap
- How do special libraries in C cause memory allocation to fail or interact improperly?
- Does CLR add overhead fields to type which value is null?
- How do I improve the performance of this C# code - looping through a DataTable and building a Dictionary?
- Numpy memmap still using RAM instead of disk while doing vector operation
- Does the Direct Memory Access (DMA) interfere with the execution of user program execution?
- How to read and process big csv file fast and keep memory usage low in java?
Related Questions in OPERATING-SYSTEM
- the end of the I/O operation is notified to the system by an interrupt.how much system time do the mentioned operations occupy?
- Problem on CPU scheduling algorithms in OS
- OS-wide text autocomplete service with popup
- mkssecreenshotmgr taking a screenshot
- How to prevent app from crashing on android emulator
- Is there a function to end a child process?
- Swapping a healthy and unallocated partition in Windows 10
- ubuntu OS : Why my battery is completely drained of in just 2 hours in suspend mode
- 1 filenames = [] 2 ----> 3 for file in os.zipfile('images.zip'):
- Worth it to access data by blocks on modern OS/hardware?
- How does outlook disable screenshot
- How can I enable my app to access a specific partition directory for reading and writing without showing popup to user?
- Exception of type 'System.Exception' was thrown. Error in Cosmos Project
- Maximum CPU Voltage reading
- Java: get username from uid
Related Questions in PAGING
- Performance degradation in Asynchronous paging
- How can I test my api response for pagination?
- ExtJS Modern 7.0 combobox with paging how to set value?
- How to do Sorting and paging in ASP.NET MVC C# with a built int SQL database
- Understanding paging and fetching instructions from memory
- Who and how generate the virtual/logical addresses? Confusion if it's the compiler, the linker, the loader
- What is the behavior of mstatus.GVA bit in two stage paging when vsatp.MODE=BARE?
- Address translation of a instruction of multiple bytes
- What are the roles of PAT and PCD bit in CR3? What exactly they do?
- What is the role of HS level sstatus.MXR in two stage paging when hgatp.MODE=BARE?
- How To Declare Flow<PagingData<Data>> as Variable
- RISC-V paging: what decides the way the Dirty and Accessed bits are managed?
- Nonfactors mvcgrid paging server side problems
- How is the physical address of the page table calculated from page directory
- Correlation between ActiveMQ Artemis paging and message priority
Related Questions in PAGE-TABLES
- Using page-table remapping to avoid data-copying during array-reallocation
- In x86_64 architecture, if I modify a PTE in the page table, when will it be sync to TLB?
- The kernel linux's lookup_address function in x86 returns NULL when debugging a specific case of Page Fault
- Understanding paging and fetching instructions from memory
- What is the purpose of recursive page tables?
- does a large, overcommitted mmap create many page table entries?
- Will an x86_64 CPU notice that a page-table entry has changed to not-present while setting the dirty flag in the PTE?
- Let's say we have a 32-bit system, or 64-bit system, or even 128-bit system. What's the size of each page table entry?
- Is there any way to keep the dirty bit in x86 page tables coherent without TLB invalidates?
- How Linux uses 3-level page tables for x86 CPUs with only 2-level page tables?
- What is the reason to extend page-directory-pointer-table base address in cr3 from 20 to 27 bits in AMD64 legacy mode (PAE)?
- Calculating total page table size of a process (with pid) in 4-level x64-64 linux machine using/proc/pid/maps and /proc/pid/pagemap
- Physical pages offset check
- Rocket Chip - Access Exception on Page Table Walk
- Multi-level page table in OS
Related Questions in PAGE-SIZE
- How does a TLB manage memory translation for addresses that cross page boundaries?
- Setting a Paper Size into C# print
- How to print a PDF converted from HTML in Letter Format without margins using Edge?
- How to check if React app is being viewed on Desktop or Mobile
- Commit_interval and Page-Size gives unexpected results
- Is there a way detecting page size of particular webpages programmatically?
- Why PAGE_SIZE is often used in ioremap?
- Different page sizes after conversion of png to pdf with imagemagic
- What is pagesize in Pagingconfig in android
- Is it possiable to change gridview pagination button count globally in yii2?
- setting default printer custom page size with python
- Creating custom sized PDFs from MS Excel using VBA Macros
- How to write media query at 90% page zoom level
- How do I make sure this looks the same on every device?
- why page table size is not determined not by multiplying with number of pages with page size?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
You might be confused about what is a page and what is a frame(memory division done in main memory). Hope an example will be helpful for you to understand.
Lets say you have a process having size 1KB and your main memory size is 1MB. To place your process into main memory, you need to classify the process into page so that each page in the process will be placed in a frame in the main memory [So page size == frame size]
Let your page size = frame size = 32B = 25B
Then the total number of pages in the process is 1KB/32B = (210B) / 25B
which is 25
And the total number of frames in the main memory is 1MB/32B = (220B) / 25B
which is 215
Now we need to place the 25 process pages in 215 memory frames. Page table will help us here.
Page table will have 25 entries (representing each page), and each of that entry will be filled with the frame number where the corresponding page will be located.
Since we have 215 frames in main memory, we need 15 bits to represent a frame number.
So the total page size will be
25 * 15 = 480Bytes
Additional Notes
Note 1 : In the framed example since we got page table size greater than a page size ,we need to use multi level paging
Note 2: In real life scenario, The page table size might not be simply 15 bits. Instead some additional information will be provided for each of the page table entry.