自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(44)
  • 资源 (4)
  • 收藏
  • 关注

原创 Global kva allocator

Global kva allocator 数据结构/*** Global kva allocator ***/#define VM_LAZY_FREE 0x01#define VM_LAZY_FREEING 0x02#define VM_VM_AREA 0x04struct vmap_area { unsigned long va_start; unsigned lon

2013-08-30 16:51:52 897

原创 sys_brk

sys_brkSYSCALL_DEFINE1(brk, unsigned long, brk){ unsigned long rlim, retval; unsigned long newbrk, oldbrk; struct mm_struct *mm = current->mm; unsigned long min_brk; down_write(&mm->mmap_

2013-08-30 14:57:09 998

原创 sys_mmap_pgoff

sys_mmap_pgoffSYSCALL_DEFINE6(mmap_pgoff, unsigned long, addr, unsigned long, len, unsigned long, prot, unsigned long, flags, unsigned long, fd, unsigned long, pgoff){ struct file * file = NUL

2013-08-30 14:42:48 3632 1

原创 do_mmap_pgoff

mmap 内核实现--do_mmap_pgoff http://blog.chinaunix.net/uid-24774106-id-366143.htmlLinux内核源码阅读之内存映射篇http://blog.csdn.net/f413933206/article/details/5701903进程虚拟地址空间之arch_get_unma

2013-08-30 13:38:59 2112

原创 malloc

malloc实现原理http://blog.csdn.net/vincent_smz/article/details/6338417http://blog.csdn.net/haoel/article/details/6338025

2013-08-28 17:07:04 897

原创 linux syscall procedure

1:trap_init   traps.c (F:\linux-2.6.32\arch\x86\kernel)    set_system_trap_gate(SYSCALL_VECTOR, &system_call);2:entry_32.S (F:\linux-2.6.32\arch\x86\kernel)     ENTRY(system_call)S

2013-08-28 15:34:20 931

转载 校招内推简历筛选的阶段性小结

阿里校招内推简历筛选的阶段性小结http://bbs.csdn.net/topics/390566271上周发了一个阿里内推的帖子,没想到短时间内就收到了成百上千封简历。  我仔仔细细地看了每一封简历,附带有Github地址的我也点进去仔细看了代码。  最终我留下了30%的简历,而且这30%中只有10%的本科生。  所有通过内推初步筛选的小伙伴会

2013-08-28 13:16:38 1920

原创 virt-install 安装过程

1:  qemu-img create -f qcow2 first_os.qcow2 10G2: virt-install --name=first_os  --ram=2048 --vcpus=1  --os-type=linux --cdrom=/home/iso/CentOS-6.4-x86_64-bin-DVD1.iso  --disk path=/home/vm1/

2013-08-27 11:12:53 2874

转载 wait && child process && fork

为何要fork()两次来避免产生僵尸进程?      当我们只fork()一次后,存在父进程和子进程。这时有两种方法来避免产生僵尸进程:父进程调用waitpid()等函数来接收子进程退出状态。父进程先结束,子进程则自动托管到Init进程(pid = 1)。      目前先考虑子进程先于父进程结束的情况:     若父进程未处理子进程退出状态,在父进程退出前

2013-08-26 10:59:33 1005

转载 我拒绝参加你们的技术面试

我拒绝参加你们的技术面试From: http://blog.jobbole.com/46603/我今天读到了很多不错的批评,我简要的澄清一下并在此回复他们。老是不停的问我什么事闭包以及可变关键字代表什么,这不适用于以对话为基础的面试。的确,了解我是否会使用CSS(我不会)或者我是否知道A*算法(我确实知道)是非常重要的。但我非常请求取消手写代

2013-08-26 10:04:12 719

转载 VT-d

从VT-x到VT-d Intel虚拟化技术发展蓝图第1页:Intel虚拟化发展蓝图第2页:x86处理器虚拟化难题:Ring Privi..第3页:x86处理器虚拟化难题解决:Intel ..第4页:新的问题:I/O设备虚拟化第5页:I/O设备虚拟化问题的解决:Intel ..

2013-08-26 09:55:12 1538

转载 grub stage 1.5

stage1的代码文件,是源码目录下 stage1/stage1.S,汇编后便成了一个512字节的 img,被写在硬盘的0面0道第1扇区,作为硬盘的主引导扇区。注意,硬盘主引导扇区 = 硬盘主引导记录(MBR)+ 硬盘分区表(DPT)stage1的工作并不是加载什么 stage1.5或者 stage2,而是加载0面0道第2扇区上的512字节代码至0x8000,然后跳

2013-08-24 20:01:20 1721

转载 softIRQ tasklet work_queue

Soft Irq、tasklet和work queue并不是Linux内核中一直存在的机制,而是由更早版本的内核中的“下半部”(bottom half)演变而来。下半部的机制实际上包括五种,但2.6版本的内核中,下半部和任务队列的函数都消失了,只剩下了前三者。本文重点在于介绍这三者之间的关系。(函数细节将不会在本文中出现,可以参考文献,点这里)(1)上半部和下半部的区别上半部指的是中断

2013-08-22 14:07:23 1537

转载 C语言编程规范

From:http://www.libvirt.org/hacking.htmlVery Great !.Code indentationLibvirt's C source code generally adheres to some basic code-formatting conventions. The existing code ba

2013-08-22 13:29:33 1203

原创 pthread theory and usage

why pthread开销内存共享于同步调度和协同合作CPU与I/O的重叠协作:例如,一个程序可能分多段对I/O进行长操作,当一个线程正在等待一个I/O系统调用完成时,CPU可以用其它线程进行现有的密集工作;优先级/实时调度:可预定更重要的任务取代或者中断低优先级的任务;异步事件处理:一些不确定次数和持续时间的服务事件是交叉执行的任务。例如,Web服务器可以在应答前

2013-08-21 17:28:26 875

转载 libvirt resource

Libvirt 虚拟化 资料整理http://blog.csdn.net/chenyulancn/article/details/8915706KVM虚拟化原理与实践(连载)http://smilejay.com/kvm_theory_practice/http://smilejay.com/2013/03/libvirt-introduct

2013-08-21 15:46:23 639

原创 MSI

从各处转载,算是原创吧。谢谢原作者。From: http://blog.sina.com.cn/s/blog_6472c4cc0100qxc6.html3.3.2 处理器到PCI处理器到PCI设备的数据传送下文以图3‑2所示的处理器系统为例,说明处理器向PCI设备11进行存储器写的数据传送过程。处理器向PCI设备进行读过程与写过程略有区别,因为存储器写使用P

2013-08-21 11:47:29 1893

转载 App Engine Python 概述

https://developers.google.com/appengine/docs/python/overview?hl=zh-CN

2013-08-21 10:26:20 688

原创 what-is-the-bios-and-what-does-it-do

BIOShttp://forum-en.msi.com/faq/article/what-is-the-bios-and-what-does-it-do

2013-08-20 23:30:30 905

转载 BackTrack WPA-PSK WIFI

如何通过Backtrack破解wi-fi热点密码http://www.2cto.com/Article/201209/152424.htmlBackTrack2下破解无线WPA-PSK加密实战http://www.2cto.com/Article/201011/77909.htmlbacktrack3(BT3) usb版 破解WEP无线网络密码详细步

2013-08-20 16:34:10 851

原创 CHAPTER 29 APIC VIRTUALIZATION AND VIRTUAL INTERRUPTS

CHAPTER 29 APIC VIRTUALIZATION AND VIRTUAL INTERRUPTSObject:The VMCS includes controls that enable the virtualization of interrupts and the Advanced Programmable Interrupt Controller (APIC).

2013-08-19 16:49:17 1412

原创 CHAPTER 29 APIC VIRTUALIZATION AND VIRTUAL INTERRUPTS

CHAPTER 29 APIC VIRTUALIZATION AND VIRTUAL INTERRUPTSObject:The VMCS includes controls that enable the virtualization of interrupts and the Advanced Programmable Interrupt Controller (APIC).

2013-08-19 10:38:42 1087

转载 Hardware Virtualization: the Nuts and Bolts / EPT / VPID

http://www.anandtech.com/show/2480very Good !

2013-08-16 16:02:46 1580

转载 What exactly do shadow page tables (for VMMs) do

Shadow page tablesShadow page tables are used by the hypervisor to keep track of the state in which the guest "thinks" its page tables should be. The guest can't be allowed access to the har

2013-08-16 15:41:47 1384

原创 VMX NON-ROOT OPERATION && VM ENTRIES && VMX SUPPORT FOR ADDRESS TRANSLATION

CHAPTER 25 VMX NON-ROOT OPERATION25.3  CHANGES TO INSTRUCTION BEHAVIOR IN VMX NON-ROOT OPERATION• MOV from CR3. If the “enable EPT” VM-execution control is 1 and an execution of MOV from C

2013-08-16 15:35:43 1466

原创 CHAPTER 24 VIRTUAL-MACHINE CONTROL STRUCTURES

24.4  GUEST-STATE AREA    24.4.1  Guest Register State        Control registers CR0, CR3, and CR4        Debug register DR7        RSP, RIP, and RFLAGS         CS, SS, DS, ES, FS, GS, LDTR,

2013-08-16 13:46:03 1485

原创 interview

1:http://bbs.csdn.net/topics/390549685今天下午面了百度,其中两题是这样的,我都没有回答出来。概率题:一个篮子里装着20个红球和20个蓝球,每次从中取出2球,如果取出的2球颜色是一样的,那么放回红球,取出蓝球;如果取出的2球的颜色是一样的,则都不放回,将2球都取出;不断重复以上步骤。问题:求最后一次取球恰好只取到一个红球的概率。算

2013-08-16 10:07:35 956

原创 Fully buffered & Line buffered & Unbuffered

Define1. Fully buffered means that I/O takes place only when the buffer is fully, the process explicitly calls fflush, or the process terminates by calling exit. A common size for the standard

2013-08-15 14:16:50 965

转载 Linux 虚拟化技术

虚拟化技术漫谈http://www.ibm.com/developerworks/cn/linux/l-cn-vt/index.html虚拟 Linuxhttp://www.ibm.com/developerworks/cn/linux/l-linuxvirt/index.html

2013-08-14 15:57:02 660

转载 mit 6.828

http://pdos.csail.mit.edu/6.828/2012/index.html

2013-08-12 22:56:23 878

原创 LKA linux kernel architechture

一本好书就是一个好老师,好师傅,好朋友。LKA就是一本这样的书。1: OS概念,层次2:怎么阅读代码,抓住重点3:翻译,英文学习

2013-08-09 16:26:27 779

转载 gcc trick

QuestionI have recently installed XUbuntu 11.10 64bit, but I am having problem compiling the most simple pthread example.Here is the code pthread_simple.c:#include #include main()  {  pthre

2013-08-09 11:08:31 587

原创 notification chain and timer interrupt

notification chainClass:notifier_blockmember:notifier_call: callback function next: single listnotifier_block --> notifier_block --> ... --> notifier_block --> notifier_block 

2013-08-07 16:24:53 942

转载 Source insight 中 标题栏路径显示完整路径的方法

在source insight 的标题栏中显示完整路径名的方法。Options -> Preferences -> Display -> Trim long path names with ellipses.(把复选框的勾选去掉。)

2013-08-06 16:49:21 2755 2

转载 CPU Switches from Kernel mode to User Mode on X86 : When and How?

详解

2013-08-06 11:10:40 2060

原创 real-time scheduler man page

man sche_setscheduler实时调度的一些概念SCHED_SETSCHEDULER(2) Linux Programmer's Manual     SCHED_SETSCHEDULER(2)NAME       sched_setscheduler, sched_getscheduler - set and get schedulin

2013-08-06 10:09:16 1367

转载 linux slub分配器浅析

linux slub分配器浅析在《linux内存管理浅析》中提到内核管理自己使用的内存时,使用了SLAB对象池。SLAB确实是比较复杂,所以一直以来都没有深入看一看。不过现在,linux内核中,SLAB已经被它的简化版--SLUB所代替。最近抽时间看了一下SLUB的代码,略记一些自己的理解。尽管SLUB是在内核里面实现的,用户态的对象池其实也可以借鉴这样

2013-08-05 16:09:56 611

转载 内存 cache

Introduction to Caches cache slot 的数据结构SlotsLet's get into more specific details about the cache. In particular, we'll describe an individual slot.A slot consists of the following:

2013-08-05 11:43:43 989

转载 How to "Build" a Computer

http://www.cs.umd.edu/class/sum2003/cmsc311/Notes/index.html操作系统的基本概念

2013-08-05 10:57:38 686

转载 剖析程序内存布局

http://duartes.org/gustavo/blog/http://www.360doc.com/content/12/0918/16/7982302_236773349.shtml

2013-08-05 10:26:48 583

GNU C Language Extension

GNU C 语言的扩展特性。专业C程序员必须掌握。

2012-03-24

哥伦比亚大学操作系统上课材料

美国哥伦比亚大学,计算机科学技术系,操作系统,上课使用的pdf材料。

2012-01-12

gcc内联汇编手册

gcc 内联汇编官方手册最新版 ThisHOWTOexplainstheuseandusageoftheinlineassemblyfeatureprovidedbyGCC.

2012-01-10

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除