-
-
Notifications
You must be signed in to change notification settings - Fork 671
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
Logging may fill up /tmp mount until all zellij instances are closed #1410
Comments
My preferences here would be the following:
I think this is a very good idea.
I think this can be configurable, as well as the option to turn the log off optionally. |
Hello, I was recently affected by this and it's certainly not fun, so I'd like to help get it moving. @imsnif Would you like to help come up with/settle on an acceptable solution? |
I don't have a lot of context on this - maybe @raphCode can lead you the right direction? |
We can either do something of the options proposed in first post, probably the best would be to limit log size or create a per-session / per-process logfile. I think we are using some logging crate, accessed by the While this fixes the problem with filling up |
The filling up may still happen when log messages are repeated, #1454 fixes only one specific repeating message that we observed a few times so far. So in general, I think the issue is still valid and logging could be improved. |
I created a PR for rotating the log once it reaches 20 MB: #1548 This should fix the unbounded log growth. |
I did something with zellij and it started spamming the logfile with
empty ipc
messages.This filled up the maximum capacity of the /tmp mount, which is backed by RAM or swap, consuming those ressources.
I noticed because the build process fails when it can't write to /tmp.
The actual problem is that deleting the offending log file does not remedy the situation as long as any zellij instance is running: All zellij processes have an open file descriptor to that file and the kernel holds on to the file content as long as there are any references to it.
This effectively forces me to close my working session which is bad.
Possible solutions:
/var/log
(potentially filling up disk space, ouch my SSD lifetime!)open(2)
withO_APPEND
), in theory it should be possible to free up space once the filename is deleted since no fd refers to the "early parts" of the file. But I don't think the kernel supports something like this.The text was updated successfully, but these errors were encountered: