Files
seaweedfs/weed/mount/ml
chrislu e7f5fff989 Phase 2: Enhanced ML-aware caching with open file tracking
- Add OpenFileCache with ML file detection and chunk-level metadata tracking
- Implement MLCachePolicy with intelligent eviction based on ML workload patterns
- Create FUSEMLIntegration for seamless integration with FUSE operations
- Add MLIntegrationManager as main interface for mount package integration
- Support for ML file type detection (datasets, models, configs, tensors, logs)
- Multi-factor eviction scoring considering access patterns, file types, and ML heuristics
- Enhanced cache timeouts for different ML file types
- FOPEN_KEEP_CACHE and writeback cache optimizations for ML workloads

Features:
- ML file type detection based on extensions, paths, and size heuristics
- Intelligent cache eviction with ML-aware scoring (frequency, recency, size, ML factors)
- Open file tracking with chunk-level metadata and access pattern integration
- FUSE integration with ML-specific optimizations (keep cache, writeback, extended timeouts)
- Comprehensive metrics and monitoring for all ML cache components
- Concurrent access support with proper locking

Test Results: 18/22 tests passing - core functionality solid
Architecture: Clean separation into dedicated ml package with integration layer
2025-08-30 15:25:35 -07:00
..