Imported from GitHub samson-media/barn#23 — opened by @daniel-samson on 2026-01-21 15:52:55 UTC
It would be useful to monitor who much resources each job is using:
CPU usage as a percentage
Memory usage in bytes
Hard usage in bytes of the /tmp
GPU usage as a percentage (if available)
GPU Memory usage in bytes (if available)
This usage would be stored in /tmp as a log in the job folder. it should be stored a csv format with a timestamp as the first column.
this can be accessed via a new command barn usage {job id}
<!-- github-import:issue:23 -->
_Imported from GitHub samson-media/barn#23 — opened by **@daniel-samson** on 2026-01-21 15:52:55 UTC_
It would be useful to monitor who much resources each job is using:
- CPU usage as a percentage
- Memory usage in bytes
- Hard usage in bytes of the /tmp
- GPU usage as a percentage (if available)
- GPU Memory usage in bytes (if available)
This usage would be stored in /tmp as a log in the job folder. it should be stored a csv format with a timestamp as the first column.
this can be accessed via a new command `barn usage {job id}`
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Imported from GitHub samson-media/barn#23 — opened by @daniel-samson on 2026-01-21 15:52:55 UTC
It would be useful to monitor who much resources each job is using:
This usage would be stored in /tmp as a log in the job folder. it should be stored a csv format with a timestamp as the first column.
this can be accessed via a new command
barn usage {job id}@daniel-samson commented on 2026-01-21 16:23:13 UTC:
Implemented process usage monitoring:
New Components:
UsageRecord- Record for holding usage metrics (CPU, memory, disk, GPU)UsageCollector- Collects metrics using OS-specific commands (ps, wmic, nvidia-smi)UsageLogger- Thread-safe CSV writer for usage.csvUsageMonitor- Scheduled executor sampling every 5 secondsUsageCommand- CLI commandbarn usage <job-id>CLI Options:
--limit N- Limit to last N samples--csv- Export raw CSV data--summary- Show summary statistics only--output json|xml- Output formatIntegration:
Tests:
Documentation: