Memory optimization of nvpmodel_indicator.py

I think memory optimization of the nvpmodel_indicator.py is needed.
The processes occupy a fair amount of memory

Thanks for your comments, our team will do the investigation.

there is already a bug field. track there

Hi @rreddy78,

The actual physical memory consumed by the applet is less than the numbers suggested by the screenshot because the major portion of its memory space is loaded with shared libraries which are used by other applications as well.

Before nvpmodel_indicator start:

          total        used        free      shared  buff/cache   available

Mem: 1.9G 192M 1.6G 19M 142M 1.7G
Swap: 989M 0B 989M

After nvpmodel_indicator started:

          total        used        free      shared  buff/cache   available

Mem: 1.9G 240M 1.6G 19M 139M 1.6G
Swap: 989M 0B 989M

So the total physical memory consumed by the applet is around 48 MB. The memory usage might be reduced a bit by merging some of its processes but I expect the gain would be no more than 10 MB.

If 48 MB memory is an issue for you, I would suggest disabling the applet by deleting below file on Nano:

/etc/xdg/autostart/nvpmodel_indicator.desktop

or commenting out the file’s content.

HTH

yes. Thanks.
I have disabled the nvpmodel_indicator and blueman applet (which i dont use) to save around 100MB.

Please be also aware of that you won’t be seeing thermal/over current warning with the applet disabled. Those warning can happen if device is running heavy workload without proper power supply or cooling fan.

Yeah. Thanks. I am using a CPU fan now for safety.