-
Notifications
You must be signed in to change notification settings - Fork 183
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
How many writes does the hourly sync cause? #64
Comments
This project has been made for SD card. In case of HDD, your aren't limited to write cycle. |
HDD as apposed to Ram irrespective of if media is SD, Nand or Emmc still doesn't change the fact that writing out complete logs on any change every hour, especially as those logs increase in size, means yes frequency of write is lowered, but the write size is often huge in comparison. It is dependent on log size but with the application of the sphere of log2ram of the general Pi & clone world of Arm SBC computers its debatable if L2R makes much difference in frequency in comparison to write Size. The ramlog only needs to be written to hdd.log as it is programmatically named on stop. Reducing hourly writes by sometimes as little as 3 or 4 but increasing data write size upwards of a 1,000 is likely no better and maybe even worse. |
The service reload via the hourly cron job causes sync to disk on each hour
There is an absence of any check to drive usage and from the cp command the whole $RAM_LOG is written out to HDD.
Isn't this likely to cause vastly more HDD writes than just appending to normal logs in many situations?
It completely lacks any form of control, probably should run more frequently but with logical tests if log usage necessitates a sync, but just to overwrite everything each hour?
`syncToDisk () {
isSafe
}`
I guess somrthing like sudo sed -i.bak '/^\srotate ./i olddir /var/log/oldlog' inputfile
But I am far from accomplished with sed
The text was updated successfully, but these errors were encountered: