owned this note changed 6 years ago
Linked with GitHub

藉由減少例外處理的途徑降低 Linux 系統呼叫執行成本 - 洪培軒

由於場地問題,第二天我們移動到另一棟大樓啦!議程教室變動請見網站上的議程表

歡迎來到 https://hackmd.io/@coscup/2019 共筆

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

點擊本頁上方的 開始用 Markdown 一起寫筆記!
手機版請點選上方 按鈕展開議程列表。

請從這裡開始

tags: COSCUP2019 系統軟體社群議程 IB201

簡報:https://hackmd.io/@afcidk/Syy-KJomS#/5

論文:https://www.usenix.org/legacy/events/osdi10/tech/full_papers/Soares.pdf

概念

透過 kernel , userspace 共用 memory space

Syscall batching

User process 等到累積一定數量才從 user mode 轉到 kernel mode,可以節省時間

實作

  • Port 到 linux 5.0
  • 插曲:跟別人在 github 上實作的 4.18 板效能落差很大,但 github 上實作的 4.18板實驗結果是有問題的,使用 github 程式碼前記得先檢查正確性
  • entry size > 30 的時候效能好一些些,沒有論文中的差距 (簡報 7.3、7.4)
  • entry size 較低的時候帶來的效能提升幾乎是 0,但反而會多出實作帶來的成本
  • mode switch 在現代系統已經沒有那麼大的懲罰了

QA

有考慮System call latency?

花費的時間已經在圖中了

Dependency的問題要怎麼處理?

在某些情況不能保證能作syscall batching

Select a repo