- 博客(6)
- 资源 (1)
- 收藏
- 关注
转载 The x86 kvm shadow mmu
The mmu (in arch/x86/kvm, files mmu.[ch] and paging_tmpl.h) is responsiblefor presenting a standard x86 mmu to the guest, while translating guestphysical addresses to host physical addresses.T
2013-06-01 11:00:53
878
转载 qemu_kvm 内存相关
一、qemu中物理内存的注册cpu_register_physical_memory-->cpu_notify_set_memory---->kvm_client_set_memory------>kvm_set_phys_mem-------->kvm_set_user_memory_region---------->kvm_vm_ioctl(进入内核)内核中会调用k
2013-05-15 18:37:24
990
转载 How Scaling Really Works in Apache HBase
At first glance, the Apache HBase architecture appears to follow a master/slave model where the master receives all the requests but the real work is done by the slaves. This is not actually the case,
2013-05-01 21:25:10
519
原创 read() 系统调用
1. read() 系统调用将会调用虚拟文件系统层VFS 中相应的读方法,并将要读的文件指针和文件偏移一并传给虚拟文件系统层。虚拟文件系统层可以看作是对块设备操作的最高一层,它提供了一个抽象的统一的文件操作视图给上层,并给所有被Linux 操作系统支持的文件系统提供了一个通用的文件操作接口,只要下层的实际文件系统实现这个接口就可以提供正确的服务。2. 实现上并不是每次对磁盘的读写操作都
2013-04-29 17:18:25
2433
原创 madvise()详解
madvise() 函数建议内核,在从 addr 指定的地址开始,长度等于 len 参数值的范围内,该区域的用户虚拟内存应遵循特定的使用模式。内核使用这些信息优化与指定范围关联的资源的处理和维护过程。如果使用 madvise() 函数的程序明确了解其内存访问模式,则使用此函数可以提高系统性能。#include #include int madvise(caddr_t addr, siz
2013-04-28 21:06:01
29646
转载 pthread_kill 和 sigaction 函数
pthread_kill:pthread_kill不是kill thread,而是向线程发送signal。大部分signal的默认动作是终止进程的运行,所以,我们才要用signal()去抓信号并加上处理函数。int pthread_kill(pthread_t thread, int sig);向指定ID的线程发送sig信号,如果线程代码内不做处理,则按照信号默认的行为影响整个进程,也
2013-04-28 10:34:48
777
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人