+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Junior Member
    Join Date
    Oct 2005
    Posts
    4

    Discovering computers

     
    Hello everyone, I am taking, Discovering computer class and I was doing my exercise, I came across this exercise and I do not have any idea how to solve it. If anyone know anything about, please post your help here.

    Suppose we have a 500 MHz CPU with a memory system that requires 70 ns to do an access (including bus overhead) and a single, on-chip cache. The time to execute an instruction is 5 ns.


    a. What is the speed of the CPU if the cache has a hit rate of 95%.

    b. What is the speed of the CPU with a 95% hit rate primary cache and a 25 ns secondary cache that hits 90% of the primary cache misses.

    c. How will the CPU speed be affected if a 40 ns third cache is added that hits 75% secondary cache misses.

  2. #2
    Ultimate Member SeanC's Avatar
    Join Date
    Oct 2001
    Location
    Toronto Canada
    Posts
    4,801
    Is that an introductory level class???

    It's worded pretty badly in my opinion.

    My complex math skills are pretty much shot but treat this as a math question. Figure out the equation necessary for each and then plug in the values. Then's it's simple math after that.

    Sean

  3. #3
    Human voltmeter DanU's Avatar
    Join Date
    Oct 2001
    Location
    SF Bay Area
    Posts
    4,214
    I agree, it's badly worded. A 500MHz CPU will run at 500MHz regardless of how slow the memory is, but I don't think that's the answer the instructor is looking for.

    A better question would be to ask how long, on average, would it take to execute an instruction. In scenario A, 95% of the time it takes 5ns, and the other 5% of the time you have to add 70ns due to memory access. So, the average time is 5ns * 95% + (70+5)ns * 5% = 8.5ns. Invert that and you get 118 MIPS (million instructions per second). You can extend this logic to solve B and C (Hey, you don't expect me to do all your work do you !)

  4. #4
    Junior Member
    Join Date
    Oct 2005
    Posts
    4
    Thanks DanU for your help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How many computers..
    By Ramen in forum General Tech Discussion
    Replies: 29
    Last Post: December 22nd, 2004, 01:46 PM
  2. Cannot see other computers.
    By Dilbert135 in forum Technical Support
    Replies: 10
    Last Post: September 21st, 2003, 02:00 PM
  3. How many computers do you own?
    By ClubMed in forum IMO Community
    Replies: 27
    Last Post: March 20th, 2002, 09:54 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews