Bug 501503 - Request: have mlocate skip enumeration of generated file names
Request: have mlocate skip enumeration of generated file names
Product: Fedora
Classification: Fedora
Component: mlocate (Show other bugs)
All Linux
low Severity medium
: ---
: ---
Assigned To: Miloslav Trmač
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2009-05-19 10:07 EDT by Steve Snyder
Modified: 2009-05-19 12:04 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2009-05-19 12:04:32 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Skip ccache and squid directory trees when indexing (401 bytes, patch)
2009-05-19 10:07 EDT, Steve Snyder
no flags Details | Diff

  None (edit)
Description Steve Snyder 2009-05-19 10:07:20 EDT
Created attachment 344620 [details]
Skip ccache and squid directory trees when indexing

Description of problem:

mlocate indexes a lot of files with generated file names (e.g. ccache and squid) that users will never search for.  I request that mlocate skip these file when index the local file systems.

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


How reproducible:


Steps to Reproduce:
1.  Use ccache or squid
2.  After use, note one of the names of the generated files
3.  Search for the filename using the "locate" command
Actual results:

mlocate index all files, even names that would be nonsensical for a user-initiated look-up

Expected results:


Additional info:

# ls /var/cache/ccache/0/0/
129a6b2966f0ebd895d70ce1048cfe-112265         16d22bf175b3a4895f4747864c06fb-261290.stderr
129a6b2966f0ebd895d70ce1048cfe-112265.stderr  78f3d5a59b45c895afa689ffbe0952-254921
16d22bf175b3a4895f4747864c06fb-261290         78f3d5a59b45c895afa689ffbe0952-254921.stderr

Why is Red Hat slowing indexing and look-up times, and using disk space for the swollen database, on files with these kinds of names?

I want to extend this change request to Red Hat Enterprise Linux also.
Comment 1 Miloslav Trmač 2009-05-19 12:04:32 EDT
Thanks for your report.

/var/spool/squid is already excluded in /etc/updatedb.conf.  I have added /var/cache/ccache in rawhide mlocate-0.22-2.

As for Red Hat Enterprise Linux: If you are a RHEL customer and have an active support entitlement, please contact official Red Hat Support at https://www.redhat.com/apps/support/ to allow correct prioritization of this issue.  Otherwise, please file a separate report in bugzilla against the "Red Hat Enterprise Linux" product.

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