摘要: nova中分软重启reboot(主要流程对应的是virsh shutdown(virDomainShutdown) + start(virDomainCreate/virDomainCreateWithFlags)、硬重启reboot --hard(主要流程对应的是virsh destroy(vir 阅读全文
posted @ 2023-03-28 11:11 baihuahua 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 1. https://en.wikipedia.org/wiki/D-Bus In computing, D-Bus (for "Desktop Bus"[4]), a software bus, is an inter-process communication (IPC) and remote 阅读全文
posted @ 2018-03-05 16:12 baihuahua 阅读(966) 评论(0) 推荐(0) 编辑
摘要: 有时我们希望把一部分工作通过创建线程的方式异步执行,这样我们可以在执行任务的同时,继续执行其他任务。但是如果这种需求比较多的话,频繁的创建和销毁线程带来很大的性能损耗。如果我们能创建一个或一些线程,然后重复使用它们,就可以避免这个问题。 Qemu的实现 qemu模仿glib实现了线程池的功能,目前q 阅读全文
posted @ 2016-11-14 14:17 baihuahua 阅读(1377) 评论(0) 推荐(0) 编辑
摘要: Qmeu 采用了基于事件驱动的架构,所有的事件都在一个事件循环(event loop)中被处理,系统中默认的事件循环是在main-loop.c 中的主循环(main loop)。我们也可以使用 –object iothread,id=my-iothread自己创建事件循环。 Qemu 中的事件架构来 阅读全文
posted @ 2016-11-14 14:15 baihuahua 阅读(4684) 评论(0) 推荐(1) 编辑
摘要: https://kernelnewbies.org/FAQ/BUG BUG() and BUG_ON(condition) are used as a debugging help when something in the kernel goes terribly wrong. When a BU 阅读全文
posted @ 2016-11-03 16:33 baihuahua 阅读(645) 评论(0) 推荐(0) 编辑
摘要: http://lwn.net/Articles/658081/内核的内存分配要想在大多数情况下工作良好需要很多限制。随着时间推移,这些限制给底层分配代码带来了很大的复杂性。 但是仍然有问题存在,有时候,最好的解决方法是删掉一些复杂性并使用一个更简单的方法。Mel Gorman提的patch已经经过 ... 阅读全文
posted @ 2015-12-10 16:41 baihuahua 阅读(1746) 评论(0) 推荐(0) 编辑
摘要: Sorry for reply late. Yes I noticed Johannes Weiner has recommended this in the discussion thread about commit e82e0561dae9f3ae5 ("mm: vmscan: obey pr... 阅读全文
posted @ 2015-07-15 16:06 baihuahua 阅读(272) 评论(0) 推荐(0) 编辑
摘要: CMAA reworked contiguous memory allocatorhttp://lwn.net/Articles/447405/June 14, 2011 分配大块物理上连续内存的问题一直在被讨论。虚拟内存,天生的在系统上分散使用内存页,内核运行一会儿就只剩下很少的连续空闲的页。多... 阅读全文
posted @ 2015-02-04 17:16 baihuahua 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: http://en.wikipedia.org/wiki/Ad_hocad hocad hocis aLatin phrasemeaning "for this". It generally signifies a solution designed for a specific problem o... 阅读全文
posted @ 2015-02-04 13:55 baihuahua 阅读(322) 评论(0) 推荐(0) 编辑
摘要: Fault injectionhttp://lwn.net/Articles/209257/The framework can cause memory allocation failures at two levels: in the slab allocator (where it affect... 阅读全文
posted @ 2015-02-02 10:56 baihuahua 阅读(426) 评论(0) 推荐(0) 编辑