1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

caculate the size of cache memory

Discussion in 'Engineering Concepts' started by huda, Jan 22, 2009.

  1. huda

    huda New Member

    plesae, i need any information relate calculating the size of cache
    direct mapping ,full associative ,and 16-way set associative cache.

    if:main memory=8k blocks
    cache= 512 block
    block size=8 word
    the size of word=16 bit
    i know , the size will be different by depending on the way, but how?

  2. shabbir

    shabbir Administrator Staff Member

    Can you explain what size you are trying to calculate?
  3. huda

    huda New Member

    i mean , the amount of storage for each one.
    for ex. if I need to caculate for direct mapping :
    no. of blocks in cache * size of word

    im not sure if was a true or not.
    if so, what about set associative and associative?

  4. xpi0t0s

    xpi0t0s Mentor

    I don't know if you can calculate cache size; the size of cache is a memory optimisation technique. A larger cache will give you a higher hit ratio but comes at a higher price, so there is a tradeoff. The availability of die space will be a factor as well, maybe that's why all Core i7 processors have the same amount - I might have expected 965 Extreme to have more cache than the 920, but that's not the case.

    Looking at some of the terminology used I think you should study in detail the following article:
    I've referred you to this before so please make sure you read it this time. Don't assume that just because it's Wikipedia it must be unreliable.
  5. huda

    huda New Member

    I tried to look for your email in your profile,but I didn't find it.
    if possible ,send it, in which I can send two pdf books ,I have it . unfortunately,I haven't pdf of book of morris mano ,but the book of Pattreson isn't less importance than of Morris's book.
    Also, i will send a page of morris's book in which ,he talked about the size of set associative cache that I focused my inquiry in this thread on it. sorry, if it isn't clear because I took a picture of this page by camera where ,i haven't any other facility in my home.


Share This Page