Closed nrabett closed 2 years ago
@nrabett
htop shows that onedrive --monitor uses around two minutes of CPU time for each hour the computer is running. This appears to be much compared to other services.
Sorry, however this is not a bug of issue. This will be the data integrity check being performed. Please read:
Thanks for the quick reaction. So I am to assume that the 19 352 errors reported from newfstatat are not a concern?
@nrabett
Thanks for the quick reaction. So I am to assume that the 19 352 errors reported from newfstatat are not a concern?
Short answer: no concern from my end regarding newfstatat errors.
Many thanks for answering my follow-up question to a rejected bug report with such detail! – Concerning the log, I didn’t include it because of privacy issues – editing away all the file names seemed like too much work, although evidently much less work than you put down answering. My logs (standard verbosity) for the last days show no errors.
What concerned me with the newfstatat messages was not only the number of errors but also the fact that newfstatat is triggered (sorry if this is an incorrect expression) almost two million times during one hour of operation, and that this apparently causes almost half of the client’s CPU use.
During a normal day, less than 40 files are usually changed or added to my OneDrive. I will follow your advice and reduce the monitor_fullscan frequency to around once a day. Reducing the monitor interval to 150 seconds seemed necessary because I didn’t like waiting for files uploaded from elsewhere to arrive at my server. If there is any way to perform an instant server request “manually” while onedrive --monitor is running in the background, I have overlooked it.
Concerning the other issues you mention, it certainly seems interesting to delve deeper into the possible causes of the apparent anomaly, but living in a country where houses are heated with electricity, I consider the CPU use to be acceptable. Thanks again!
@nrabett
Concerning the log, I didn’t include it because of privacy issues
Please re-read https://github.com/abraunegg/onedrive#reporting-an-issue-or-bug very carefully ................
If there is any way to perform an instant server request “manually” while onedrive --monitor is running in the background, I have overlooked it.
Please re-read https://github.com/abraunegg/onedrive/blob/master/docs/USAGE.md#running-onedrive-in-monitor-mode in more detail.
@nrabett
Additionally:
What concerned me with the newfstatat messages was not only the number of errors but also the fact that newfstatat is triggered (sorry if this is an incorrect expression) almost two million times during one hour of operation, and that this apparently causes almost half of the client’s CPU use.
Potentially do not use Ubuntu .... Use a better distribution.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Describe the bug
htop shows that onedrive --monitor uses around two minutes of CPU time for each hour the computer is running. This appears to be much compared to other services.
Operating System Details
Client Installation Method
From 3rd Party Source (PPA, OpenSuSE Build Service etc)
OneDrive Account Type
Personal
What is your OneDrive Application Version
onedrive v2.4.18-1~np1
What is your OneDrive Application Configuration
What is your 'curl' version
Where is your 'sync_dir' located
Local
What are all your system 'mount points'
What are all your local file system partition types
How do you use 'onedrive'
My OneDrive contains around 12 000 files. The OneDrive folder is in my local home folder. One of my OneDrive folders is a symlink to a folder on the same disk the OS is running from. I use an rsync script to backup the contents of my OneDrive with versioning to a separate backup disk. I reduced the setting "monitor interval" to 150 seconds, and increased "monitor_fullscan_frequency'" to 24 - so apparently, the time between full scans should be the same.
Steps to reproduce the behaviour
Not applicable.
Complete Verbose Log Output
Screenshots
No response
Other Log Information or Details
Additional context
No response