nginx sendfile 參數解釋

sendfile 現在流行的web 服務器裏面都提供 sendfile 選項用來提高服務器性能,那到底 sendfile是什麼,怎麼影響性能的呢?sendfile實際上是 Linux2.0+以後的推出的一個系統調用,web服務器可以通過調整自身的配置來決定是否利用 sendfile這個系統調用。先來看一下不用 sendfile的傳統網絡傳輸過程:  read(file,tmp_buf, len);
相關文章
相關標籤/搜索