A-Level Edexcel Computer Science: Memory | A-Level Edexcel 计算机:存储器考点精讲

📚 A-Level Edexcel Computer Science: Memory | A-Level Edexcel 计算机:存储器考点精讲

Memory and storage are foundational topics in the Edexcel A-Level Computer Science specification. Understanding the different types of memory, their roles, and how they interact with the processor is essential for both the written examination and practical problem-solving. This article breaks down the key concepts into clear, exam-focused sections, covering everything from primary memory and cache to secondary storage devices and the memory hierarchy. Each point is presented in English followed by Chinese to support bilingual revision.

存储与存储器是 Edexcel A-Level 计算机科学考纲中的基础主题。理解不同类型存储器的作用、它们如何与处理器交互,对于笔试和实际问题解决都至关重要。本文将关键概念拆分为清晰的、聚焦考试的专题,涵盖从主存、高速缓存到辅助存储设备以及存储器层次的方方面面。每个要点均以英文和中文配对呈现,以支持双语复习。


1. Memory in the Computer System | 计算机系统中的存储器

Memory in a computer system refers to the physical devices used to store programs (sequences of instructions) and data on a temporary or permanent basis. The Edexcel specification distinguishes between primary memory (directly accessible by the CPU) and secondary storage (non-volatile, long-term storage). The performance of a system heavily depends on memory speed, capacity, and cost.

计算机系统中的存储器指用于临时或永久存储程序(指令序列)和数据的物理设备。Edexcel 考纲区分了主存(CPU 可直接访问)和辅助存储(非易失、长期存储)。系统的性能在很大程度上取决于存储器的速度、容量与成本。

Two key characteristics govern memory: volatility and access method. Volatile memory loses its contents when power is turned off; non-volatile memory retains data. Random access means any storage location can be accessed in roughly the same time, while sequential access requires reading through previous data to reach a specific point.

存储器的两个关键特性是易失性和存取方式。易失性存储器断电后内容丢失;非易失性存储器则保留数据。随机存取意味着任何存储单元都可在大致相同的时间内访问,而顺序存取需要逐个读取前面的数据才能到达特定位置。


2. Primary Memory: RAM and ROM | 主存:RAM 与 ROM

Primary memory consists of RAM (Random Access Memory) and ROM (Read Only Memory). RAM is volatile, used to hold the operating system, currently running applications, and data being processed. Modern systems typically use DRAM (Dynamic RAM) which must be refreshed thousands of times per second, or SRAM (Static RAM) which is faster and more expensive, often used in cache.

主存由 RAM(随机存取存储器)和 ROM(只读存储器)组成。RAM 是易失的,用于存放操作系统、当前运行的应用程序以及正在处理的数据。现代系统通常使用 DRAM(动态 RAM),需要每秒刷新数千次,或使用更快更贵的 SRAM(静态 RAM),常用于高速缓存。

ROM is non-volatile and stores firmware such as the BIOS (Basic Input/Output System) or UEFI. Its contents are written during manufacture and cannot be easily modified. Variations like PROM, EPROM, and EEPROM allow some degree of reprogramming, with EEPROM (Electrically Erasable Programmable ROM) being used in flash memory for BIOS updates.

ROM 是非易失性的,存储诸如 BIOS 或 UEFI 之类的固件。其内容在制造时写入,通常不易修改。PROM、EPROM 和 EEPROM 等变体允许某种程度的重编程,其中 EEPROM(电可擦除可编程 ROM)用于闪存以实现 BIOS 更新。


3. Cache Memory | 高速缓存

Cache memory is a small, high-speed memory located close to or inside the CPU. It stores frequently accessed instructions and data to reduce the average time needed to access main memory (RAM). Edexcel candidates should be familiar with the levels of cache: L1 (fastest, smallest, per core), L2 (larger, slightly slower, may be shared), and L3 (largest, slowest, shared across all cores).

高速缓存是一种位于 CPU 附近或内部的小容量高速存储器。它存储频繁访问的指令和数据,以减少访问主存(RAM)所需的平均时间。Edexcel 考生应了解缓存的层次:L1(最快、最小、每核独立)、L2(较大、稍慢、可共享)和 L3(最大、最慢、所有核共享)。

The principle of locality explains cache effectiveness: temporal locality means recently used data is likely to be used again soon; spatial locality means data near recently accessed data is likely to be used. When the CPU finds data in cache, it is a cache hit; otherwise, a cache miss triggers a fetch from slower RAM or disk.

