Skip to content
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

[Bug]: armbian-ramlog severely slowed down by nocache tool #6890

Open
1 of 2 tasks
alex3d opened this issue Jul 5, 2024 · 1 comment
Open
1 of 2 tasks

[Bug]: armbian-ramlog severely slowed down by nocache tool #6890

alex3d opened this issue Jul 5, 2024 · 1 comment
Labels
Bug Something isn't working as it should

Comments

@alex3d
Copy link
Contributor

alex3d commented Jul 5, 2024

What happened?

Currently armbian-ramlog uses nocache to bypass pagecache, but this severely slows down boot process.
It seems that even the nocache official page claims this tools should not be used for anything except learning purposes.
If there is no rationale to leave it in Armbian, I'll send a PR to remove nocache.

How to reproduce?

${NoCache} rsync -aXWv \
--exclude "lost+found" --exclude armbian-ramlog.log \
--exclude 'journal*' --one-file-system \
--links \
${XTRA_RSYNC_TO[@]+"${XTRA_RSYNC_TO[@]}"} \
$RAM_LOG/ $HDD_LOG/ 2>&1 | $LOG_OUTPUT

root@rk:~# time rsync -aXWv --delete --exclude "lost+found" --exclude armbian-ramlog.log --exclude '*.gz' --exclude '*.xz' --exclude='*.[0-9]' --links --exclude 'journal*' --one-file-system /var/log.hdd/ /var/log/tmp/ >/dev/null

real    0m0.187s
user    0m0.060s
sys     0m0.148s
root@rk:~# time nocache rsync -aXWv --delete --exclude "lost+found" --exclude armbian-ramlog.log --exclude '*.gz' --exclude '*.xz' --exclude='*.[0-9]' --links --exclude 'journal*' --one-file-system /var/log.hdd/ /var/log/tmp/ >/dev/null

real    0m6.858s
user    0m2.300s
sys     0m4.567s

Branch

main (main development branch)

On which host OS are you running the build script and observing this problem?

Ubuntu 24.04 Noble

Are you building on Windows WSL2?

  • Yes, my Ubuntu/Debian/OtherOS is running on WSL2

Relevant log URL

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@alex3d alex3d added the Bug Something isn't working as it should label Jul 5, 2024
Copy link

github-actions bot commented Jul 5, 2024

Jira ticket: AR-2403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working as it should
Development

No branches or pull requests

1 participant