草稿
[WIP]perf(vmm): redirect stratovirt output to log and reduce unnecessary ResumeVM call #172
ytluo创建于 8月19日
[WIP]perf(vmm): redirect stratovirt output to log and reduce unnecessary ResumeVM call #172
草稿
合并受阻
8月19日 将weibaohui,yangzhao_kl,jimmieme,duguhaotian,wonleing,zmr_2020,gaodaweiky,lu-wei-army,zhaoyifan28设为审查人
8月19日 将weibaohui,yangzhao_kl,jimmieme,duguhaotian,wonleing,zmr_2020,gaodaweiky,lu-wei-army,zhaoyifan28设为审查人
8月19日 添加了label:sig/sig-CloudNative
openeuler-ci-bot
8月19日 评论:
8月19日 评论:
Welcome To openEuler Community
Hey @ytluo , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: sig-CloudNative ,
and any of the maintainers: @duguhaotian, @gaodaweiky, @jimmieme, @lu-wei-army, @weibaohui, @wonleing, @yangzhao_kl, @zhaoyifan28, @zmr_2020 ,
and any of the committers: @Yekelu .


8月19日 添加了label:stat/needs-squash
此处折叠了8条事件消息 查看更多
8月20日 添加了label:openeuler-cla/yes
config/config.yaml
已过期
@@ -28,1 +28,4 @@
2828 binary: /usr/bin/stratovirt
29+ # Redirect VMM stdout/stderr to /var/log/stratovirt/<sandbox-id>.log.
30+ # Falls back to conchd's inherited stdout/stderr if the file cannot be opened.
31+ redirect_output: true
internal/vmm/stratovirt/stratovirt.go
已过期
@@ -9,6 +9,7 @@ import (
99 "net"
1010 "os"
1111 "os/exec"
12+ "path/filepath"
1213 "runtime"
1314 "strconv"
1415 "strings"
@@ -19,6 +20,8 @@ import (
1920 "github.com/openeuler/Conch/pkg/ulog"
2021)
2122
23+const stratovirtLogDir = "/var/log/stratovirt"
同一个常量重复定义,再sandbox.go已经定义过一遍了:const stratovirtLogDir = "/var/log/stratovirt",日志目录应该结合config.yaml来定义:
当前config.go是写死的目录:outputPath = "/var/log/conchd/"
在ulog.go也有默认值:OutputPath: "/var/log/conchd/"
可以考虑类似如下的结构:
/var/log/conch/
conchd.log // point to latest log
conchd-<datetime>.log // old rotated log
sandboxes/
<sandbox-id>-<stratovirt|clh>.log


internal/vmm/stratovirt/stratovirt.go
此处折叠了10条事件消息 查看更多
27 天前 删除了label:stat/needs-squash
openeuler-ci-bot
27 天前 评论:
27 天前 评论:
27 天前 添加了label:openeuler-cla/yes
此处折叠了5条事件消息 查看更多
27 天前 添加了label:openeuler-cla/yes
openeuler-ci-bot
27 天前 评论:
27 天前 评论:
当前PR是否有AI参与:
[x] 否
[ ] 是
__1. AI Agent 平台:
__2. AI 模型:
__3. Prompt上下文 :
参考:openEuler社区《生成式AI工具使用与开源贡献政策》
PR功能描述 / 为什么需要这个合入**:
该PR关联的issue
(格式为fixes #<issue号>, 或者resolves #<issue号>): fixes #
希望检视人员了解: