RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1145651 - gvfsd-trash polls all user directories
Summary: gvfsd-trash polls all user directories
Keywords:
Status: CLOSED DUPLICATE of bug 998061
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: gvfs
Version: 6.5
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Ondrej Holy
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-23 12:30 UTC by Han Boetes
Modified: 2019-03-22 07:19 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-25 15:50:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.