Skip to content

Increase PTF Container Memory Limits#19118

Merged
StormLiangMS merged 1 commit intosonic-net:masterfrom
ccroy-arista:increase-ptf-container-mem
Jul 3, 2025
Merged

Increase PTF Container Memory Limits#19118
StormLiangMS merged 1 commit intosonic-net:masterfrom
ccroy-arista:increase-ptf-container-mem

Conversation

@ccroy-arista
Copy link
Copy Markdown
Contributor

Description of PR

Increase the memory and swap limits of the PTF container to 64 GB.

This is necessary for handling the increased memory consumption from the additional exabgp processes as a result of the additional number of VM peers of the larger topologies.

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202412
  • 202503
  • 202505

Approach

What is the motivation for this PR?

To prevent the PTF container from running out of memory when setting up a tesbed for a topology with a large number of VMs.

How did you do it?

Increased the memory/swap limits of the PTF docker container in the ansible playbook.

How did you verify/test it?

Ran the setup with the new memory limits and confirmed that the setup now succeeds.

Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@ccroy-arista ccroy-arista changed the title sonic-mgmt: increase ptf container memory Increase PTF Container Memory Limits Jun 20, 2025
Copy link
Copy Markdown
Contributor

@wsycqyz wsycqyz left a comment

Choose a reason for hiding this comment

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

lğtm

Copy link
Copy Markdown
Collaborator

@StormLiangMS StormLiangMS left a comment

Choose a reason for hiding this comment

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

LGTM

@StormLiangMS StormLiangMS requested a review from wangxin July 2, 2025 08:32
@StormLiangMS
Copy link
Copy Markdown
Collaborator

hi @xwjiang-ms any test we should ask @ccroy-arista to run before merge?

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202503: Azure/sonic-mgmt.msft#488

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#489

@yejianquan
Copy link
Copy Markdown
Collaborator

remove 202505 labels since the change is reverted

@ccroy-arista ccroy-arista deleted the increase-ptf-container-mem branch July 17, 2025 18:54
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.
nissampa pushed a commit to nissampa/sonic-mgmt_dpu_test that referenced this pull request Aug 7, 2025
ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.
ashutosh-agrawal pushed a commit to ashutosh-agrawal/sonic-mgmt that referenced this pull request Aug 14, 2025
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.

Signed-off-by: opcoder0 <[email protected]>
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.

Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.

Signed-off-by: Aharon Malkin <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.

Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.

Signed-off-by: Guy Shemesh <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.

Signed-off-by: Yael Tzur <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
Increase the memory and swap allocated to the PTF
container during ansible setup to 64 GB.

This is necessary for handling the increased
memory consumption from the additional exabgp
processes resulting from the additional number
of peers of the larger topologies that are
coming online.
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants