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

Reduce max size of vm.log file from 1GB to something less #20

Open
filipmeszaros opened this issue Dec 15, 2022 · 2 comments
Open

Reduce max size of vm.log file from 1GB to something less #20

filipmeszaros opened this issue Dec 15, 2022 · 2 comments

Comments

@filipmeszaros
Copy link

When you are running a staking wallet, vm.log log file starts to get filled with messages
"Paying 39.999 Mwei from sender for gas ( 39999999 gas at 1 wei )" sometimes multiple times per one second.
Max size of this log file seems to be about 1GB, and it seems to be quite useless.

Purpose of this issue is to fix Hydra binaries to reduce max size of this log file (or reduce occurence of this log), so that stakers using system with low resources (e.g. raspberry pi) doesn't need to have additional 1GB of disk size for this logfile.

Some debug info:
In about 1 day of staking, log messages
"Paying 39.999 Mwei from sender for gas ( 39999999 gas at 1 wei )" were added more than 156 000 times to a log.

@filipmeszaros
Copy link
Author

Side note: If you would introduce some log rotation in a way that log files would be compressed, user would save LOTS of space.
E.g. my current vm.log file which is 360MB big, has been compressed to a zip/tar.gz file with size 6.8MB

@RosenKrumov
Copy link
Member

Planned for fixing in the next EVM release, as the change is there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants