96是什么意思| 喝莓茶有什么好处| 在岸人民币和离岸人民币什么意思| 日金念什么| 吃什么会食物中毒| 信物是什么意思| 海苔吃多了有什么坏处| 身上起小红点是什么原因| 听之任之是什么意思| 切除一侧输卵管对女性有什么影响| 八七年属兔的是什么命| 什么是公职人员| 女生吃什么能淡化胡子| 胎盘位于前壁是什么意思| 脚筋疼是什么原因| 石英是什么| 硌人什么意思| 世袭罔替什么意思| 余田是什么字| 眼皮发黑是什么病症| 脸上老是长闭口粉刺是什么原因| 学子是什么意思| 爸爸的姐姐应该叫什么| 印第安纹是什么| 四次元是什么意思| 纳豆是什么味道| 缺少雌激素的女性会有什么症状| 什么牌子冰箱好| 财不外露什么意思| 猫眼是什么| 什么是神经衰弱| 缺锌会导致什么| 猪跟什么生肖配对最好| 印度人为什么用手抓饭吃| 茯苓泡水喝有什么功效| 萎缩性胃炎吃什么药能治好| cheese什么意思| 弱冠是什么意思| 什么叫临床医学| 体虚是什么原因引起的| 大姨妈吃什么水果最好| 鲁迅原名叫什么| 戏是什么意思| 子宫腺肌症是什么病| 胎盘1级什么意思| 六月八号是什么星座| 禀报是什么意思| 流黄鼻涕是什么原因| 长痘吃什么水果好| 阴唇萎缩是什么原因| 倩字五行属什么| 彩金是什么材质| 大姨妈来的少是什么原因| 惊世骇俗的意思是什么| 全身水肿是什么原因引起的| 望梅止渴是什么故事| 人格是什么意思| 蕴字五行属什么| 势利眼的人有什么特征| 山炮是什么意思| 青鸾是什么意思| 天衣无缝什么意思| 南北杏和什么煲汤止咳化痰| 眩晕症是什么原因引起| 蚕屎做枕头有什么好处| 为什么印度人叫阿三| 溃疡是什么原因引起的| 眼睛不好吃什么补眼睛| 月经量减少是什么原因| 射手座跟什么星座最配| 镇长属于什么级别| 男朋友生日送什么礼物| 纳差是什么意思| 10月24日什么星座| 床单什么颜色有助于睡眠| 生殖感染有什么症状| 好运连连是什么意思| 经常掏耳朵有什么危害| 肺动脉流什么血| 在干什么| 阴道口长什么样| 高频是什么意思| 按摩是什么意思| 阴骘是什么意思| 一到晚上就咳嗽是什么原因| 胃炎吃什么食物好得快| 大血小板比率偏高是什么原因| 鸡眼长什么样子| 清明节干什么| hiv是什么意思| 肾上腺增生是什么意思| 肝血管瘤是什么病| 什么是代偿| 柳枝什么的什么的| 明朝北京叫什么| 30周做什么检查| 什么的绿毯| yearcon是什么牌子| 喝酒断片是什么原因| 检查喉咙挂什么科| 甲亢是什么原因引起的| hbeab阳性是什么意思| female什么意思| 胃镜是什么| 什么是好词| 寡淡是什么意思| 公鸡为什么会打鸣| 情感细腻是什么意思| 肾萎缩是什么原因引起的| 青枝骨折是什么意思| 黄瓜和什么一起炒好吃| 眉毛变白是什么原因| 区武装部部长是什么级别| 款款是什么意思| 早上睡不醒是什么原因| met什么意思| 农历8月20日是什么星座| 巨蟹和什么星座最配| 超生是什么意思| hibor是什么意思| 息斯敏是什么药| 老豆是什么意思| 马骝是什么意思| 男性尿道口流脓吃什么药最管用| 蓝色小药丸是什么| complex是什么意思| 胡字五行属什么| 什么红| 血糖偏高可以吃什么水果| 牛肉炒什么菜| 鼻甲肥大是什么原因| 工作坊是什么意思| 气阴两虚吃什么药| 嘴唇上火起泡是什么原因| 膀胱充盈欠佳是什么意思| 淋巴结钙化是什么意思| eu是什么元素| 什么是英语自然拼读| 尿急吃什么药| 食管ca是什么意思| 喜丧是什么意思| 为什么会缺乏维生素d| 护理考研考什么| 炖鸡汤放什么材料| 张家界地貌属于什么地貌| 927是什么意思| 面色少华是什么意思| 什么时候打仗| 山东日照有什么好玩的| 手发胀是什么原因| 板蓝根长什么样| 琼瑶是什么意思| 23号来月经什么时候是排卵期| 女性分泌物增多发黄是什么原因| 长期喝山楂水有什么好处和坏处| 胃寒吃什么药好| 秋葵对痛风有什么好处| 西柚是什么水果| 舌尖疼吃什么药| 潘驴邓小闲什么意思| 肠易激综合症用什么药能治好| 为什么大熊猫是国宝| 尿路感染需要做什么检查| 出单是什么意思| 今年是什么年| ar是什么元素| 吃完头孢不能吃什么| 宇五行属性是什么| 梦见离家出走是什么意思| 气化是什么意思| 子弟是什么意思| 六合什么意思| 春节的习俗是什么| 手抖是什么原因| 冰激凌和冰淇淋有什么区别| 梦见黑熊是什么预兆| 县公安局局长什么级别| 办理生育津贴需要什么资料| 妇科炎症用什么药最好| 安享晚年是什么意思| 强化灶是什么意思| 表姐的儿子叫什么| 古人的婚礼在什么时间举行| 什么病不能吃空心菜| 人参补什么| roa是什么胎位| 前列腺不能吃什么食物| 螳螂吃什么食物| 运是什么结构| 想字五行属什么| 数字7的风水含义是什么| 8月8是什么星座| hpv阳性意味着什么| 二月二十是什么星座| 坐西向东是什么宅| 水可以加什么偏旁| 尿酸高吃什么| 造影检查是什么意思| 茄子与什么相克| 什么是碳足迹| 太平天国为什么会失败| 夏令时是什么| 屁股眼痒是什么原因| 肚脐下面疼是什么原因| 尿检蛋白质弱阳性是什么意思| 白什么什么| 切除子宫有什么危害| 次长是什么职位| 滴度是什么意思| 为什么老是掉头发| 刮痧是什么原理| 摩羯座是什么象星座| 气管痉挛是什么症状| 尿拉不出来是什么原因| 7月属于什么季节| 葵水是什么意思| rv是什么意思| yellow是什么颜色| marni是什么品牌| 蜂蜜什么时候喝最佳| 搞基是什么意思| 烫伤挂什么科室| 印泥干了用什么稀释| 欣赏是什么意思| 迪丽热巴是什么族| 白带是什么东西| 酸菜是什么菜做的| 黄体酮不足吃什么药| 胳肢窝疼痛是什么原因| 晚上经常做梦是什么原因| 左肩膀疼痛是什么原因| 突然想吐是什么原因| 阳气不足吃什么药| 决明子泡水喝有什么功效| 吃什么会变丑脑筋急转弯| 戏子是什么意思| wlw是什么意思| 冲服是什么意思| 肝经湿热吃什么中成药| 世界上最小的长度单位是什么| 男人肾虚吃什么好| 六月十三日是什么日子| 什么叫轻断食| 小脚趾麻木是什么原因| 渗透压偏高是什么原因| 产妇吃什么好| 沙门氏菌用什么药最好| 死了妻子的男人叫什么| 石榴红是什么颜色| 为什么一吃饭就拉肚子| 开塞露是什么| 518是什么星座| 冬至广东吃什么| 耳朵上长痘痘什么原因| 闺蜜是什么样的关系| 不讲武德什么意思| 暑湿感冒吃什么药| 上焦火吃什么药最有效| 花甲之年是什么意思| 荷花是什么形状的| 左眼跳什么意思| 舌苔发白吃什么药| 排查是什么意思| 猫有什么病会传染给人| 百度

用车智能后视镜真不算什么 看看那些可能会被

By: Jeff Tyson
computer memory
Most forms of computer memory are intended to store data temporarily. Take a look inside your computer with computer memory pictures. Brandon Goldman / Getty Images

When you think about it, it's amazing how many different types of electronic memory you encounter in daily life. Many of them have become an integral part of our vocabulary:

You already know that the computer in front of you has memory. What you may not know is that most of the electronic items you use every day have some form of memory also. Here are just a few examples of the many items that use memory:

Advertisement

In this article, you'll learn why there are so many different types of memory and what all of the terms mean. On the next page, let's start with the basics: What exactly does computer memory do?

Advertisement

Computer Memory Basics

Although memory is technically any form of electronic storage, it is used most often to identify fast, temporary forms of storage. If your computer's CPU had to constantly access the hard drive to retrieve every piece of data it needs, it would operate very slowly. When the information is kept in memory, the CPU can access it much more quickly. Most forms of memory are intended to store data temporarily.

The CPU accesses memory according to a distinct hierarchy. Whether it comes from permanent storage (the hard drive) or input (the keyboard), most data goes in random access memory (RAM) first. The CPU then stores pieces of data it will need to access, often in a cache, and maintains certain special instructions in the register. We'll talk about cache and registers later.

