Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

htcacheclean(8) [linux man page]

HTCACHECLEAN(8) 						   htcacheclean 						   HTCACHECLEAN(8)

NAME
htcacheclean - Clean up the disk cache SYNOPSIS
htcacheclean [ -D ] [ -v ] [ -t ] [ -r ] [ -n ] -ppath -llimit htcacheclean [ -n ] [ -t ] [ -i ] -dinterval -ppath -llimit SUMMARY
htcacheclean is used to keep the size of mod_disk_cache's storage within a certain limit. This tool can run either manually or in daemon mode. When running in daemon mode, it sleeps in the background and checks the cache directories at regular intervals for cached content to be removed. You can stop the daemon cleanly by sending it a TERM or INT signal. OPTIONS
-dinterval Daemonize and repeat cache cleaning every interval minutes. This option is mutually exclusive with the -D, -v and -r options. To shutdown the daemon cleanly, just send it a SIGTERM or SIGINT. -D Do a dry run and don't delete anything. This option is mutually exclusive with the -d option. -v Be verbose and print statistics. This option is mutually exclusive with the -d option. -r Clean thoroughly. This assumes that the Apache web server is not running (otherwise you may get garbage in the cache). This option is mutually exclusive with the -d option and implies the -t option. -n Be nice. This causes slower processing in favour of other processes. htcacheclean will sleep from time to time so that (a) the disk IO will be delayed and (b) the kernel can schedule other processes in the meantime. -t Delete all empty directories. By default only cache files are removed, however with some configurations the large number of directo- ries created may require attention. If your configuration requires a very large number of directories, to the point that inode or file allocation table exhaustion may become an issue, use of this option is advised. -ppath Specify path as the root directory of the disk cache. This should be the same value as specified with the CacheRoot directive. -llimit Specify limit as the total disk cache size limit. The value is expressed in bytes by default (or attaching B to the number). Attach K for Kbytes or M for MBytes. -i Be intelligent and run only when there was a modification of the disk cache. This option is only possible together with the -d option. EXIT STATUS
htcacheclean returns a zero status ("true") if all operations were successful, 1 otherwise. Apache HTTP Server 2008-05-06 HTCACHECLEAN(8)

Check Out this Related Man Page

cfsadmin(1M)															      cfsadmin(1M)

NAME
cfsadmin - administer disk space used for caching file systems with the Cache File-System (CacheFS) SYNOPSIS
CacheFS-parameters ] cache_directory { cache_ID | cache_directory { mntpt1... } CacheFS-parameters ] cache_directory DESCRIPTION
The command provides the following functions: o cache creation o deletion of cached file systems o listing of cache contents and statistics o resource parameter adjustment when the file system is unmounted. For each form of the command, with the exception of the you must specify a cache directory, that is, the directory under which the cache is actually stored. A path name in the front file system identifies the cache directory. For the of the command, you must specify a mount point. You can specify a cache ID when you mount a file system with CacheFS, or you can let the system generate one for you. The option includes the cache ID in its listing of information. You must know the cache ID to delete a cached file system. Options Create a cache under the directory specified by cache_directory. This directory must not exist prior to cache creation. Remove the file system whose cache ID you specify and release its resources, or remove all file systems in the cache by specifying After deleting a file system from the cache, you must run the command to correct the resource counts for the cache. List file systems stored in the specified cache, as well as statistics about them. Each cached file system is listed by cache ID. The statistics document resource utilization and cache resource parameters. Request a consistency check on the specified file system (or all CacheFS mounted file systems). The option will only work if the cache file system was mounted with enabled (see mount_cachefs(1M)). Each file in the specified cache file system is checked for consistency with its corresponding file in the back file system. Note that the consistency check is performed file by file as files are accessed. If no files are accessed, no checks are performed. Use of this option will not result in a sudden "storm" of consistency checks. Update resource parameters of the specified cache directory. Parameter values can only be increased. To decrease the values, you must remove the cache and recreate it. All file systems in the cache directory must be unmounted when you use this option. Changes will take effect the next time you mount any file system in the specified cache directory. The option with no option sets all parameters to their default values. Operands cache_directory The directory under which the cache is actually stored. cache_ID Cache ID is a string that specifies a particular instance of a cache. mntpt1 The directory under which the CacheFS is mounted. CacheFS Resource Parameters You can specify the following CacheFS resource parameters as arguments to the option. Separate multiple parameters with commas. Maximum amount of storage space that CacheFS can use, expressed as a percentage of the total number of blocks in the front file system. If CacheFS does not have exclusive use of the front file system, there is no guarantee that all the space the parameter allows will be available. The default is Minimum amount of storage space, expressed as a percentage of the total number of blocks in the front file system, that CacheFS is always allowed to use without limitation by its internal control mechanisms. If CacheFS does not have exclusive use of the front file system, there is no guarantee that all the space the parameter attempts to reserve will be available. The default is A percentage of the total blocks in the front file system beyond which CacheFS cannot claim resources once its block usage has reached the level specified by The default is Maximum number of files that CacheFS can use, expressed as a percentage of the total number of inodes in the front file system. CacheFS may automatically increase this parameter when being used on a VxFS file system. If CacheFS does not have exclusive use of the front file system, there is no guarantee that all the inodes the parameter allows will be available. The default is Minimum number of files, expressed as a percentage of the total number of inodes in the front file system, that CacheFS is always allowed to use without limitation by its internal control mechanisms. If CacheFS does not have exclusive use of the front file system, there is no guarantee that all the inodes the parameter attempts to reserve will be available. The default is A percentage of the total inodes in the front file system beyond which CacheFS cannot claim inodes once its usage has reached the level specified by The default is Largest file size, expressed in megabytes, that CacheFS is allowed to cache. The default is Currently, is ignored by CacheFS; therefore, setting it will have no effect. Note: You cannot decrease the block or inode allotment for a cache. To decrease the size of a cache, you must remove it and create it again with different parameters. RETURN VALUE
returns the following values: Successful completion. An error occurred. EXAMPLES
Create a cache directory named Create a cache named that can claim a maximum of 60 percent of the blocks in the front file system, can use 40 percent of the front file system blocks without interference by CacheFS internal control mechanisms, and has a threshold value of 50 percent. The threshold value indicates that after CacheFS reaches its guaranteed minimum, it cannot claim more space if 50 percent of the blocks in the front file sys- tem are already used. Change the parameter for the cache directory to 2 megabytes: List the contents of a cache directory named and provides statistics about resource utilization: Remove the cached file system with cache ID from the cache directory and frees its resources (the cache ID is part of the information returned by Remove all cached file systems from the cache directory Check for consistency of all filesystems mounted with enabled. No errors will be reported if no filesystems are found. AUTHOR
was developed by Sun Microsystems, Inc. SEE ALSO
cachefsstat(1M), fsck_cachefs(1M), mount_cachefs(1M). cfsadmin(1M)
Man Page