Parallel SMART Data Collection #15

Open
opened 2026-02-02 15:03:37 -05:00 by jared · 0 comments
Owner

Current: Sequential queries (slow)

for bay in ...; do
smart_info=$(get_drive_smart_info "$device")
done

Optimization:

Parallel with background jobs

for bay in ...; do
get_drive_smart_info "$device" "$bay" &
done
wait

# Current: Sequential queries (slow) for bay in ...; do smart_info=$(get_drive_smart_info "$device") done Optimization: # Parallel with background jobs for bay in ...; do get_drive_smart_info "$device" "$bay" & done wait
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/driveAtlas#15