linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* hit/miss
@ 2004-10-08 17:31 Ankit Jain
  2004-10-08 19:22 ` hit/miss Rik van Riel
  0 siblings, 1 reply; 2+ messages in thread
From: Ankit Jain @ 2004-10-08 17:31 UTC (permalink / raw)
  To: linux-mm

Consider a two-level memory hierarchy system M1 & M2.
M1 is accessed first and on miss M2 is accessed. The
access of M1 is 2 nanoseconds and the miss penalty
(the time to get the data from M2 in case of a miss)
is 100 nanoseconds. The probability that a valid data
is found in M1 is 0.97. The average memory access time
will be how much?

if somebody can solve this?

thanks 

ankit

________________________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: hit/miss
  2004-10-08 17:31 hit/miss Ankit Jain
@ 2004-10-08 19:22 ` Rik van Riel
  0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2004-10-08 19:22 UTC (permalink / raw)
  To: Ankit Jain; +Cc: linux-mm

On Fri, 8 Oct 2004, Ankit Jain wrote:

> Consider a two-level memory hierarchy system M1 & M2.
> M1 is accessed first and on miss M2 is accessed. The
> access of M1 is 2 nanoseconds and the miss penalty
> (the time to get the data from M2 in case of a miss)
> is 100 nanoseconds. The probability that a valid data
> is found in M1 is 0.97. The average memory access time
> will be how much?
> 
> if somebody can solve this?

If you cannot solve this yourself, you might want to
complain to your teacher for not telling you how to
do your homework ;)

-- 
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it." - Brian W. Kernighan

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"aart@kvack.org"> aart@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-10-08 19:22 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-08 17:31 hit/miss Ankit Jain
2004-10-08 19:22 ` hit/miss Rik van Riel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox