Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2425
  • Last Modified:

cat /var/log/messages log... too many cachefilesd

This is my /etc/cachefilesd.con

# Copyright (C) 2006,2010 Red Hat, Inc. All Rights Reserved.
# Written by David Howells (dhowells@redhat.com)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version
# 2 of the License, or (at your option) any later version.
#
###############################################################################

dir /var/cache/fscache
tag mycache
brun 10%
bcull 7%
bstop 3%
frun 10%
fcull 7%
fstop 3%

# Assuming you're using SELinux with the default security policy included in
# this package
#secctx system_u:system_r:cachefiles_kernel_t:s0






when i type tail cat /var/log/messages, below is output



==> messages <==
Mar  3 16:09:10 lap-1 cachefilesd[1335]: Scan complete
Mar  3 16:09:40 lap-1 cachefilesd[1335]: Scan complete
Mar  3 16:10:10 lap-1 cachefilesd[1335]: Scan complete
Mar  3 16:10:40 lap-1 cachefilesd[1335]: Scan complete
Mar  3 16:11:10 1 cachefilesd[1335]: Scan complete
Mar  3 16:11:13 1 avadhi-daemon[1471]: Invalid response packet from host 10......
Mar  3 16:11:13 vfx-lap-1 avahi-daemon[1471]: Invalid response packet from host 10......
Mar  3 16:11:14 vfx-lap-1 avahi-daemon[1471]: Invalid response packet from host 10.62.4.38.
Mar  3 16:11:40 lap-1 cachefilesd[1335]: Scan complete
Mar  3 16:12:10 lap-1 cachefilesd[1335]: Scan complete
0
aashee
Asked:
aashee
  • 3
  • 3
1 Solution
 
torimarCommented:
It is not quite clear what the question is. So I assume you wish to know what these entries mean.

Cachefilesd, created mainly for Red Hat Linux, is a daemon/service that will cache files on the network (NFS or AFS filesystems) on your local computer. This is mainly done with the intention to reduce network traffic.
In order to maintain operability on the local system, the device on which the cache is created (i.e. the partition where the folder /var/cache/fscache is located) needs to be checked for a certain minimum amount of free space. As soon as there is less than the minimum amount, the service will start culling older files in order to retain the minimum free space or it will even stop caching.
In order to know which files may be deleted by the culling process, the service scans the cached files for use twice a minute, and then creates a table sorted by least used files.
This filesystem check is performed twice a minute.

If you do not know why this service is running on your system, or if the system even isn't connected to a network filesystem, you can stop it any time using:

# service cachefilesd stop
and restart:
# service cachefilesd start

You will find an excellent analysis and description of the FSCache in this online book on the linked and following pages:
http://www.linuxtopia.org/online_books/rhel6/rhel_6_storage_admin/rhel_6_storage_fscachemain.html
0
 
aasheeAuthor Commented:
i want to reduce number of entries? so i want to eliminate the cause which is bringing these entries?
0
 
torimarCommented:
Then run:

service cachefilesd stop
0
NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

 
aasheeAuthor Commented:
bascially, in my var/log/messages. there are tooo many entries of  cachefilesd[1335]: Scan complete

how can i make it less verbose ?  so that its not full of these entries ?
0
 
aasheeAuthor Commented:
torimar, thanks a lot for your help. i know .it will completely stop this service. i don't want to do that. i want to make it less verbose please.
0
 
torimarCommented:
There is no documented configuration or startup option to make the cachefiles daemon log less verbosely. If there were, I'd have already told you.

I searched even further to see whether there were any configuration options of that kind if you compiled the cachefiles service yourself from the sources; I couldn't find any.

I also searched the developers' mailing lists (com.redhat.linux-cachefs) to see if there is a patch pending. There has indeed been a verboseness patch proposed in April 2010 (http://markmail.org/message/c7utg7kokrq43fbj ), but: it does not address the "scan complete" message (only messages concerned with "culling"), and it will already have been integrated into the program if you are running a recent version.

So I'm afraid you will either have to live with the amount of messages, or need to make up your mind again whether you actually need the service. If in doubt, please read the chapter 11.1 ("Performance guarantee") here:
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Storage_Administration_Guide/index.html
0
 
mccrackyCommented:
The other option would be to point those messages to another log file if you don't want them in /var/log/messages.  Check out the configuration of syslog.

The other thing is that there is a command line switch (-s) that redirects messages to stderr rather than syslog.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now