Verified:

TheORKINMan Game profile

Member
1305

Jul 10th 2013, 1:09:32

Any EE or CS majors out there remember how to calculate this crap and wouldnt mind giving me a brief explanation of how its done? Something with it is just not clicking for me:

I have an application whose memory access pattern is a stream and its entire data set is 128kB. The data cache in your machine has a capacity of 64kB. It is word-addressable and direct-mapped with 32B lines. It is able to fetch one line at a time.

Given the access pattern: 0, 4, 8, 12, 16, 20, 24, 28, 32, 36, 40, …, where each access is a 4B word.
a. What is the miss rate? (4)
Smarter than your average bear.

Grizzly Game profile

Member
48

Jul 10th 2013, 1:30:42

0

Xinhuan Game profile

Member
3728

Jul 10th 2013, 2:37:50

Probably 0 if the machine has predictive features. Maybe 1, if it doesn't and has to load the other 64k of data?

I don't remember learning any of this stuff.

Erian Game profile

Member
702

Jul 10th 2013, 8:57:41

Since you're fetching 32B at a time and reading every 4B consecutively, you only need to look for a new line every 32/4 = 8 accesses. Reading address 0 will give you data from address 0 - address 31, which contains the first 8 access in their entirety. However, like Xin said, predictive features should detect that kind of access pattern ~100% of the time which gives you a miss rate of 1/(128k/4) (first one is never free in CS ;))

Atryn Game profile

Member
2149

Jul 10th 2013, 12:18:21


Oh, now I remember why I switched out of CS... despite having a 4.0 GPS at the time, this stuff is boring! Blah...

Now coding a MUD, that was amusing...

UltraMarines Game profile

Member
343

Jul 10th 2013, 13:09:03

bonus

TheORKINMan Game profile

Member
1305

Jul 10th 2013, 14:25:44

This is the last architecture class I have to take and the semester is 3/4 over. Definitely my least favorite mandatory courses. Back to software engineering next semester :P
Smarter than your average bear.

TheORKINMan Game profile

Member
1305

Jul 10th 2013, 14:26:35

Also thanks Erian, that helped quite a bit. I'm not sure why books and professors are incapable of explaining things without obfuscation.
Smarter than your average bear.

NukEvil Game profile

Member
4328

Jul 10th 2013, 15:44:41

Originally posted by Atryn:

Oh, now I remember why I switched out of CS... despite having a 4.0 GPS at the time, this stuff is boring! Blah...

Now coding a MUD, that was amusing...



Another reason is probably because you call it a 'GPS'...
I am a troll. Everything I say must be assumed to be said solely to provoke an exaggerated reaction to the current topic. I fully intend to bring absolutely no substance to any discussion, ongoing or otherwise. Conversing with me is pointless.

Atryn Game profile

Member
2149

Jul 10th 2013, 17:29:47

LOL... oh well, typo.

Good thing I wasn't an English major.

Boltar Game profile

Member
4056

Jul 10th 2013, 18:30:27

GPS could work.. Grade Point System

iZarcon Game profile

Administrator
Game Development
2150

Jul 10th 2013, 20:06:05

... based on your GPA :-P
-iZarcon
EE Developer


http://www.letskillstuff.org

Schilling Game profile

Member
455

Jul 10th 2013, 21:16:16

*head explodes/bonus*

Cerberus Game profile

Member
EE Patron
3864

Jul 10th 2013, 22:26:35

Originally posted by TheORKINMan:
Also thanks Erian, that helped quite a bit. I'm not sure why books and professors are incapable of explaining things without obfuscation.


2 words

Job Security
I don't need anger management, people need to stop pissing me off!

Drunken Dibs

Member
467

Jul 12th 2013, 8:12:28

they want you to fail the course so they can be justified in calling you an idiot. then you have to pay them again to teach you the same exact thing that they failed to teach you the first time.
Conformity Requires Sacrifice.
Send Me More 18-20 year old female virgins if you want me to conform properly.

Erian Game profile

Member
702

Jul 12th 2013, 15:30:13

Originally posted by Drunken Dibs:
they want you to fail the course so they can be justified in calling you an idiot. then you have to pay them again to teach you the same exact thing that they failed to teach you the first time.

Actually I think it's more that American textbook writers get paid per page in the book which explains why they get obfuscated instead of keeping things simple. And if it's anything like in Sweden, local teachers will often write the curriculum for advanced topics in universities which means that their writing will influence their teach most likely ;)

It hilarious comparing many European and American textbooks for science. American books are almost always 2-3x thicker for the same level of course (and no, contrary to popular belief bigger isn't always better).

Drunken Dibs

Member
467

Jul 12th 2013, 16:13:53

weird. i thought that writers were paid royalties. they don't get a percentage of the sale?
Conformity Requires Sacrifice.
Send Me More 18-20 year old female virgins if you want me to conform properly.

martian Game profile

Game Moderator
Mod Boss
7845

Jul 12th 2013, 16:22:58

we2342rewfsdfsdaf
you are all special in the eyes of fluff
(|(|
( ._.) -----)-->
(_(' )(' )

RUN IT IS A KILLER BUNNY!!!