Skip to content

Reduce ntttcp performance log volume#4455

Open
vyadavmsft wants to merge 1 commit into
mainfrom
vyadav_may_fix1
Open

Reduce ntttcp performance log volume#4455
vyadavmsft wants to merge 1 commit into
mainfrom
vyadav_may_fix1

Conversation

@vyadavmsft
Copy link
Copy Markdown
Collaborator

@vyadavmsft vyadavmsft commented Apr 30, 2026

Expose the existing no_debug_log process option through the ntttcp and lagscope tool wrappers so noisy long-running performance commands can suppress per-line stdout logging without losing captured output.

Enable the option in perf_ntttcp for the ntttcp server/client and lagscope latency sidecar commands. This keeps result parsing intact while reducing DEBUG file log growth during high-connection retry loops.

Description

Related Issue

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Refactoring
  • Documentation update

Checklist

  • Description is filled in above
  • No credentials, secrets, or internal details are included
  • Peer review requested (if not, add required peer reviewers after raising PR)
  • Tests executed and results posted below

Test Validation

Key Test Cases:

Impacted LISA Features:

Tested Azure Marketplace Images:

Test Results

Image VM Size Result
PASSED / FAILED / SKIPPED

Expose the existing no_debug_log process option through the ntttcp and lagscope tool wrappers so noisy long-running performance commands can suppress per-line stdout logging without losing captured output.

Enable the option in perf_ntttcp for the ntttcp server/client and lagscope latency sidecar commands. This keeps result parsing intact while reducing DEBUG file log growth during high-connection retry loops.
Copilot AI review requested due to automatic review settings April 30, 2026 17:38
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Expose the existing no_debug_log process option through the ntttcp and lagscope tool wrappers and enable it in perf_ntttcp to reduce noisy per-line DEBUG file logging during long-running performance runs while preserving captured output for parsing.

Changes:

  • Add no_debug_log parameters to ntttcp and lagscope server/client execution helpers and pass through to process execution.
  • Enable no_debug_log=True for the ntttcp server/client and lagscope latency sidecar invocations in perf_ntttcp.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
lisa/tools/ntttcp.py Threads no_debug_log through ntttcp server/client wrappers and passes it to async execution (and one wait path).
lisa/tools/lagscope.py Adds no_debug_log to lagscope server/client APIs and passes it to execution for the lagscope-based implementation.
lisa/microsoft/testsuites/performance/common.py Turns on no_debug_log=True for perf ntttcp’s ntttcp + lagscope subprocesses to reduce log volume.
Comments suppressed due to low confidence (1)

lisa/tools/lagscope.py:1

  • Similar to the server path, no_debug_log is accepted but not used here, which makes the API contract inconsistent across lagscope implementations and can surprise callers trying to suppress debug logging. If the underlying Sockperf client supports no_debug_log, pass it through; otherwise, add an explicit comment/docstring stating that no_debug_log (and any other unsupported knobs) are intentionally ignored for this implementation.
# Copyright (c) Microsoft Corporation.

Comment thread lisa/tools/ntttcp.py
Comment thread lisa/tools/lagscope.py
@github-actions
Copy link
Copy Markdown

⚠️ AI Test Selection — cancelled

65 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 8
❌ Failed 0
⏭️ Skipped 13
Total 21
Test case details
Test Case Status Time (s) Message
perf_tcp_iperf_passthrough_host_guest (lisa_0_20) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_iperf_passthrough_host_guest (lisa_0_21) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_single_pps_passthrough_host_guest (lisa_0_22) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_max_pps_passthrough_host_guest (lisa_0_23) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_ntttcp_passthrough_host_guest (lisa_0_24) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_1k_ntttcp_passthrough_host_guest (lisa_0_25) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_iperf_passthrough_two_guest (lisa_0_26) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_iperf_passthrough_two_guest (lisa_0_27) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_single_pps_passthrough_two_guest (lisa_0_28) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_max_pps_passthrough_two_guest (lisa_0_29) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_ntttcp_passthrough_two_guest (lisa_0_30) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_1k_ntttcp_passthrough_two_guest (lisa_0_31) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_nested_hyperv_storage_singledisk (lisa_0_36) ⏭️ SKIPPED 0.000 check skipped: OS type mismatch: ["requires [<class 'lisa.operating_system.Windows'>] but VM supports [<class 'lisa.oper
perf_nested_kvm_storage_singledisk (lisa_0_34) ✅ PASSED 5481.402
perf_ultra_datadisks_1024k (lisa_0_1) ✅ PASSED 1067.275
perf_resource_disk_1024k (lisa_0_8) ✅ PASSED 1621.147
perf_premiumv2_datadisks_1024k (lisa_0_3) ✅ PASSED 2457.130
perf_ultra_datadisks_4k (lisa_0_0) ✅ PASSED 4381.542
perf_premiumv2_datadisks_4k (lisa_0_2) ✅ PASSED 4383.544
perf_epoll (lisa_0_33) ✅ PASSED 187.190
perf_messaging (lisa_0_32) ✅ PASSED 2013.635

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

⚠️ AI Test Selection — cancelled

65 test case(s) selected (view run)

Marketplace image: canonical 0001-com-ubuntu-server-jammy 22_04-lts-gen2 latest

Count
✅ Passed 8
❌ Failed 0
⏭️ Skipped 13
Total 21
Test case details
Test Case Status Time (s) Message
perf_tcp_iperf_passthrough_host_guest (lisa_0_20) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_iperf_passthrough_host_guest (lisa_0_21) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_single_pps_passthrough_host_guest (lisa_0_22) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_max_pps_passthrough_host_guest (lisa_0_23) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_ntttcp_passthrough_host_guest (lisa_0_24) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_1k_ntttcp_passthrough_host_guest (lisa_0_25) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_iperf_passthrough_two_guest (lisa_0_26) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_iperf_passthrough_two_guest (lisa_0_27) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_single_pps_passthrough_two_guest (lisa_0_28) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_max_pps_passthrough_two_guest (lisa_0_29) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_tcp_ntttcp_passthrough_two_guest (lisa_0_30) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_udp_1k_ntttcp_passthrough_two_guest (lisa_0_31) ⏭️ SKIPPED 0.000 requires [azure] but VM supports [cloud-hypervisor]
perf_nested_hyperv_storage_singledisk (lisa_0_36) ⏭️ SKIPPED 0.000 check skipped: OS type mismatch: ["requires [<class 'lisa.operating_system.Windows'>] but VM supports [<class 'lisa.oper
perf_nested_kvm_storage_singledisk (lisa_0_34) ✅ PASSED 5509.040
perf_ultra_datadisks_1024k (lisa_0_1) ✅ PASSED 1069.017
perf_resource_disk_1024k (lisa_0_8) ✅ PASSED 1633.772
perf_premiumv2_datadisks_1024k (lisa_0_3) ✅ PASSED 2465.837
perf_premiumv2_datadisks_4k (lisa_0_2) ✅ PASSED 4375.886
perf_ultra_datadisks_4k (lisa_0_0) ✅ PASSED 4389.230
perf_epoll (lisa_0_33) ✅ PASSED 188.274
perf_messaging (lisa_0_32) ✅ PASSED 1963.871

@LiliDeng
Copy link
Copy Markdown
Collaborator

LiliDeng commented May 6, 2026

@vyadavmsft this will fail the ntttcp case, please double check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants