Skip to content

Release v0.1.4

Latest

Choose a tag to compare

@ashwanthkumar ashwanthkumar released this 17 Jun 03:50
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>