原创 cpu緩存相關內容筆記

一,cpu緩存架構 1.level-1 data cache: 一級數據緩存 2.level-1 inst cache: 一級指令緩存 3.MMU: 內存管理單元 4.TLB(translation lookaside buffer):

原创 google-perftools性能分析內存分析利器

一.工具安裝 1.源碼下載:https://sourceforge.net/projects/gperftools.mirror/ (gperftools-2.7.tar.gz版本) libunwind庫源碼:libunwind-1.3.

原创 cpu緩存

一,cpu緩存架構 1.level-1 data cache: 一級數據緩存 2.level-1 inst cache: 一級指令緩存 3.MMU: 內存管理單元 4.TLB(translation lookaside buffer):

原创 linux性能分析工具之perf

一 perf 之perf stat 輸出 1.perf stat -p pid(默認輸出列表), 也可以指定輸出 關鍵事件, 具體事件 使用 perf list 查看 1) task-clock : cpu佔用比率 2)cpu-migr

原创 boost::bind的使用方法

bind - boost 頭文件: boost/bind.hpp bind 是一組重載的函數模板.用來向一個函數(或函數對象)綁定某些參數.  bind的返回值是一個函數對象. 它的源文件太長了. 看不下去. 這裏只記下它的用法:

原创 數據庫合服相關

DUMP=/usr/bin/mysqldump OUT_DIR=/srv/dbbackup LOGFILE=/srv/log/dbbackuplogfile.log LINUX_USER=root DB_USER=root DB_PASS