Advertisement

All of the components in your computer, such as the CPU, the hard drive and the operating system, work together as a team, and memory is one of the most essential parts of this team. From the moment you turn your computer on until the time you shut it down, your CPU is constantly using memory. Let's take a look at a typical scenario:

  • You turn the computer on.
  • The computer loads data from read-only memory (ROM) and performs a power-on self-test (POST) to make sure all the major components are functioning properly. As part of this test, the memory controller checks all of the memory addresses with a quick read/write operation to ensure that there are no errors in the memory chips. Read/write means that data is written to a bit and then read from that bit.
  • The computer loads the basic input/output system (BIOS) from ROM. The BIOS provides the most basic information about storage devices, boot sequence, security, Plug and Play (auto device recognition) capability and a few other items.
  • The computer loads the operating system (OS) from the hard drive into the system's RAM. Generally, the critical parts of the operating system are maintained in RAM as long as the computer is on. This allows the CPU to have immediate access to the operating system, which enhances the performance and functionality of the overall system.
  • When you open an application, it is loaded into RAM. To conserve RAM usage, many applications load only the essential parts of the program initially and then load other pieces as needed.
  • After an application is loaded, any files that are opened for use in that application are loaded into RAM.
  • When you save a file and close the application, the file is written to the specified storage device, and then it and the application are purged from RAM.

-In the list above, every time something is loaded or opened, it is placed into RAM. This simply means that it has been put in the computer's temporary storage area so that the CPU can access that information more easily. The CPU requests the data it needs from RAM, processes it and writes new data back to RAM in a continuous cycle. In most computers, this shuffling of data between the CPU and RAM happens millions of times every second. When an application is closed, it and any accompanying files are usually purged (deleted) from RAM to make room for new data. If the changed files are not saved to a permanent storage device before being purged, they are lost.

One common question about desktop computers that comes up all the time is, "Why does a computer need so many memory systems?"

Advertisement

Types of Computer Memory

A typical computer has:

Why so many? The answer to this question can teach you a lot about memory!

Advertisement

Fast, powerful CPUs need quick and easy access to large amounts of data in order to maximize their performance. If the CPU cannot get to the data it needs, it literally stops and waits for it. Modern CPUs running at speeds of about 1 gigahertz can consume massive amounts of data -- potentially billions of bytes per second. The problem that computer designers face is that memory that can keep up with a 1-gigahertz CPU is extremely expensive -- much more expensive than anyone can afford in large quantities.

Computer designers have solved the cost problem by "tiering" memory -- using expensive memory in small quantities and then backing it up with larger quantities of less expensive memory.

