发布新日志

  • Computer Basics 读书笔记 - Memory(2)

    2008-12-04 11:37:12

    CPU从Memory Card中读取数据所花费的时间比CPU处理数据的时间要长。-- 所以有了cache的概念

    cache: 存储CPU最经常要用的数据,CPU需要的时候可即时用上。

    如何实现:

    • 在CPU中建立一小块内存。分为:Primary or Level One cache.
      • Level One:2-64KB
    • 在内存中驻留一块,称secondary or level 2 cache,直接与CPU连接
      • Level 2:256KB- 2MB
      • 主板上有一块专用集成电路称L2 Controller,控制CPU对level 2 cache的使用

    当然现在许多高性能的CPU中,level 2 cache 直接建在其中了。

     

    RAM的速度取决于两个因素:

    bus width: RAM可同时发送的位数

    bus speed:

      
    Latency:The gap between processor's speed and a computer's bus speed.

    Virtual Memory: 将RAM中不常用的部分复制到硬盘中。


  • Computer Basics 读书笔记 - Memory

    2008-12-01 11:11:40

    准备恶补计算机基础知识,找到下面这个网站,开始了。请大家也推荐其它好网站哦

    http://computer.howstuffworks.com/computer-memory1.htm

    先从内存开始。

    CPU 访问硬盘的速度远远低于访问内存的速度。

    大部分类型的内存是用来暂时存储数据。

    Data process:
                      Most                             CPU
    Input/hard drive -----> RAM(Random Access Memory) ------> Cache
                                                      ------> Registry
    多数数据先进入RAM, 然后CPU将各数据存于cache,并在注册表中创建访问这些数据的一些Instruction。

    场景1 - 开机

    Computer ---> Load data from ROM

      • Perfrom POST (Power-on self -test)
      • Memory Controller: 检查内存地址的读写,确保内存条无误

          ----> Load BIOS from ROM

          ----> Load OS from the hard drive into RAM

    RAM holds the critical part of the OS.

    场景2 - 打开和关闭应用程序

    Open Application ------> Loaded into RAM

      • Initially only the essential parts
      • Other parts when needed
      • Any Files opened

    Save File/Close Application ------->

      • File written to storage device
      • File and application purged from RAM

    Memroy Leak



Open Toolbar