Bug 1145651

Summary: gvfsd-trash polls all user directories
Product: Red Hat Enterprise Linux 6 Reporter: Han Boetes <boetes.external>
Component: gvfsAssignee: Ondrej Holy <oholy>
Status: CLOSED DUPLICATE QA Contact: Desktop QE <desktop-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.5CC: tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-09-25 15:50:24 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Han Boetes 2014-09-23 12:30:00 UTC
Description of problem:

Our company has quite a few users that are logged on to a few servers. And their homedirectories are automounted. To give an indication:

% df|wc -l
1163
% w | wc -l        
645

We noticed hi system load and noticed gvfsd-trash is causing a lot of load for each individual user. Running strace on an individual process shows that for every user on the system, every 2 seconds gvfsd-trash polls their home directory. That's 200000 polls every second. 

inotify_add_watch(7, "/home/xxx", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 EACCES (Permission denied)

How can we solve this problem? How can we tell gvfsd-trash to only look in home directory of the user and not try to acces the homedirectories of other users?

% rpm -q gvfs
gvfs-1.4.3-16.el6_5.x86_64

Version-Release number of selected component (if applicable):


How reproducible:

Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Ondrej Holy 2014-09-25 15:50:24 UTC

*** This bug has been marked as a duplicate of bug 998061 ***