参考链接:
Trace32 多核系统调试
多核处理器基础SMP&&BMP
基于多核处理器的RTOS多核扩展分析与研究
多核:操作系统3种处理模式(SMP+AMP+BMP)
Linux 和 SMP(对称多处理)
多核处理器将多个较低主频的处理核心集成到一个芯片内部,通过提高IPC(Instruction Per Clock)来提升处理器性能。多核处理器构架在提升性能的同时又降低了功耗,显然是嵌入式设备上处理器的理想选择。在这样的背景下,支持多核处理器的RTOS(Real Time Operating System)成为当前研究的热点,尤其是支持SMP(Symmetric Multi-Processing)的RTOS因具有较高的性能和功耗比、容易实现负载均衡等优点,更能发挥多核并行处理的优势。
1.AMP
AMP system的主要特征如下:
- multiple CPUs
- each of which may be a different architecture [but can be the same]
- each has its own address space
- each may or may not run an OS [and the OSes need not be the same]
- some kind of communication facility between the CPUs is provided
AMP的特征是:多个CPU,各个CPU在架构上不一样,每个CPU内核运行一个独立的操作系统或同一操作系统的独立实例,每个CPU拥有自己的独立资源。这种结构最大的特点在于不共享资源。
2. SMP
SMP system的主要特征如下:
- multiple CPUs
- each of which has the same architecture
- CPUs share memory space [or, at least, some of it]
- normally an OS is used and this is a single instance that runs on all the CPUs, dividing work between them
- some kind of communication facility between the CPUs is provided [and this is normally shared memory]
SMP的特征是:只有一个操作系统实例,运行在多个CPU上,每个CPU的结构都是一样的,内存、资源共享。这种系统有一个最大的特点就是共享所有资源。
名称 | 特点 | |
---|---|---|
Symmetric Multi-Processing (SMP) | 对称多处理器结构 | 每个CPU内核运行一个独立的操作系统或同一操作系统的独立实例(instantiation) |
Asymmetric Multi-Processing (AMP) | 非对称多处理器结构 | 一个操作系统的实例可以同时管理所有CPU内核,且应用并不绑定某一个内核。 |
Bound Multi-Processing (BMP) | 混合多处理器结构 | 一个操作系统的实例可以同时管理所有CPU内核,但每个应用被锁定于某个指定的核心。 |