mirror of
https://github.com/Syllo/nvtop.git
synced 2026-04-22 15:08:12 -04:00
- Change from exponential to linear realloc strategy. There are not too many processes running on the GPUs, incrementing the process buffer by increments of 16 is more reasonable. Similarly for DRM file descriptors, there are usually 2-4 of them open at one time by one process. Increment of 8 should cover most cases. - Share the PID buffer for DRM FDs while scanning processes to avoid unnecessary allocations. - Exit the program if reallocarray fails