Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] intel-gpu-top: Optimise the scanning loop a bit

2022-06-14 Thread Umesh Nerlige Ramappa
On Mon, Jun 06, 2022 at 02:27:19PM +0100, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Opendir(3) and fdopendir(3) are quite expensive system calls when ran in a loop which iterates all processes in a system times all open files in each. Replace some of them (easy ones) with simpler

Re: [Intel-gfx] [igt-dev] [PATCH i-g-t] intel-gpu-top: Optimise the scanning loop a bit

2022-06-14 Thread Tvrtko Ursulin
+ Umesh If you have time this is an easy improvement extracted from the "vendor agnostic gputop" series. Regards, Tvrtko On 06/06/2022 14:27, Tvrtko Ursulin wrote: From: Tvrtko Ursulin Opendir(3) and fdopendir(3) are quite expensive system calls when ran in a loop which iterates all