{"id":154113,"date":"2023-08-02T14:25:05","date_gmt":"2023-08-02T08:55:05","guid":{"rendered":"https:\/\/www.gkseries.com\/blog\/?p=154113"},"modified":"2023-08-02T14:26:06","modified_gmt":"2023-08-02T08:56:06","slug":"assume-that-in-a-certain-computer-the-virtual-addresses-are-64-bits-long-and-the-physical-addresses-are-48-bits-long","status":"publish","type":"post","link":"https:\/\/www.gkseries.com\/blog\/assume-that-in-a-certain-computer-the-virtual-addresses-are-64-bits-long-and-the-physical-addresses-are-48-bits-long\/","title":{"rendered":"Assume that in a certain computer, the virtual addresses are 64 bits long and the physical addresses are 48 bits long"},"content":{"rendered":"\n<p>Q. Assume that in a certain computer, the virtual addresses are 64 bits long and the physical addresses are 48 bits long. The memory is word addressible. The page size is 8 kB and the word size is 4 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 128 valid entries. At most how many distinct virtual addresses can be translated without any TLB miss?<\/p>\n\n\n\n<p>(A) 16\u00d72<sup>10<\/sup><\/p>\n\n\n\n<p>(B) 256\u00d72<sup>10<\/sup><\/p>\n\n\n\n<p>(C) 4\u00d72<sup>20<\/sup><\/p>\n\n\n\n<p>(D) 8\u00d72<sup>20<\/sup><\/p>\n\n\n\n<p>Ans: 256\u00d72<sup>10<\/sup><\/p>\n\n\n\n<p>Number of words in a page<\/p>\n\n\n\n<p>= Page size \/ word size<\/p>\n\n\n\n<p>= 8 KB \/ 4 B<\/p>\n\n\n\n<p>= 2 K<\/p>\n\n\n\n<p>= 2 * 210<\/p>\n\n\n\n<p>Since TLB can hold 128 valid entries, therefore, TLB can translate<\/p>\n\n\n\n<p>= 128 * number of words in page<\/p>\n\n\n\n<p>= 128 * 2 * 210<\/p>\n\n\n\n<p>= 256 * 210 addresses with TLB hit<\/p>\n\n\n\n<p>So, option (D) is correct.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Q. Assume that in a certain computer, the virtual addresses are 64 bits long and the physical addresses are 48 bits long. The memory is word addressible. The page size is 8 kB and the word size is 4 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 128 valid entries. At [&hellip;]<\/p>\n","protected":false},"author":419,"featured_media":154114,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[5141],"tags":[5140],"class_list":["post-154113","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-gate","tag-gate-questions"],"_links":{"self":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154113","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/users\/419"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/comments?post=154113"}],"version-history":[{"count":1,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154113\/revisions"}],"predecessor-version":[{"id":154115,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/posts\/154113\/revisions\/154115"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/media\/154114"}],"wp:attachment":[{"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/media?parent=154113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/categories?post=154113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.gkseries.com\/blog\/wp-json\/wp\/v2\/tags?post=154113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}