wsl2 run docker 跑 PG DB 並 使用 stap
isdaniel opened this issue · comments
石秉修(PING-HSIU SHIH) commented
請問一下 有人使用 wsl2 run docker 跑 PG DB 並 使用 stap 嗎?
我目前在 wsl2 run docker 跑 PG DB 要使用 stap 遇到一些問題 錯誤訊息如下
root@55bcf7516fbb:/# stap -ve 'probe begin { log("hello systemtap!") exit() }'
Checking "/lib/modules/5.10.16.3-microsoft-standard-WSL2/build/.config" failed with error: No such file or directory
我看我的 uname -r
我在網路上搜索不到 相對應的 stap 版號...
root@55bcf7516fbb:/# uname -r
5.10.16.3-microsoft-standard-WSL2
因為我想要練習 調教 成本因子 但在安裝設定 stap 時遇到上面問題
我這邊有兩個問題想請教
- 如果要使用 wsl2 上跑 linux 要如何使用 stap
- windows postgresql 如果要調教 成本因子 有相關文章可以參考嗎 (我看網路上的文章大多都是說 linux 調教)
石秉修(PING-HSIU SHIH) commented
後面我使用 AWS ubuntu 就可以正常使用 stap 調教 成本因子了
我查了一下 貌似 windows 沒有針對 wsl2 提供 debug kernel 的 package 如果有再麻煩其他人提供連結 謝謝
Digoal.zhou commented
是的, stap是linux下的工具