because GetSCSITask will increase fNumCommandsOutstanding,
we must use this function to decrease fNumCommandsOutstanding 2009年8月26日 星期三
2009年8月21日 星期五
adjust aio queue length
sysctl -a | grep aio
find property about aio
sudo sysctl -w kern.aioprocmax=256
sudo sysctl -w kern.aiothreads=256
for linux:
aio-max-nr
2009年8月4日 星期二
2009年7月9日 星期四
2009年6月11日 星期四
kernel debug
type 14 = page fault
error code: 0: read from a non-present page
2: write to a non-present page
EIP: address of instruction at panic
create symbol file:
/Volumes/KernelDebugKit/createsymbolfiles -s /tmp PanicDriver/build/Debug/PanicDriver.kext
assume 0x223ab275 is EIP address
gdb /Volumes/KernelDebugKit/mach_kernel
--> set kext-symbol-file-path /tmp
--> add-kext ~/test.kext
--> set print asm-demangle on
--> x/i 0x223ab275
find the function mapped to this address
--> disass 0x223ab275
show this function's content
--> info line * 0x223ab275
show the line number of EIP in the function
2009年6月5日 星期五
2009年6月3日 星期三
transfer visual project to xcode
1. new project -> Standard Tool
2. get visual project from cvs ( not get from visual stdio)
3. copy the files in visual project into this xcode project directory
4. set SCM Repository
訂閱:
文章 (Atom)
