原创 Entropy調研

說明:好吧,我只想吐槽一件事,這是long long ago的調研筆記了 另外,在百度文庫,居然找到這篇論文了 http://wenku.baidu.com/view/ff466d4c767f5acfa1c7cd56.html

原创 Linux系統--查看磁盤空間

1)df -hl 說明: -h  以G爲單位顯示 -l 不顯示NFS掛載 例如: Filesystem            Size  Used Avail Use% Mounted on /dev/sda1        

原创 python進階--性能優化1

Python寫法糾正和優化:   bad good if x == None: ... if x is None: ... mapping = {5 : "5", 6 : "6"} for key, val in ma

原创 python基本知識小記1

1. 數字: decimal.Decimal('1.1') 是1.1,不會是1.10000000001   2. Print: print  等於 print '\n' >>> print “good!” if 8 == number

原创 I/O壓力測試--fio使用

    FIO是測試IOPS的非常好的工具,用來對硬件進行壓力測試和驗證,支持13種不同的I/O引擎,包括:sync,mmap, libaio, posixaio, SG v3, splice, null, network, sysl

原创 Linux系統C語言--makefile1

make: Makefile或makefile文件 make -f othername make --file=othername     這兩個命令使用其他名字的文件make   makefile寫法: target: c

原创 Xen--內存代碼閱讀小記

1) Xen代碼中三個比較重要的文件夾 arch common include 2)xen/arch/x86/mm.c 頁面引用兩種計數  TOT_COUNT和TYPE_COUNT; tot_count記錄一個物理頁幀的所有

原创 Linux系統C語言--編譯調試

1)gcc   GNU Compiler Collection 分爲四個階段: a)預處理Pre-Processing:gcc -E test.c -o test.i b)編譯Compiling:        gcc -S t

原创 Linux系統--查看內存

1)cat /proc/meminfo MemTotal:       23142392 kB MemFree:        19137312 kB Buffers:           27428 kB Cached:     

原创 Linux系統--查看Cache

1)查看/proc/cpuinfo下的信息 例如: processor   : 0 vendor_id   : GenuineIntel cpu family  : 6 model       : 44 model name  :

原创 Linux系統--查看系統版本

1)lsb_release [root@node08 ~]# lsb_release -a LSB Version: :core-3.1-amd64:core-3.1-ia32:core-3.1-noarch:graphics-3.

原创 ioband使用

ioband    dm-ioband is an I/O bandwidth controller implemented as a device-mapper driver. Several jobs using the sam

原创 敏捷開發小記1

參照:http://www.agilealliance.org/ The Manifesto for Agile Software Development 敏捷軟件開發宣言 We are uncovering better ways

原创 Linux系統--程序開機自啓動

Linux系統下,使程序開機自動啓動的方法:   1)將執行程序腳本的命令行寫入/etc/rc.d/rc.local,Linux開機加載完所有服務,會執行這個腳本。 一般用戶自己編寫的腳本和命令是添加到這個文件中   2)程

原创 Xen--命令配置小記

1)xen-detect  查看xen版本 [root@node08 ~]# xen-detect Running in PV context on Xen v4.2. 或者 [root@node08 ~]# cd /sys/h