The cheapest form of read/write memory in wide use today is the hard disk. Hard disks provide large quantities of inexpensive, permanent storage. You can buy hard disk space for pennies per megabyte, but it can take a good bit of time (approaching a second) to read a megabyte off a hard disk. Because storage space on a hard disk is so cheap and plentiful, it forms the final stage of a CPUs memory hierarchy, called virtual memory.

The next level of the hierarchy is RAM. We discuss RAM in detail in How RAM Works, but several points about RAM are important here.

The bit size of a CPU tells you how many bytes of information it can access from RAM at the same time. For example, a 16-bit CPU can process 2 bytes at a time (1 byte = 8 bits, so 16 bits = 2 bytes), and a 64-bit CPU can process 8 bytes at a time.

Megahertz (MHz) is a measure of a CPU's processing speed, or clock cycle, in millions per second. So, a 32-bit 800-MHz Pentium III can potentially process 4 bytes simultaneously, 800 million times per second (possibly more based on pipelining)! The goal of the memory system is to meet those requirements.

A computer's system RAM alone is not fast enough to match the speed of the CPU. That is why you need a cache (discussed later). However, the faster RAM is, the better. Most chips today operate with a cycle rate of 50 to 70 nanoseconds. The read/write speed is typically a function of the type of RAM used, such as DRAM, SDRAM, RAMBUS. We will talk about these various types of memory later.

First, let's talk about system RAM.

Advertisement

System RAM

System RAM speed is controlled by bus width and bus speed. Bus width refers to the number of bits that can be sent to the CPU simultaneously, and bus speed refers to the number of times a group of bits can be sent each second. A bus cycle occurs every time data travels from memory to the CPU. For example, a 100-MHz 32-bit bus is theoretically capable of sending 4 bytes (32 bits divided by 8 = 4 bytes) of data to the CPU 100 million times per second, while a 66-MHz 16-bit bus can send 2 bytes of data 66 million times per second. If you do the math, you'll find that simply changing the bus width from 16 bits to 32 bits and the speed from 66 MHz to 100 MHz in our example allows for three times as much data (400 million bytes versus 132 million bytes) to pass through to the CPU every second.

In reality, RAM doesn't usually operate at optimum speed. Latency changes the equation radically. Latency refers to the number of clock cycles needed to read a bit of information. For example, RAM rated at 100 MHz is capable of sending a bit in 0.00000001 seconds, but may take 0.00000005 seconds to start the read process for the first bit. To compensate for latency, CPUs uses a special technique called burst mode.

Advertisement

Burst mode depends on the expectation that data requested by the CPU will be stored in sequential memory cells. The memory controller anticipates that whatever the CPU is working on will continue to come from this same series of memory addresses, so it reads several consecutive bits of data together. This means that only the first bit is subject to the full effect of latency; reading successive bits takes significantly less time. The rated burst mode of memory is normally expressed as four numbers separated by dashes. The first number tells you the number of clock cycles needed to begin a read operation; the second, third and fourth numbers tell you how many cycles are needed to read each consecutive bit in the row, also known as the wordline. For example: 5-1-1-1 tells you that it takes five cycles to read the first bit and one cycle for each bit after that. Obviously, the lower these numbers are, the better the performance of the memory.

Burst mode is often used in conjunction with pipelining, another means of minimizing the effects of latency. Pipelining organizes data retrieval into a sort of assembly-line process. The memory controller simultaneously reads one or more words from memory, sends the current word or words to the CPU and writes one or more words to memory cells. Used together, burst mode and pipelining can dramatically reduce the lag caused by latency.

So why wouldn't you buy the fastest, widest memory you can get? The speed and width of the memory's bus should match the system's bus. You can use memory designed to work at 100 MHz in a 66-MHz system, but it will run at the 66-MHz speed of the bus so there is no advantage, and 32-bit memory won't fit on a 16-bit bus.

Even with a wide and fast bus, it still takes longer for data to get from the memory card to the CPU than it takes for the CPU to actually process the data. That's where caches come in.

Advertisement

Cache and Registers

