随笔分类 -  os

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页

perl: warning: Please check that your locale settings:
摘要:perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_HK:en", LC_ALL = (unset), LANG = "en_HK.UT 阅读全文

posted @ 2020-11-28 12:30 tycoon3 阅读(519) 评论(0) 推荐(0)

Linux Kernel中AEP的现状和发展
摘要:AEP简介 AEP是Intel推出的一种新型的非易失Optane Memory设备,又被称作Apache Pass,所以一般习惯称作AEP。在这之前也有类似的设备称作NVDIMM或PMEM,目前Linux创建的AEP设备节点也是叫做pmem(如/dev/pmem0),所以本文中NVDIMM或PMEM 阅读全文

posted @ 2020-11-27 14:25 tycoon3 阅读(858) 评论(0) 推荐(0)

kata createEndpoint
摘要:{ “device”:”tap1”, “name”:”eth1”, “IPAddresses”:[{“address”:”172.17.1.10”,”mask”:”24”}], “mtu”:1300, “hwAddr”:”02:42:20:6f:a2:80” “vhostUserSocket”:”/ 阅读全文

posted @ 2020-11-26 11:14 tycoon3 阅读(103) 评论(0) 推荐(0)

runtime api
摘要:virtcontainers/api 阅读全文

posted @ 2020-11-25 20:31 tycoon3 阅读(99) 评论(0) 推荐(0)

Launch a Kata Containers container using SR-IOV
摘要:https://github.com/kata-containers/runtime/issues/1876 插件扩展 https://m.php.cn/manual/view/36157.html 网络驱动插件与群模式 Docker 1.12增加了对群集管理和编排的支持,称为群集模式。以群集模式运 阅读全文

posted @ 2020-11-25 19:16 tycoon3 阅读(415) 评论(0) 推荐(0)

Docker及Kubernetes下device使用和分析
摘要:--device挂载的设备,容器内的进程通常没有权限操作,需要使用--cap-add开放相应的权限,如下 Kubernetes下使用device Kubernetes支持--device问题在社区上讨论了很久,感兴趣的可以看下#5607。当前的解决方案是使用device plugins机制来注册要访 阅读全文

posted @ 2020-11-25 10:47 tycoon3 阅读(4433) 评论(0) 推荐(0)

kata + docker run & star
摘要:func (r *runner) run(config *specs.Process) (int, error) { if err := r.checkTerminal(config); err != nil { r.destroy() return -1, err } process, err : 阅读全文

posted @ 2020-11-24 20:34 tycoon3 阅读(243) 评论(0) 推荐(0)

libcontainer nsexec + unshare + syscall(SYS_setns
摘要:// execSetns runs the process that executes C code to perform the setns calls // because setns support requires the C process to fork off a child and 阅读全文

posted @ 2020-11-24 19:48 tycoon3 阅读(771) 评论(0) 推荐(0)

docker createHooks
摘要:go-nsenter https://github.com/Devatoria/go-nsenter package main import ( "fmt" "github.com/Devatoria/go-nsenter" ) func main() { config := &nsenter.Co 阅读全文

posted @ 2020-11-24 19:29 tycoon3 阅读(287) 评论(0) 推荐(0)

mount namespace
摘要:root@ubuntu:/home/ubuntu/test/learning/namespaces/Mount_001# go run Mount_001.go run ERRO[0000] no such file or directory root@nshost:/# root@nshost:/ 阅读全文

posted @ 2020-11-24 16:58 tycoon3 阅读(154) 评论(0) 推荐(0)

exec.Command("/proc/self/exe", "child")
摘要:package main import ( "flag" "os" "os/exec" "syscall" "github.com/sirupsen/logrus" ) func main() { var nsShell, nsHostName, rootPath string flag.Strin 阅读全文

posted @ 2020-11-24 16:36 tycoon3 阅读(450) 评论(0) 推荐(0)

利用setns()将进程加入一个新的network namespace
摘要:root@ubuntu:/home/ubuntu# docker run -itd --name test ubuntu /bin/bash 86d1bf0df1c9ff0a705be14b5263473f5c2d2bbbcc01b7159494047d74a51647 root@ubuntu:/h 阅读全文

posted @ 2020-11-24 15:59 tycoon3 阅读(436) 评论(0) 推荐(0)

cgcreate cgexec cgroup
摘要:首先在 cpu 子系统下面创建了一个 halfapi 的子节点:cgcreate abc:abc -g cpu:halfapi。 然后在配置文件中写入配置数据:echo 50000 > /cgroup/cpu/halfapi/cpu.cfs_quota_us。cpu.cfs_quota_us中的默认 阅读全文

posted @ 2020-11-23 17:31 tycoon3 阅读(983) 评论(0) 推荐(0)

bjusybox /bin/sh: client: not found
摘要:换成 docker export $(docker create busybox) | tar -C rootfs -xvf - 之前移植了 filesystem/initrd,用的 busybox 是 v1.25.0,但运行一个最简单的 Hello world 程序都提示 -/bin/sh: ./ 阅读全文

posted @ 2020-11-20 16:35 tycoon3 阅读(317) 评论(0) 推荐(0)

unix socket 跨namespace
摘要:UNIX socket that spans two different mount namespaces The “init” process can establish a communication channel between the parent namespace and the ch 阅读全文

posted @ 2020-11-20 16:32 tycoon3 阅读(554) 评论(0) 推荐(0)

mount namespace
摘要:挂载proc文件系统 前文中已经提到,如果你在新的PID namespace中使用ps命令查看,看到的还是所有的进程,因为与PID直接相关的/proc文件系统(procfs)没有挂载到与原/proc不同的位置。所以如果你只想看到PID namespace本身应该看到的进程,需要重新挂载/proc,命 阅读全文

posted @ 2020-11-20 14:50 tycoon3 阅读(193) 评论(0) 推荐(0)

IPC namespace nsenter
摘要:nsenter https://www.cnblogs.com/sparkdev/p/9400673.html 与 namespace 相关的工具 unshare 命令unshare 命令把当前进程加入到一个新建的 namespace 中,然后运行指定的程序(不指定目标程序则运行系统的默认 shel 阅读全文

posted @ 2020-11-20 14:47 tycoon3 阅读(299) 评论(0) 推荐(0)

内核编译内置built in
摘要:ubuntu@ubuntu:linux-5.4.60-89/drivers/input$ cat built-in.a !<thin> // 476 ` input.o/ input-compat.o/ input-mt.o/ input-poller.o/ ff-core.o/ mousedev. 阅读全文

posted @ 2020-11-19 19:00 tycoon3 阅读(482) 评论(0) 推荐(0)

prepareRootfs +createDevices
摘要:// prepareRootfs sets up the devices, mount points, and filesystems for use // inside a new mount namespace. It doesn't set anything as ro. You must c 阅读全文

posted @ 2020-11-18 15:21 tycoon3 阅读(178) 评论(0) 推荐(0)

cat /proc/bus/input/devices dev/input
摘要:root@ubuntu:~# ls /dev/input/ by-id by-path event0 event1 event2 js0 mice mouse0 root@ubuntu:~# ls /dev/input/ by-id by-path event0 event1 event2 js0 阅读全文

posted @ 2020-11-18 15:11 tycoon3 阅读(1288) 评论(0) 推荐(0)

上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 23 下一页

导航