-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Code optimizations to reduce disk writes on SONiC switches #20640
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
Changes from all commits
7e5d9df
232ca9d
fccea81
af9e4e1
a3edc17
85d0915
3e0cfd1
da3beb6
100b62f
2ebdcf1
db0a894
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,2 +1,6 @@ | ||
| [Unit] | ||
| Requires=logrotate-config.service | ||
| Requires=logrotate-config.service | ||
|
|
||
| [Service] | ||
| ExecStart= | ||
ashwnsri marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| ExecStart=/usr/sbin/logrotate --state /dev/shm/logrotate/status /etc/logrotate.conf | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
| mount -t tmpfs -o rw,nosuid,nodev,size=25% tmpfs ${rootmnt}/tmp | ||
|
|
||
| ## Mount loop device or tmpfs for /var/log | ||
| if $logs_inram; then | ||
| # NOTE: some platforms, when reaching initramfs stage, have a small | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.