Caches are designed to alleviate this bottleneck by making the data used most often by the CPU instantly available. This is accomplished by building a small amount of memory, known as primary or level 1 cache, right into the CPU. Level 1 cache is very small, normally ranging between 2 kilobytes (KB) and 64 KB.

The secondary or level 2 cache typically resides on a memory card located near the CPU. The level 2 cache has a direct connection to the CPU. A dedicated integrated circuit on the motherboard, the L2 controller, regulates the use of the level 2 cache by the CPU. Depending on the CPU, the size of the level 2 cache ranges from 256 KB to 2 megabytes (MB). In most systems, data needed by the CPU is accessed from the cache approximately 95 percent of the time, greatly reducing the overhead needed when the CPU has to wait for data from the main memory.

Advertisement

Some inexpensive systems dispense with the level 2 cache altogether. Many high performance CPUs now have the level 2 cache actually built into the CPU chip itself. Therefore, the size of the level 2 cache and whether it is onboard (on the CPU) is a major determining factor in the performance of a CPU. For more details on caching, see How Caching Works.

A particular type of RAM, static random access memory (SRAM), is used primarily for cache. SRAM uses multiple transistors, typically four to six, for each memory cell. It has an external gate array known as a bistable multivibrator that switches, or flip-flops, between two states. This means that it does not have to be continually refreshed like DRAM. Each cell will maintain its data as long as it has power. Without the need for constant refreshing, SRAM can operate extremely quickly. But the complexity of each cell make it prohibitively expensive for use as standard RAM.

The SRAM in the cache can be asynchronous or synchronous. Synchronous SRAM is designed to exactly match the speed of the CPU, while asynchronous is not. That little bit of timing makes a difference in performance. Matching the CPU's clock speed is a good thing, so always look for synchronized SRAM. (For more information on the various types of RAM, see How RAM Works.)

The final step in memory is the registers. These are memory cells built right into the CPU that contain specific data needed by the CPU, particularly the arithmetic and logic unit (ALU). An integral part of the CPU itself, they are controlled directly by the compiler that sends information for the CPU to process. See How Microprocessors Work for details on registers.

For a handy printable guide to computer memory, you can print the HowStuffWorks Big List of Computer Memory Terms.

For more information on computer memory and related topics, check out the links on the next page.

Advertisement

Advertisement

Loading...
三维b片主治什么病 头孢吃多了有什么副作用 百思不得其解是什么意思 剖腹产什么时候可以洗澡 扁桃体发炎挂什么科
做梦梦到大蟒蛇是什么意思 七点半是什么时辰 淋巴滤泡增生用什么药能彻底治愈 爱妃是什么意思 麝牛是什么动物
光盘是什么 股票杠杆是什么意思 阴道干涩是什么原因 淋病和梅毒有什么区别 碧血是什么意思
喝什么茶能减肥 出梅是什么意思 大便很细是什么原因 为什么总是睡不着 balenciaga是什么牌子
多汗症是什么原因hcv9jop3ns2r.cn 天团是什么意思hcv8jop1ns6r.cn 眼睛里有红血丝是什么原因hcv9jop2ns2r.cn 妇科做活检是什么意思hcv7jop5ns3r.cn 湿气重不能吃什么hcv8jop6ns5r.cn
祥云是什么意思hcv8jop4ns2r.cn 胃发热是什么原因hcv9jop2ns3r.cn 芬太尼是什么hcv8jop8ns0r.cn 来姨妈头疼是什么原因tiangongnft.com 喝碳酸饮料有什么危害hcv7jop6ns5r.cn
宰相相当于现在的什么官hcv9jop7ns9r.cn 维民所止什么意思fenrenren.com 鸡肾炒什么配菜好吃hcv8jop0ns0r.cn 支付宝账号是什么youbangsi.com 汉尼拔是什么意思hcv9jop6ns6r.cn
试管移植后吃什么容易着床hanqikai.com 什么是边界感hcv8jop8ns3r.cn 本命年为什么不能结婚hcv9jop6ns4r.cn 山竹什么时候吃是应季hcv8jop2ns8r.cn 湿热会引起什么症状hcv8jop1ns6r.cn
百度