msprof执行报错 无法生成采集文件
t('forum.solved') 已解决
发表于2026-03-13 00:07:35
执行命令 msprof --application="run_test.sh"  报错内容 [WARNING] msprof is running as root. For security reasons, use a regular user account instead.

[DEBUG] DRV(3767416,msprof):2026-03-13-00:05:19.845.908 [hdc_client.c:114][ascend][curpid:3767416,3767416][drv][hdc][drvHdcClientCreate]Create client success.

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.001 [params_adapter.cpp:240] >>> (tid:3767416) platformadapter init done.

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.046 [utils.cpp:547] >>> (tid:3767416) mmRealPath ret=0.

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.057 [utils.cpp:551] >>> (tid:3767416) Input path:profiler, canonicalized path:profiler

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.235 [platform_adapter_interface.cpp:89] >>> (tid:3767416) comParams.storageLimit:, dirFreeSize:203954, params_->storageLimit:203954MB

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.275 [msprof_manager.cpp:30] >>> (tid:3767416) init MsprofManager begin.

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.296 [msprof_manager.cpp:44] >>> (tid:3767416) init MsprofManager end.

[INFO] Start profiling...

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.330 [application.cpp:99] >>> (tid:3767416) launch app cmd: /home/profiler/run_test.sh

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.346 [utils.cpp:547] >>> (tid:3767416) mmRealPath ret=0.

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.354 [utils.cpp:551] >>> (tid:3767416) Input path:run_test.sh, canonicalized path:run_test.sh

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.363 [application.cpp:169] >>> (tid:3767416) Handle app_env param

[INFO] PROFILING(3767416,msprof):2026-03-13-00:05:19.846.511 [utils.cpp:574] >>> (tid:3767416) Execute cmd:"run_test.sh .", stdoutRedirectFile=.

准备向 http://localhost:8000/v1/completions 发送请求...

提示词长度: 76584 字符

--------------------------------------------------

请求完成,性能数据:

  首字延迟 (TTFT): 304.21 ms

  总耗时: 13.45 s

  生成 Token 数: 480

  平均生成速度: 35.68 tokens/s

sleep wwwww

[EVENT] PROFILING(3767416,msprof):2026-03-13-00:05:33.847.905 [running_mode.cpp:605] >>> (tid:3767416) App process 3767417 exited, exit code:0

[WARNING] PROFILING(3767416,msprof):2026-03-13-00:05:33.848.022 [utils.cpp:166] >>> (tid:3767416) MsprofMmGetFileSize fail, ret=-1, errno=2.

[ERROR] PROFILING(3767416,msprof):2026-03-13-00:05:33.848.032 [running_mode.cpp:153] >>> (tid:3767416) File size is invalid. fileName:3767416_profiling_output_record, size:-1.

[WARNING] PROFILING(3767416,msprof):2026-03-13-00:05:33.848.054 [running_mode.cpp:120] >>> (tid:3767416) Get output info failed.

[ERROR] PROFILING(3767416,msprof):2026-03-13-00:05:33.848.063 [utils.cpp:1661] >>> (tid:3767416) StrToUint32 failed, the input string is empty.

[ERROR] PROFILING(3767416,msprof):2026-03-13-00:05:33.848.070 [running_mode.cpp:716] >>> (tid:3767416) [App Mode] Param delayTime StrToUint32 failed.

[ERROR] Running profiling failed.Please check log for more info.

(base) [root@pm-4e08 ~]#

新人帖
发表于2026/03/12