Home > Enterprise Linux Tips > > Cache maintenance key to server performance
Enterprise Linux Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Cache maintenance key to server performance


Barrie Sosinsky
02.19.2003
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Most administrators tend to set up a file system's cache and then forget about it. However, you can squeeze better performance from your server if you optimize your cache from time to time. You should check your cache to see if it still contains the file systems you want. If not, you might want to modify or recreate the cache. In Solaris, for example, there are several commands that let you display cache information, check a cache's consistency, check a file system's integrity, and delete or add file systems to the cache.

Assuming that you are using the /etc/vfstafb file to mount file system, in order to edit the file systems you would edit the entries for those file systems in the vfstab file. When you are using the AutoFS function, you can change file system options for the cache as part of the AutoFS amps. To specify a cache file system in the AutoFS map you need to add a line to the auto_direct map as a superuser.

Several commands are useful in your work of maintaining your file-system cache. The cfsadmin command will display information about the cache and its file systems, as well as allowing you to delete a file system from a particular cache. The cachefsstat command will show you statistical information about a file system, displaying information contained in the cache itself. The cachefspack command lets you specify which files and directories to pack into the cache.

If you suspect you have an integrity problem with your cache, you can check the integrity and perform repairs using the fsck –F cache {-m} {-o noclean} cache_directory command.

Use the cachefswssize to determine if the log file's data suggests that you alter the cache size. You can also use the cachefslog command to view what is being logged to the cache log file, and to suspend logging, if desired. If you suspect that poor log performance is an issue, you can use the cachefslog command to move the log file to a faster disk or one with more available space.


Barrie Sosinsky is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


Rate this Tip
To rate tips, you must be a member of SearchEnterpriseLinux.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Enterprise Linux Web Server & Application Server
HomeNewsTopicsITKnowledge ExchangeTipsBlogsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2003 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts