Mos 初体验

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 共存。

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值