Operating system principles

Source: Internet
Author: User

CPU operator: responsible for the operation

Controller: Control CPU operation

Register: Store middle value "very small, expensive, high speed out of memory several orders of magnitude"

"An order of magnitude 1000 times times"

Cache SRAM static first-level cache: Instruction cache, data cache, generally less than 1M, the fastest

Second-level cache:

Level Three cache:

For multicore CPUs, tier One and level two caches are exclusive, and level three caches are common.

============================================

VGA GPU Graphics (data volume is very large, speed is very block)

||

cpu====> data Bus "North Bridge" data bus <==== Memory "RAM" dynamic DRAM

FSB front-end Bus | |

V-welded on the motherboard called the controller

"South Bridge" plug-in device called adapter

External device (I/O) Keyboard IDE (SATA) PCI MOUSE

=============================================

Interrupt Controller = = Interrupt number (vector) function: Let the CPU stop

Interrupt Register = = Command Counter = = Field protection

I/O prot <1~65535> functions: Enabling data exchange

The data is read into memory and then read into memory. Resume execution on return interrupt, onsite recovery.

Read into memory immediately after the execution, depends on the post-processing mechanism.


BIOS chip, there is a program, the power is written to the memory in the most 1M space, to achieve post.

DMA: Hard disk Direct access memory (interrupt), fixed an address 16M after bios1m in memory for DMA access

In the above 17M memory for a space after the kernel for use, 32-bit system accounted for about 900M.

Then the application space is used


The MMU is responsible for the conversion of the physical address to the linear address (virtual address)

============================================

local time of the program: loading the next process in advance

Space: Pre-and post-address of the current address is loaded to improve read speed


Any unit in memory can be cached in the cache, called a direct mapping.

Displacement strategy Lru/mru commonly used LRU


N-Way Correlation technology

1 Way associative the first address of the same interval 8 addresses (1, 8, 16, 24) can only be mapped to the same cache unit

1-Way correlation technology

2-way correlation technology ..... 8-Way correlation technology (fully correlated technology) to improve the hit unit.

=============================================

=============================================


This article from "Green Forest" blog, declined reprint!

Operating system principles

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.