1:什么是Mos
Mos是一款intel 开发的,针对HPC场景优化的os,目前已经开源,其开源网址为https://github.com/intel/mOS。
2:Mos和linux kernel的区别。
Mos 是在linux kernel的根目录下面加了一个mos的文件夹,里面放的是Mos的主要文件,总结一下,Mos就是内嵌到linux kernel中的一个轻量级os.
3: Mos 的工作原理
通过命令行参数 lwkcpus 和lwkmem 来隔离内存和cpu,或则通过lwkctl 来在linux kernel启动后来隔离cpu和内存。
其中lwkcpus的使用举例如下
lwkcpus=<syscall cpu1>.<lwkcpu set1>:<syscall cpu2>.<lwkcpu set2>...
For example:
lwkcpus=28.1-13,29-41:42.15-27,43-55
https://github.com/intel/mOS/wiki/mOS-for-HPC-v0.8-Administrator's-Guide
The following parameters and values are recommended for mOS for HPC. Not all combinations and variations of boot parameters have been validated and tested. Boot failure is possible if, for example, lwkcpus and lwkmem are not properly set for your system. The lwkcpus and lwkmem parameters can be omitted and the lightweight kernel partition created after booting using the lwkctl command. Please refer to Documentation/kernel-parameters.txt in the mOS for HPC kernel source for further details.
4:应用怎么运行到Mos上
正常不加任何前缀的话,应用运行在linux kernel上,加yod的话,应用运行在Mos中
https://github.com/intel/mOS/wiki/mOS-for-HPC-v0.8-User's-Guide
The yod utility of mOS is the fundamental mechanism for spawning LWK processes. The syntax is:
yod yod-arguments program program-arguments
5:linux kernel 和Mos的关系
Mos是被编译到linxu kernel中的,Mos是被linux kernel启动起来的,通过和linux kernel 隔离cpu和mem来实现和linux kernel 共存。