Ubuntu – Mitigation for gvfs memory leak

18.04gvfsmemory leak

I have a workflow like this: I fire up my Win7 virtual machine, connect my smartphone, and run Samsung Smartswitch. This worked great in 14.04 LTS.

In 18.04 LTS…not so much. There's a giant memory leak in gvfsd-mtp that hoovers up all 12G of my RAM and brings my system to a halt.

There are bugs related to this and I've reported another. My question is, can there be any mitigation for this? Is there a way to fence in gvfs so it cannot use up all the RAM?

Best Answer

You can stop gvfsd-mtp process to avoid the memory increase:

pkill -STOP gvfsd-mtp
Related Question