Open assrinivasan opened 1 week ago
Need a way for "show tech" to be aware of the resources on the system.
show techsupport
could generate sonic dumps in /var/tmp
which is on disk, as opposed to /tmp
which could be tmpfs. This would resolve the issue. @prabhataravind @prgeor @saiarcot895
Description
The
show_techsupport/test_auto_techsupport.py::TestAutoTechSupport::test_max_limit[core]
test creates huge core files. When /tmp is on tmpfs and available memory is low, it crashes the device.Steps to reproduce the issue:
Describe the results you received:
Filesystem Information and Free Memory During test progression:
The available memory is exhausted when large core files are created, leading to a system crash. This causes the DUT to be unreachable:
Describe the results you expected:
show techsupport
to passOutput of
show version
:Output of
show techsupport
:Additional information you deem important (e.g. issue happens only occasionally):
Related issue: https://github.com/sonic-net/sonic-buildimage/issues/15051