局部性原理解释了缓存的有效性:时间局部性指最近使用的数据很可能很快再次使用;空间局部性指靠近最近访问数据的数据很可能被用到。当 CPU 在缓存中找到数据时,称为缓存命中;否则发生缓存缺失,将从较慢的 RAM 或磁盘中读取。


4. Virtual Memory | 虚拟内存

Virtual memory is a memory management technique that uses secondary storage (typically an SSD or HDD) as an extension of RAM. When the main memory is full, the operating system moves infrequently used pages to a reserved area on disk, called a page file or swap space. This allows a computer to run programs larger than physical RAM.

虚拟内存是一种内存管理技术,它使用辅助存储(通常是 SSD 或 HDD)作为 RAM 的扩展。当主存已满时,操作系统将不常用的页面移动到磁盘上预留的区域,称为页面文件或交换空间。这使得计算机可以运行比物理 RAM 更大的程序。

The process of swapping pages between RAM and disk is known as paging. Frequent page faults occur when the system constantly moves data back and forth, leading to a condition called thrashing, which dramatically degrades performance. Edexcel questions often ask about the relationship between RAM size and virtual memory utility.

在 RAM 和磁盘之间交换页面的过程称为分页。如果系统不断来回移动数据,就会发生频繁的缺页,导致一种称为颠簸的状态,这会严重降低性能。Edexcel 考题常询问 RAM 大小与虚拟内存效用之间的关系。


5. Secondary Storage Overview | 辅助存储概述

Secondary storage provides non-volatile, long-term storage for programs and data. Unlike primary memory, it is not directly accessible by the CPU; data must be copied to RAM first. Key characteristics include capacity, access speed, portability, durability, and cost per gigabyte.

辅助存储为程序和数据提供非易失性的长期存储。与主存不同,CPU 不能直接访问它;数据必须先复制到 RAM。其主要特性包括容量、访问速度、便携性、耐用性以及每 GB 成本。

Edexcel expects you to compare magnetic, optical, and solid-state storage across these metrics. Storage devices are categorised by their underlying technology, and understanding their principle of operation is important for justifying choices in given scenarios.

Edexcel 期望你能够比较磁存储、光存储和固态存储在各项指标上的优劣。存储设备依据其底层技术分类,理解它们的工作原理对于在给定场景中做合理选择十分重要。


6. Magnetic Storage | 磁存储

Magnetic storage uses magnetised platters and read/write heads. In a hard disk drive (HDD), data is stored in concentric tracks divided into sectors. The read/write head floats above the spinning platter to read or alter magnetic patterns. Access time consists of seek time, rotational latency, and data transfer time.

磁存储使用磁化盘片和读写磁头。在硬盘驱动器(HDD)中,数据存储在划分为扇区的同心磁道上。读写磁头悬浮在旋转的盘片上方,读取或改变磁性图案。存取时间由寻道时间、旋转延迟和数据传输时间组成。

HDDs offer large capacities at a low cost per gigabyte and are still widely used for bulk storage and backups. However, they are relatively slow, susceptible to physical shock, and consume more power than solid-state alternatives. The Edexcel exam may ask you to calculate capacity from geometry: number of platters x 2 surfaces x tracks per surface x sectors per track x sector size.

HDD 提供大容量、低每 GB 成本,仍广泛用于大容量存储和备份。不过,其速度相对较慢,易受物理震动影响,比固态方案耗电更多。Edexcel 考试可能要求你通过几何参数计算容量:盘片数 × 2 个表面 × 每表面磁道数 × 每磁道扇区数 × 扇区大小。


7. Optical Storage | 光存储

Optical storage devices use lasers to read and write data on reflective discs. Compact Discs (CD), Digital Versatile Discs (DVD), and Blu-ray discs differ mainly in the laser wavelength and pit size, allowing different capacities. Data is stored along a single spiral track in a series of pits and lands.

光存储设备使用激光在反光光盘上读写数据。光盘 (CD)、数字多功能光盘 (DVD) 和蓝光光盘的主要区别在于激光波长和凹坑大小,从而实现不同的容量。数据沿着单条螺旋磁道以一连串凹坑与平面存储。

CDs typically hold 700 MB, DVDs 4.7 GB (single-layer), and Blu-ray discs 25 GB (single-layer). They are portable, inexpensive, and immune to magnetic fields, but have slower access speeds and are less durable against scratches. Recordable variants use a dye layer that can be altered by a higher-power laser.

CD 通常容量为 700 MB,DVD 为 4.7 GB(单层),蓝光光盘为 25 GB(单层)。它们便携、廉价,不受磁场影响,但存取速度较慢,且不耐划擦。可刻录版本使用可被高功率激光改变的染料层。


