摘要:
简单一点,写一个字符设备驱动。 首先我们希望在/dev下面出现一个新的字符设备文件。 1. 分配一个设备号; int alloc_chrdev_region(dev_t *dev, unsigned int firstminor, unsigned int count, char *name); 示 阅读全文
摘要:
编辑文件 /var/lib/kubelet/kubeadm-flags.env,将 containerd 运行时添加到标志中; --container-runtime-endpoint=unix:///run/containerd/containerd.sock。 阅读全文
摘要:
将cache信息透传如虚拟机有助于guest kernel更好的进行负载均衡,甚至于减少IPI中断【1】。 使用qemu命令行: qemu-system-x86_64 \ -cpu host,host-cache-info=on,topoext \ 使用libvirt,virt-install vi 阅读全文
摘要:
在anolis上编译内核时碰到- SSL error:0909006C:PEM routines:get_name:no start line: crypto/pem/pem_lib.c:745的问题, # make modules_install INSTALL /lib/modules/6.9. 阅读全文
摘要:
前面的一篇文章在qemu中配置pci bus和numa node亲和性 - 半山随笔 - 博客园 (cnblogs.com)中记录了如何使用qemu命令行来设置pci bus与numa的亲和性。本篇来记录如何使用libvirt来做同样的事。 libvirt相较于qemu是一个更高层的工具,在提供便捷 阅读全文
摘要:
初学libvirt,感觉还挺方便的。它能够像daemon一样运行一个稳定的VM,相比直接用qemu命令行是方便多了。这里记录一下我如何绑定numa node。 不知道能不能直接在创建虚拟机的时候绑定numa,我是在xml中设置的。 安装libvirt,略去。在host上创建一个网桥,libvirt以 阅读全文
摘要:
在多numa node的物理机中,pci bus常常是连接到其中一个numa上。如此,不同的numa节点访问该pci bus下的设备的访问速度是不同的。基于此常常要将访问该设备的负载绑定到对应的numa node上可以提供性能。 对于qemu虚拟机也可以模拟pci bus与numa之间的亲和性。在x 阅读全文
摘要:
编kernel module的时候碰到generated/autoconf.h: No such file or directory的问题。开始以为又是host上的库缺失,折腾许久,发现是kernel 源码没有生成自动生成的文件。 编译kernel module的时候,原始的kernel源码还不能作 阅读全文
摘要:
You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to 阅读全文
摘要:
对一个新系统,编译kernel需要预装很多工具,这里总结以下,一并安装。以ubuntu为例: apt update; apt install -y flex bison make build-essential libncurses-dev libssl-dev libelf-dev centos 阅读全文