opensearch-project/remote-vector-index-builder
[FEATURE] Profile Memory for Index Build Service
Open
#45 opened on Mar 31, 2025
enhancementgood first issue
Repository metrics
- Stars
- (8 stars)
- PR merge metrics
- (PR metrics pending)
Description
Is your feature request related to a problem?
The Index Build Service orchestrates the index build process in three steps
- Building a GPU Index
- Converting a CPU index to GPU Index
- Writing a CPU Index to disc. The artifacts from the previous phase are eagerly deleted during this process. We would like to profile the GPU and CPU memory consumption over the course of this process
What solution would you like?
Specifically GPU and CPU memory consumption before and after every phase of execution must be observed to verify the right amount of memory was assigned and successfully cleaned up after every phase or an error condition.
What alternatives have you considered?
For measuring RAM consumed by CPU, we used Memory Profiler For measuring NVIDIA GPU memory we used nvidia_smi from p3nvml
Do you have any additional context?
Faiss Index Build Process