Processors

Processor Memory

A Computer system can be classified into following groups:

  1. Internal memory
  2. Primary memory
  3. Secondary memory

INTERNAL MEMORY refers to the registers of CPU which hold temporary results. These registers are very fast.

PRIMARY MEMORY is the storage area where all the programs are executed. The CPU can directly access only those items that are stored in primary memory. Primary memory is fast but slower than internal registers by factor of 10. In short period of time addresses generated by  CPU have the tendency to get clustered around small regions in main memory. This phenomenon is known as locality of reference. Hence these days a small but fast memory called cache memory is installed between CPU and primary memory.

SECONDARY MEMORY refers to storage medium like hard disks, CDs etc

Memory has two major access modes:

  1. Sequential access mode: Here memory can be accessed only in serial order i.e. if we have to access 4th memory location then we first would have to move to first three locations and skip them and only then we can access the 4th location. This is also called serial access mode. Here access time depends on the location. If location is away from the starting point of the memory then access time would be more. E.g. magnetic tape
  2. Random access mode: Any memory location can be accessed at random i.e. if we have to access 4th location then we can directly go to 4th location and access it. So access time is independent of the location we are accessing.

There is also a memory known as semi random access memory in which we have both the modes e.g. memory is divided in different tracks or sectors where we have a memory head for each sector. So we can move to any sector randomly but within the sector we can only move serially.

Memory can also be categorized as follow:

Passive memory: The memory in which no processing activities takes place. In this type of memory only 2 types of operations can be carried out: read & write. e.g. all the memories we use in daily life.

Active memory: This intelligent memory system has a small processor associated with every memory cell and this processor can perform operations like increment & addition and hence can improve the performance of the main processor.

PRIMARY MEMORY

This is a volatile memory (i.e. memory would lose its data whenever there is power loss). This can be of two types as shown:

SRAM
This is a static RAM where two transistors are used to store a single bit and they can hold data without external assistance as far as power is supplied to the circuit. The circuit is also known as flip-flop or bi-stable multi-vibrator. If Q is high we get high as an input to the transistor T1 and hence Q bar is low and as Q bar is low we get LOW as input to transistor T2 and hence Q is HIGH. We can see how output is maintained by the circuit itself. So we don’t need t refresh the circuit again and again.
 

DRAM

This is dynamic RAM where we store the bits in capacitors and we have to charge the capacitors after some time again and again as the charge stored on the capacitors gets leaked out. This is called dynamic RAM as we have to refresh the circuit again and again. Due to the fact that capacitors have to be charged again and again, there is a dedicated circuitry required just to refresh the capacitors. DRAM is cheaper that SRAM.

ROM (Read Only Memory)

This is a non volatile memory which is used to store permanent codes. Mainly this is of following types:

Mask ROM: This type of ROM is used by the manufacturers for programming  and is mass produced, hence are quiet in-expensive.

PROM (Programmable Read only memory): This is the type of ROM which can be programmed by the user in the working environment but can not be re-programmed.

EPROM (Erasable programmable ROM): This type of ROM can be reprogrammed hence called so. This type of ROM is required when programs are in the development stage.

FLASH MEMORY

 Flash memory is a solid-state, non-volatile, rewritable memory that works like RAM and a hard-disk drive combined. It resembles conventional memory, coming in the form of discrete chips, modules, or memory cards. Just like with DRAM and SRAM, bits of electronic data are stored in memory cells, and just like with a hard disk drive, flash memory is non-volatile, retaining its data even when the power is turned off. Although there are advantages over both RAM (its non-volatility) and hard disk (the absence of moving parts) but following are the reasons why flash memory is not a viable replacement for either.

  1. Because of its design, flash memory must be erased in blocks of data rather than single bytes like RAM.
  2. It has a higher cost
  3. The memory cells in a flash chip have a limited lifespan of around 100,000 write cycles, thus making it an inappropriate alternative to RAM for use as a PC s main memory.

CACHE MEMORY

This memory is used as an intermediate between CPU and RAM. It is fastest form of storage. It basically decreases the delay for interaction of CPU and RAM.  First data is transferred to cache memory and then from cache memory data is used by CPU. The cache memory is implemented using SRAM. This is used to bridge the performance gap between processor and the RAM.

WRITE BACK CACHE: In this cache memory whatever the changes are made to the cache are not transferred immediately to main memory but changes are transferred to main memory only when corresponding data is to be replaced in the cache. It avoids unnecessary writes to the memory.

WRITE THROUGH CACHE: In this type of cache memory what ever changes are made to cache are transferred immediately to the main memory. This policy is easily implemented but may lead to unnecessary writes to the memory.

MEMORY HIERARCHY

Memory system is often designed using different technologies to achieve the optimum performance. So memory system is a multilevel organization. The following a typical computers’ memory hierarchy organization:

HIT RATIO (h)

It is defined as relative number of successful references to the cache memory. In rough words, if h=0.9, then it means that if we access cache memory for a particular data, then 9 out of 10 times we’ll be able to get it.                                                                                                                                                    

Q- Calculate the average access time if cache memory access time is 150ns and memory access time is 900 ns and we have the hit ratio for cache memory as h=0.8. Assume every time we go to main memory we’ll be get the data we want.

Ans:  tav= h * t+ (1 – h)*(t+ tm)

As when there is cache hit then we’ll need to go to cache memory only for data hence only time tc is taken otherwise we would have to access main memory after unsuccessfully accessing cache memory so total time taken in this case would be t+ tm

So tav= 0.8 * 150 + (1 – 0.8) * 900 = 120 + 180 = 300 ns

If there had been no cache memory then average time taken would have been 900 ns as every time we would have to access main memory for data so tav= 900ns

So we see there is a 3 times increase in the performance of the system by employing CACHE memory in the hierarchy.

65 Replies to “Processor Memory

  1. I may need your help. I tried many ways but couldn’t solve it, but after reading your article, I think you have a way to help me. I’m looking forward for your reply. Thanks.

  2. Hiya, I am really glad I have found this info. Today bloggers publish just about gossips and web and this is really annoying. A good website with interesting content, this is what I need. Thank you for keeping this web-site, I will be visiting it. Do you do newsletters? Can’t find it.

  3. I’ve recently started a website, the information you offer on this web site has helped me greatly. Thank you for all of your time & work. “Character is much easier kept than recovered.” by Thomas Paine.

  4. Hey there! This post couldn’t be written any better! Reading through this post reminds me of my old room mate! He always kept chatting about this. I will forward this article to him. Fairly certain he will have a good read. Thank you for sharing!

  5. My brother recommended I would possibly like this web site. He was totally right. This publish truly made my day. You can not imagine simply how so much time I had spent for this info! Thank you!

  6. Hello my loved one! I want to say that this article is awesome, nice written and include almost all vital infos. I’d like to look more posts like this.

  7. I¦ll immediately seize your rss feed as I can’t to find your email subscription link or e-newsletter service. Do you have any? Kindly allow me understand in order that I may just subscribe. Thanks.

  8. Hello there, I found your website via Google while searching for a related topic, your web site came up, it looks great. I’ve bookmarked it in my google bookmarks.

  9. I will right away grasp your rss feed as I can’t to find your email subscription hyperlink or e-newsletter service. Do you’ve any? Please let me realize in order that I may subscribe. Thanks.

  10. I’m so happy to read this. This is the type of manual that needs to be given and not the accidental misinformation that’s at the other blogs. Appreciate your sharing this greatest doc.

  11. Youre so cool! I dont suppose Ive learn something like this before. So good to find someone with some unique ideas on this subject. realy thank you for beginning this up. this website is one thing that is needed on the internet, someone with a little bit originality. helpful job for bringing one thing new to the web!

  12. Java Burn: What is it? Java Burn is marketed as a natural weight loss product that can increase the speed and efficiency of a person’s natural metabolism, thereby supporting their weight loss efforts

  13. Java Burn: What is it? Java Burn is marketed as a natural weight loss product that can increase the speed and efficiency of a person’s natural metabolism, thereby supporting their weight loss efforts

  14. Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. It extremely helps make reading your blog significantly easier.

  15. What Is Potent Stream? Potent Stream is a male health formula that helps to maintain healthy urinary and prostate health by killing off all the toxins in the body

  16. you’re really a good webmaster. The site loading speed is incredible. It seems that you’re doing any unique trick. In addition, The contents are masterpiece. you have done a excellent job on this topic!

  17. whoah this blog is magnificent i love reading your articles. Stay up the good paintings! You recognize, lots of people are looking round for this information, you can aid them greatly.

  18. I¦ve been exploring for a little for any high-quality articles or weblog posts on this kind of space . Exploring in Yahoo I eventually stumbled upon this web site. Reading this information So i am satisfied to convey that I’ve an incredibly good uncanny feeling I discovered exactly what I needed. I so much indisputably will make certain to do not forget this web site and provides it a glance regularly.

  19. I was wondering if you ever considered changing the page layout of your blog? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having 1 or two pictures. Maybe you could space it out better?

  20. Thank you for another excellent post. Where else could anybody get that type of info in such a perfect way of writing? I’ve a presentation next week, and I am on the look for such information.

  21. What is Gluco6 Supplement? Gluco6 is a blend of doctor-formulated ingredients promising to help users develop healthy blood sugar ranges.

  22. Howdy would you mind letting me know which hosting company you’re using? I’ve loaded your blog in 3 different internet browsers and I must say this blog loads a lot quicker then most. Can you suggest a good internet hosting provider at a reasonable price? Thanks a lot, I appreciate it!

  23. I do like the manner in which you have presented this specific concern and it really does offer me personally some fodder for consideration. Nonetheless, from everything that I have personally seen, I really trust when the actual responses pile on that men and women stay on point and in no way start on a soap box regarding some other news du jour. Anyway, thank you for this outstanding piece and although I can not necessarily agree with the idea in totality, I regard your viewpoint.

  24. Hello! I could have sworn I’ve been to this blog before but after browsing through some of the post I realized it’s new to me. Anyways, I’m definitely happy I found it and I’ll be book-marking and checking back frequently!

  25. Hey! I know this is kinda off topic however I’d figured I’d ask. Would you be interested in trading links or maybe guest authoring a blog post or vice-versa? My blog discusses a lot of the same subjects as yours and I believe we could greatly benefit from each other. If you are interested feel free to shoot me an email. I look forward to hearing from you! Awesome blog by the way!

  26. The heart of your writing whilst sounding agreeable originally, did not work properly with me personally after some time. Someplace throughout the paragraphs you managed to make me a believer unfortunately just for a while. I still have a problem with your leaps in assumptions and one might do nicely to help fill in all those breaks. If you can accomplish that, I will surely be amazed.

  27. I have not checked in here for a while because I thought it was getting boring, but the last several posts are great quality so I guess I will add you back to my everyday bloglist. You deserve it my friend 🙂

  28. Hey there! This is kind of off topic but I need some advice from an established blog. Is it tough to set up your own blog? I’m not very techincal but I can figure things out pretty quick. I’m thinking about making my own but I’m not sure where to start. Do you have any ideas or suggestions? Thank you

  29. Howdy! This post could not be written any better! Reading this post reminds me of my previous room mate! He always kept talking about this. I will forward this page to him. Fairly certain he will have a good read. Thank you for sharing!

  30. Oh my goodness! a tremendous article dude. Thank you Nevertheless I’m experiencing subject with ur rss . Don’t know why Unable to subscribe to it. Is there anybody getting equivalent rss downside? Anyone who is aware of kindly respond. Thnkx

  31. Write more, thats all I have to say. Literally, it seems as though you relied on the video to make your point. You definitely know what youre talking about, why throw away your intelligence on just posting videos to your weblog when you could be giving us something informative to read?

  32. magnificent points altogether, you just gained a new reader. What would you recommend about your publish that you just made a few days in the past? Any positive?

  33. After study a few of the blog posts on your website now, and I truly like your way of blogging. I bookmarked it to my bookmark website list and will be checking back soon. Pls check out my web site as well and let me know what you think.

  34. I simply couldn’t go away your site prior to suggesting that I extremely enjoyed the usual info an individual provide on your guests? Is going to be back ceaselessly to inspect new posts.

  35. Hi there this is kinda of off topic but I was wondering if blogs use WYSIWYG editors or if you have to manually code with HTML. I’m starting a blog soon but have no coding expertise so I wanted to get advice from someone with experience. Any help would be enormously appreciated!

  36. you are really a good webmaster. The website loading speed is incredible. It seems that you are doing any unique trick. Moreover, The contents are masterwork. you have done a fantastic job on this topic!

  37. Hey very nice website!! Man .. Beautiful .. Amazing .. I will bookmark your blog and take the feeds also…I’m happy to find numerous useful info here in the post, we need develop more strategies in this regard, thanks for sharing. . . . . .

  38. I think this is one of the most significant info for me. And i am glad reading your article. But should remark on some general things, The web site style is wonderful, the articles is really nice : D. Good job, cheers

Leave a Reply

Your email address will not be published. Required fields are marked *