http://en.wikipedia.org/wiki/Stream_Control_Transmission_Protocol因為TCP的一些限制而出現了SCTP,TCP provides both reliable data transfer and strict order-of-transmission delivery of data. Some applications need reliable transfer without sequence maintenance,
這篇文章整理的不錯: http://blog.sina.com.cn/s/blog_8fa7dd41010153zx.html另外,poll/select 都有對應的ppoll/pselect,存在的理由主要是,The reason that pselect() is needed is that if one wants to wait for either a signal or for a file descriptor to become ready, then an
pdf download What is this GWP (Google Wide Prifile) for ? It try to give answer to the following question :What are the hottest processes, routines, or code regions?How does performance differ across software versions?Which locks are most contended?
RSM是一款不錯的靜態代碼品質檢查工具,提供程式碼數統計,複雜度統計等功能,具體見:http://msquaredtechnologies.com/m2rsm/docs/index.htmRSM supports the language syntax of ANSI C, ANSI C++, C# and Java.RSM creates HTML reports for Visual Metrics that interacts with source code hyperlinks
來自: A Study of Memory Management for Web-based Applications on Multicore Processors摘要:針對web aplication,比較了default和region base的記憶體 Clerk,在single core的機器上,region base的記憶體 Clerk表現較好,但是在multi-core上,由於爭用,region base的記憶體
讀了部分LevelDb的code,有以下幾點感觸:1. 對資源控制的很小心:Level Db中將記憶體,檔案個數均視作資源,任何一次寫入都需要判斷當前是否有足夠的資源,比如記憶體是否超過了限定值,檔案個數是否已經太多以致持續高速寫入將會導致讀操作的IO頻繁影響效能等;任何一個指標達到了閾值則開始流控,比如每次寫入delay 1ms等。2. 檔案compaction的啟動標準給出了一個量化指標: // We arrange to automatically compact this
前段時間看到了Amazon 位於Virginia的資料中心down機,使得很多架設於Amazon雲端服務上的網站訪問不了,引起了很大的反響和討論,當時我認為幾個小時內應該能夠恢複正常,結果居然是以天計數的,下面列一下幾個重要的時間點,並說一點自己的想法:At 12:47 AM PDT on April 21st, incorrect traffic shift operation lead to disaster.At 2:40 AM PDT on April 21st, the team
線上系統如果出現了錯誤而且沒有堆棧資訊,那將是多麼的恐怖!所以在系統可能出現錯誤的地方我們都要儘可能的將資訊描述清楚,其中最重要的資訊包括堆棧調用以及堆棧變數;堆棧調用的列印是可以藉助backtrace機制實現的,下面記錄一下其用法。以下函數說明來自:http://www.gnu.org/s/libc/manual/html_node/Backtraces.htmlint backtrace (void **buffer, int size) The backtrace function