CentOS Icon CentOS Logo
CentOS Text
   
  
www.centos.org Forum Index
   CentOS 6 - General Support
  CentOS 6.2- cachefilesd and CIFS

 

 Bottom   Previous Topic   Next Topic
  •  Rate Thread
      Rate this Thread
      Excellent
      Good
      Average
      Bad
      Terrible
Poster Thread
  •  gbohn
      gbohn
CentOS 6.2- cachefilesd and CIFS
#1
Newbie
Joined: 2012/2/20
From
Posts: 8
Hi;

I was hoping to solve a performance issue I'm having with network throughput from servers I mount (using CIFS) from my CentOS 6.2 64-Bit system. I saw that there was a 'CacheFiles' Daemon package available that might work with my CIFS mounts.

So I installed the 'Cachefilesd' package, and tried adding the ',fsc' option to my file shares mount descriptions in /etc/fstab.

When I try to mount the network share, I now get a return of

mount error(22): Invalid argument

and dmesg shows

IFS VFS: FS-Cache support needs CONFIG_CIFS_FSCACHE kernel config option set
CIFS VFS: cifs_mount failed w/return code = -22

So, do I correctly assume that this combination (File caching and CIFS mounted shares) isn't compatible with the kernel version used by the CentOS 6.2 package?

This is actually running as a virtual machine under VMware workstation with the 'VMware Guest tools' installed, in case that's relevant.

Thanks;
Posted on: 2012/3/1 0:33
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: CentOS 6.2- cachefilesd and CIFS
#2
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
The first thing to try would be to remove the fsc option, and the second would be to uninstall the package that broke things. The package description does not explicitly mention CIFS:
# yum info cachefilesd
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Loading mirror speeds from cached hostfile
Available Packages
Name        : cachefilesd
Arch        : i686
Version     : 0.10.2
Release     : 1.el6
Size        : 34 k
Repo        : base
Summary     : CacheFiles userspace management daemon
URL         : http://people.redhat.com/~dhowells/fscache/
License     : GPL
Description : The cachefilesd daemon manages the caching files and directory
            : that are that are used by network filesystems such a AFS and NFS
            : to do persistent caching to the local disk.
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/3/3 15:43
Create PDF from Post Print
Top
  •  gbohn
      gbohn
Re: CentOS 6.2- cachefilesd and CIFS
#3
Newbie
Joined: 2012/2/20
From
Posts: 8
>The first thing to try would be to remove the fsc option, and the second would be to uninstall the package that broke things.

I guess I failed to mention that I can make this work without fsc. albeit presumably without cachefiled functionality.

I was actually hoping to find out if this combination (cachefilesd, CIFS, and CentOS 6.2) is supposed to be compatible or not.

> The package description does not explicitly mention CIFS

I was going by the man for mount.cifs (from CentOS 6.2)

fsc
           Enable local disk caching using FS-Cache for CIFS. This option could be useful to improve performance on a
           slow link, heavily loaded server and/or network where reading from the disk is faster than reading from
           the server (over the network). This could also impact the scalability positively as the number of calls to
           the server are reduced. But, be warned that local caching is not suitable for all workloads, for e.g.,
           read-once type workloads. So, you need to consider carefully the situation/workload before using this
           option. Currently, local disk caching is enabled for CIFS files opened as read-only.

           NOTE: This feature is available only in the recent kernels that have been built with the kernel config
           option CONFIG_CIFS_FSCACHE. You also need to have cachefilesd daemon installed and running to make the
           cache operational.


So, I was hoping this would work in CentOS.

When I tried it, I got the warning that seems to be saying that the kernel is not compiled with the needed option.

Not having any experience with this, I was hoping someone else might have a definitive answer.
Posted on: 2012/3/3 23:13
Create PDF from Post Print
Top
  •  pschaff
      pschaff
Re: CentOS 6.2- cachefilesd and CIFS
#4
Moderator
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 18773
With that more compete information, and after reading your first post more carefully :
# grep CONFIG_CIFS_FSCACHE /boot/config-2.6.32-*
/boot/config-2.6.32-220.2.1.el6.i686:# CONFIG_CIFS_FSCACHE is not set
/boot/config-2.6.32-220.4.1.el6.i686:# CONFIG_CIFS_FSCACHE is not set
/boot/config-2.6.32-220.4.2.el6.i686:# CONFIG_CIFS_FSCACHE is not set
_________________
Phil

Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions
Posted on: 2012/3/4 0:05
Create PDF from Post Print
Top
 Top   Previous Topic   Next Topic

 


 You cannot start a new topic.
 You can view topic.
 You cannot reply to posts.
 You cannot edit your posts.
 You cannot delete your posts.
 You cannot add new polls.
 You cannot vote in polls.
 You cannot attach files to posts.
 You cannot post without approval.




"Linux" is a registered trademark of Linus Torvalds. | All other trademarks are property of their respective owners. | All other content is Copyright @ 2004-2009 by the CentOS Project or "each individual contributor (forums, comments, etc.) unless otherwise assigned".| Theme based on a theme by 7dana.com