-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Code optimizations to reduce disk writes on SONiC switches #20640
Code optimizations to reduce disk writes on SONiC switches #20640
Conversation
@keboliu @Junchao-Mellanox @dgsudharsan, please help review this PR, thank you in advance. |
7a94212
to
397263d
Compare
@assrinivasan build checks failing |
7f7e65a
to
b449304
Compare
/azpw ms_conflict |
7b380b4
to
1555847
Compare
…pervisord change to bookworm
1555847
to
db0a894
Compare
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azpw ms_conflict |
@@ -212,6 +212,9 @@ mkdir -p ${rootmnt}/boot | |||
mkdir -p ${rootmnt}/host/$image_dir/boot | |||
mount --bind ${rootmnt}/host/$image_dir/boot ${rootmnt}/boot | |||
|
|||
## Mount the /tmp directory as tmpfs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@assrinivasan How much memory are we loosing on platform with small RAM? Arista 7050-QX?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are currently allocating 25% of total RAM towards /tmp directory on all platforms.
Why I did it
This PR contains various optimizations to reduce disk writes on SONiC switches as mentioned in the High-level Design.
This contributes to the overall reduction in data written to the disk over time, which can help extend the life of the disk and reduce the risk of disk failure.
Work item tracking
How I did it
How to verify it
Flash image with these optimizations onto a sonic switch and check the following:
show bgp summary json
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Code optimizations to reduce disk writes on SONiC switches