{"id":2646,"date":"2018-12-05T15:03:32","date_gmt":"2018-12-05T15:03:32","guid":{"rendered":"https:\/\/askanacademic.com\/uncategorized\/virtual-memory-and-paging-disadvantages-thrashing-1200\/"},"modified":"2019-09-20T09:00:15","modified_gmt":"2019-09-20T09:00:15","slug":"virtual-memory-and-paging-disadvantages-thrashing-1200","status":"publish","type":"post","link":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/","title":{"rendered":"Virtual memory and paging – Disadvantages"},"content":{"rendered":"

Question<\/h2>\n

Explain virtual memory mapping using paging. What are its disadvantages?<\/p>\n

Answer<\/h2>\n

Virtual memory is a technique that is used to manage memory usage in the event that a computing process requires more memory than is physically available in the main memory of the system (the RAM). Virtual memory addresses are created to map onto either physical addresses within the main memory or, where this is not available, to a cache on the disk. These are done in the form of data structures called \u2018page tables\u2019. If the page table indicates that the entry is not stored in the main memory then a page fault exception is raised, which causes the operating system to take over and swap the relevant part of the cache into a free page frame on the main memory. This allows the system to continue functioning in lieu of sufficient RAM to handle all of its processes.<\/p>\n

The obvious disadvantage to using virtual memory, and therefore to using disk caches as a supplement to main memory, is performance. The time it takes to read from a magnetic disk is significantly greater than the time it takes to access RAM, and therefore swapping should be avoided wherever performance is important. Solid state drives can improve speed of access a great deal, but unfortunately this type of memory is subject to wear after a certain number of writes. Constant paging to one of these drives is therefore likely to reduce its lifespan much more than normal usage would. An excessive rate of page faults puts the system into a state of \u2018thrashing\u2019 \u2013 constant swapping of data between memory and disk \u2013 which has a serious effect on application performance.<\/p>\n

References<\/h2>\n","protected":false},"excerpt":{"rendered":"

Virtual memory is a technique that is used to manage memory usage in the event that a computing process requires more memory than is physically…<\/p>\n","protected":false},"author":1,"featured_media":1932,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"yoast_head":"\nVirtual memory and paging - Disadvantages<\/title>\n<meta name=\"description\" content=\"Virtual memory is a technique that is used to manage memory usage in the event that a computing process requires more memory than is physically...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Virtual memory and paging - Disadvantages\" \/>\n<meta property=\"og:description\" content=\"Virtual memory is a technique that is used to manage memory usage in the event that a computing process requires more memory than is physically...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/\" \/>\n<meta property=\"og:site_name\" content=\"Ask an Academic\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/Ask-an-Academic-571412300039347\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-12-05T15:03:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-09-20T09:00:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/computing-and-ict.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"835\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"AskanAcademic.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"AskanAcademic.com\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Virtual memory and paging - Disadvantages","description":"Virtual memory is a technique that is used to manage memory usage in the event that a computing process requires more memory than is physically...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/","og_locale":"en_US","og_type":"article","og_title":"Virtual memory and paging - Disadvantages","og_description":"Virtual memory is a technique that is used to manage memory usage in the event that a computing process requires more memory than is physically...","og_url":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/","og_site_name":"Ask an Academic","article_publisher":"https:\/\/www.facebook.com\/Ask-an-Academic-571412300039347\/","article_published_time":"2018-12-05T15:03:32+00:00","article_modified_time":"2019-09-20T09:00:15+00:00","og_image":[{"width":1280,"height":835,"url":"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/computing-and-ict.jpg","type":"image\/jpeg"}],"author":"AskanAcademic.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"AskanAcademic.com","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/#article","isPartOf":{"@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/"},"author":{"name":"AskanAcademic.com","@id":"https:\/\/askanacademic.com\/#\/schema\/person\/88d510b2a53ef0ce64579418a0c55dde"},"headline":"Virtual memory and paging – Disadvantages","datePublished":"2018-12-05T15:03:32+00:00","dateModified":"2019-09-20T09:00:15+00:00","mainEntityOfPage":{"@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/"},"wordCount":287,"publisher":{"@id":"https:\/\/askanacademic.com\/#organization"},"image":{"@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/#primaryimage"},"thumbnailUrl":"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/computing-and-ict.jpg","articleSection":["Computing and ICT"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/","url":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/","name":"Virtual memory and paging - Disadvantages","isPartOf":{"@id":"https:\/\/askanacademic.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/#primaryimage"},"image":{"@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/#primaryimage"},"thumbnailUrl":"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/computing-and-ict.jpg","datePublished":"2018-12-05T15:03:32+00:00","dateModified":"2019-09-20T09:00:15+00:00","description":"Virtual memory is a technique that is used to manage memory usage in the event that a computing process requires more memory than is physically...","breadcrumb":{"@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/#primaryimage","url":"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/computing-and-ict.jpg","contentUrl":"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/computing-and-ict.jpg","width":1280,"height":835,"caption":"Picture of a data centre"},{"@type":"BreadcrumbList","@id":"https:\/\/askanacademic.com\/computing-and-ict\/virtual-memory-and-paging-disadvantages-thrashing-1200\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/askanacademic.com\/"},{"@type":"ListItem","position":2,"name":"Virtual memory and paging – Disadvantages"}]},{"@type":"WebSite","@id":"https:\/\/askanacademic.com\/#website","url":"https:\/\/askanacademic.com\/","name":"Ask an Academic","description":"Academic Q&A","publisher":{"@id":"https:\/\/askanacademic.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/askanacademic.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/askanacademic.com\/#organization","name":"Ask an Academic","url":"https:\/\/askanacademic.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/askanacademic.com\/#\/schema\/logo\/image\/","url":"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/aaa-logo.png","contentUrl":"https:\/\/askanacademic.com\/wp-content\/uploads\/2019\/01\/aaa-logo.png","width":1677,"height":1677,"caption":"Ask an Academic"},"image":{"@id":"https:\/\/askanacademic.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/Ask-an-Academic-571412300039347\/"]},{"@type":"Person","@id":"https:\/\/askanacademic.com\/#\/schema\/person\/88d510b2a53ef0ce64579418a0c55dde","name":"AskanAcademic.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/askanacademic.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/be2c5b73f861f961c4a7fd212308b6a5?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/be2c5b73f861f961c4a7fd212308b6a5?s=96&d=mm&r=g","caption":"AskanAcademic.com"},"sameAs":["https:\/\/askanacademic.com"]}]}},"_links":{"self":[{"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/posts\/2646"}],"collection":[{"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/comments?post=2646"}],"version-history":[{"count":0,"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/posts\/2646\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/media\/1932"}],"wp:attachment":[{"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/media?parent=2646"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/categories?post=2646"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/askanacademic.com\/wp-json\/wp\/v2\/tags?post=2646"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}