8. Solid State Storage | 固态存储

Solid state drives (SSDs) and USB flash drives rely on NAND flash memory. They store data as electric charges in floating-gate transistors, organised into pages and blocks. With no moving parts, they are more robust, faster (especially for random access), and consume less power than HDDs.

固态硬盘 (SSD) 和 USB 闪存驱动器依赖 NAND 闪存。它们将数据以电荷形式存储在浮栅晶体管中,按页和块进行组织。由于没有活动部件,它们比 HDD 更坚固、更快(尤其对于随机存取),且功耗更低。

A limiting factor is write endurance: each cell can endure only a finite number of program/erase cycles. Wear levelling algorithms distribute writes evenly across the drive. Edexcel may ask you to explain why SSDs slow down over time or why TRIM commands are useful.

一个限制因素是写入耐久度:每个存储单元只能承受有限次数的编程/擦除周期。磨损均衡算法会将写入均匀地分布在整个驱动器中。Edexcel 可能会要求你解释为何 SSD 会随时间变慢,或 TRIM 命令为何有用。


9. Memory Hierarchy | 存储器层次结构

The memory hierarchy organises storage types by speed, size, and cost. At the top are registers (fastest, smallest), then cache (L1, L2, L3), main memory (RAM), and secondary storage (SSD/HDD). Generally, as speed increases, cost per bit rises and capacity shrinks.

存储器层次结构按速度、容量和成本组织存储类型。最顶层是寄存器(最快、最小),然后是缓存(L1、L2、L3)、主存(RAM),最后是辅助存储(SSD/HDD)。一般来说,速度越快,每位成本越高,容量越小。

This hierarchy exploits the principle that not all data is needed equally at the same time. Frequently used data migrates towards faster, smaller levels, while less frequently used data resides in slower, larger, cheaper levels. Understanding this trade-off is fundamental to computer architecture questions on the Edexcel paper.

这一层次结构利用了一个原理:并非所有数据都需要同时同等频繁地使用。常用数据会搬移到更快、更小的层次,而不常用数据则驻留在更慢、更大、更便宜的层次。理解这种权衡对于 Edexcel 试卷中的计算机体系结构题目至关重要。


10. Exam Tips and Common Pitfalls | 考试技巧与常见误区

Be precise with terminology: ‘memory’ usually refers to RAM, while ‘storage’ refers to secondary devices like HDDs and SSDs. When asked to describe virtual memory, always mention the role of the page file and the concept of swapping. Avoid confusing RAM and ROM volatility.

术语要精准:“memory” 通常指 RAM,而 “storage” 指 HDD 和 SSD 等辅助设备。当被要求描述虚拟内存时,务必提到页面文件的作用和交换的概念。避免混淆 RAM 和 ROM 的易失性。

In capacity calculations, ensure you use the correct units: bit, byte, KiB (2¹⁰ bytes), MiB (2²⁰ bytes), GiB (2³⁰ bytes). Many candidates lose marks by using decimal prefixes (kB, MB, GB) incorrectly. For HDD geometry calcuations, read the question carefully to see whether it uses decimal or binary prefixes, and show all working clearly.

在进行容量计算时,确保使用正确的单位:位、字节、KiB(2¹⁰ 字节)、MiB(2²⁰ 字节)、GiB(2³⁰ 字节)。许多考生因为错误地使用十进制前缀(kB、MB、GB)而丢分。对于 HDD 几何参数计算,仔细审题看是使用十进制还是二进制前缀,并清晰地展示所有计算过程。

When comparing storage technologies, structure your answer around attributes like speed, capacity, cost, portability, reliability, and suitability for given scenarios. Practice drawing and labelling the memory hierarchy diagram – it is a common requirement in extended response questions.

在比较存储技术时,围绕速度、容量、成本、便携性、可靠性和给定场景的适用性等属性组织答案。练习绘制并标注存储器层次结构图——这是扩展回答题中的常见要求。

Published by TutorHao | Computer Science Revision Series | aleveler.com

更多咨询请联系16621398022(同微信)

Comments

屏轩国际教育cambridge primary/secondary checkpoint, cat4, ukiset,ukcat,igcse,alevel,PAT,STEP,MAT, ibdp,ap,ssat,sat,sat2课程辅导,国外大学本科硕士研究生博士课程论文辅导Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from aleveler.com

Subscribe now to keep reading and get access to the full archive.

Continue reading

Exit mobile version