You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize startup performance by seeking to end of kmsg buffer
Adds seeking to EOF during kmsg initialization to skip processing
historical kernel messages, significantly improving startup time.
Changes:
- Seek to end of /dev/kmsg buffer during KmsgReader initialization
- Only process new kernel messages that occur after startup
- Add graceful fallback if seek operation fails
- Include debug logging for seek operation status
Benefits:
- Faster startup, especially on systems with long uptimes
- Immediate readiness to monitor new OOM events
- Reduced CPU/memory usage during initialization
- Combined with timestamp filtering for robust event filtering
This is particularly beneficial on production systems with high kernel
message activity or long uptimes where historical message processing
would cause startup delays.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>