Results 1 to 6 of 6

Thread: Write-through and Write-back cache

  1. #1
    Join Date
    Dec 2009
    Posts
    10

    Write-through and Write-back cache

    I am engineering student, i went for any interview and over there the interviewer asked me a question i.e "Explain what is the difference between write through and write back cache?". And i was unable to answer this. Please somebody can answer regarding this Intel motherboard question.

  2. #2
    Join Date
    May 2008
    Posts
    835

    Re: Write-through and Write-back cache

    I think in the write-through cache, the contrast changes made to cached data are simultaneously made in the original copy, whereas in write-back not. The write back cache are able to perform more quickly/faster compare to the write through cache. But in some points, the differences between cached and original data could lead to problems, and so, write through caches should be used. Hope your problem is fix.

  3. #3
    Join Date
    Oct 2005
    Posts
    924

    Re: Write-through and Write-back cache

    Write-Through cache: In this, once the writing is done in the cache memory, the main memory is updated too immediately to maintain the reliability.
    Write-Back cache: In this, once the writing is done in the cache memory, a flag bit known as dirty bit is set. And when this value is required it is replace by that bit check, and if it is set then the value is taken to main memory. Hope you will understand the term write-through and write-back cache.

  4. #4
    Join Date
    Oct 2005
    Posts
    1,217

    Re: Write-through and Write-back cache

    To me also same question was asked during interview and my answer was somewhat like: According to me, this both(i.e writethrough and writeback) are the cache write hit policy,
    ->Write-through: In this, the information is written to the both the side of the cache and the main memory upon a hit.
    ->Write-back: In this, the information is written to the cache only, and the main memory is updated upon a read miss.
    After this answer by me, the interviewer selected me, so i think this perfect answer for interview purpose. All the best.

  5. #5
    Join Date
    Nov 2005
    Posts
    1,187

    Re: Write-through and Write-back cache

    The differences between the Write-through and Write-back cache can be based on 2 factors (i.e Performance and Integrity of Data). The write-through has a better integrity and it will also flush for each writes. The write-back will hold up the write till the same cache line has to be used up for a read. Thus, write-back will proivde good performance, as it save many memory write cycles /write and write-through does not provides like this performance.

  6. #6
    Join Date
    Sep 2005
    Posts
    1,434

    Re: Write-through and Write-back cache

    My personally thinking says that the write-through policy is mostly slower, but offers advantage of coherence between cache and main memory. And whereas when we come to write-back, we say it is faster and frequently used. It also make use of the Dirty bit. If the data in cache is not in coherence with one in main memory, then the Dirty bit is set. Write Through doesn't provide the performance compared to which provided by Write-Back. Hope your problem will be fixed.

Similar Threads

  1. Windows 7: Superfetch? Pagefile? Write-cache buffering?
    By Gopu Pa in forum Hardware Peripherals
    Replies: 2
    Last Post: 22-09-2011, 11:11 AM
  2. Volume write back cache raid 5
    By Dharmesh Arora in forum Hardware Peripherals
    Replies: 3
    Last Post: 01-08-2009, 12:05 PM
  3. Volume write-back cache in Raid 0
    By Alkesh jain in forum Hardware Peripherals
    Replies: 3
    Last Post: 19-06-2009, 08:37 PM
  4. Replies: 0
    Last Post: 16-09-2007, 09:32 PM
  5. Event ID 32 - write cache enabled
    By Justin West in forum Windows Server Help
    Replies: 4
    Last Post: 11-03-2005, 04:07 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,251,789.65249 seconds with 17 queries