edited by
509 views
1 votes
1 votes
Suppose you have a computer system with a $48-bit$ logical address, page size of $16KB$ and $4 bytes$ per page table entry. If we have a $48MB$ program such that the entire program and all necessary page tables are in memory. How much memory is used by program, including its page tables?
edited by

1 Answer

2 votes
2 votes
No of pages = (process size) / (page size)

                     = (48 MB) / (16 KB)

                      = 3K

Page Table Size = (no of pages) * page table entry

                          = (3K) * (4B)

                          = 12 KB

Total memory used by the program = (process size) +  (page table size)

                                                         = (48 MB) + (12 KB)

                                                         = 49164 KB

Related questions


Deprecated: Implicit conversion from float-string "1663148133.537" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 796

Deprecated: Implicit conversion from float-string "1663148133.537" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 801

Deprecated: Implicit conversion from float-string "1663148133.537" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 802

Deprecated: Implicit conversion from float-string "1663148133.537" to int loses precision in /var/www/html/qadb/qa-include/app/format.php on line 803
189
views
0 answers
0 votes
SSR17 asked Feb 8
189 views
we have 8 pages (each side 32B) to store in physical memory of 2^32 bits how many bits are required to identify each page , according to me 3 bits are required but that i...
311
views
2 answers
0 votes
Unique_999 asked Aug 17, 2023
311 views
Can Any explain the relationship between The “ Word Size “ and “ Logical Address Space “
675
views
1 answers
0 votes
Gaurav Padole asked Dec 29, 2022
675 views
Consider a k-level paging system along with a TLB. A TLB takes 10ns, and a memory takes 100ns on average. The hit ratio of TLB is equal to 0.8. If it is known that the av...
365
views
0 answers
2 votes
DebRC asked Sep 14, 2022
365 views
Considering a system with Single-Level page table, with a TLB to reduce the access time of pages. A cache is also provided with the main memory. All the pages ultimately ...
Total PHP MySQL Other RAM
Time (ms) % Time (ms) % File count Time (ms) % Query count Time (ms) % Amount %
Setup 4.1 5% 2.7 3% 72 1.7 2% 2 0.0 0% 569k 50%
Control 13.4 19% 1.8 2% 5 12.0 17% 12 0.0 0% 244k 21%
View 1.3 1% 1.3 1% 12 0.0 0% 0 0.0 0% 57k 5%
Theme 44.6 65% 3.9 5% 15 40.8 59% 3 0.0 0% 264k 23%
Stats 5.2 7% 0.1 0% 0 5.1 7% 1 0.0 0% 0k 0%
Total 68.6 100% 9.8 14% 104 59.6 86% 18 0.0 0% 1136k 100%