{"id":5100,"date":"2014-03-30T18:47:21","date_gmt":"2014-03-30T18:47:21","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/dynamic-memeory-allocation-allocates-lines-in-caches-or-not-collection-of-common-programming-errors\/"},"modified":"2014-03-30T18:47:21","modified_gmt":"2014-03-30T18:47:21","slug":"dynamic-memeory-allocation-allocates-lines-in-caches-or-not-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/03\/30\/dynamic-memeory-allocation-allocates-lines-in-caches-or-not-collection-of-common-programming-errors\/","title":{"rendered":"Dynamic Memeory Allocation allocates lines in caches or not?-Collection of common programming errors"},"content":{"rendered":"<p>Using dynamic memory allocation at runtime in Linux allocates some memory in RAM. However, I want to know whether the <strong>cache<\/strong> lines are also allocated in the <strong>cache<\/strong> for that memory at the same time or not.<\/p>\n<p>E.g, After I allocated some memory using <code>malloc()<\/code> and I store 4 bytes of data (cache line may be 4 or 16 Bytes) will the write miss occur on cache or not?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Using dynamic memory allocation at runtime in Linux allocates some memory in RAM. However, I want to know whether the cache lines are also allocated in the cache for that memory at the same time or not. E.g, After I allocated some memory using malloc() and I store 4 bytes of data (cache line may [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-5100","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5100","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=5100"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/5100\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=5100"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=5100"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=5100"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}