1 '\" te
   2 .\"  Copyright (c) 1996, Sun Microsystems, Inc.  All Rights Reserved
   3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
   4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
   5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
   6 .TH CACHEFSWSSIZE 1M "Sep 16, 1996"
   7 .SH NAME
   8 cachefswssize \- determine working set size for cachefs
   9 .SH SYNOPSIS
  10 .LP
  11 .nf
  12 \fBcachefswssize\fR \fIlogfile\fR
  13 .fi
  14 
  15 .SH DESCRIPTION
  16 .sp
  17 .LP
  18 The \fBcachefswssize\fR command displays the workspace size determined from
  19 \fIlogfile\fR. This includes the amount of cache space needed for each
  20 filesystem that was mounted under the cache, as well as a total.
  21 .SH USAGE
  22 .sp
  23 .LP
  24 See \fBlargefile\fR(5) for the description of the behavior of
  25 \fBcachefswssize\fR when encountering files greater than or equal to 2 Gbyte (
  26 2^31 bytes).
  27 .SH EXAMPLES
  28 .LP
  29 \fBExample 1 \fRA sample output of \fBcachefswssize\fR.
  30 .sp
  31 .LP
  32 \fBexample% cachefswssize /var/tmp/samlog\fR
  33 
  34 .sp
  35 
  36 .sp
  37 .TS
  38 l l l
  39 l l l .
  40 \fB/home/sam\fR         
  41         \fBend size:\fR \fB10688k\fR
  42         \fBhigh water size:\fR  \fB10704k\fR
  43                 
  44 \fB/foo\fR              
  45         \fBend size:\fR \fB128k\fR
  46         \fBhigh water size:\fR  \fB128k\fR
  47                 
  48 \fB/usr/dist\fR         
  49         \fBend size:\fR \fB1472k\fR
  50         \fBhigh water size:\fR  \fB1472k\fR
  51                 
  52 \fBtotal for cache\fR           
  53         \fBinitial size:\fR     \fB110960k\fR
  54         \fBend size:\fR \fB12288k\fR
  55         \fBhigh water size:\fR  \fB12304k\fR
  56 .TE
  57 
  58 .SH EXIT STATUS
  59 .sp
  60 .LP
  61 The following exit values are returned:
  62 .sp
  63 .ne 2
  64 .na
  65 \fB\fB0\fR\fR
  66 .ad
  67 .RS 12n
  68 success
  69 .RE
  70 
  71 .sp
  72 .ne 2
  73 .na
  74 \fBnon-zero\fR
  75 .ad
  76 .RS 12n
  77 an error has occurred.
  78 .RE
  79 
  80 .SH SEE ALSO
  81 .sp
  82 .LP
  83 \fBcachefslog\fR(1M), \fBcachefsstat\fR(1M), \fBcfsadmin\fR(1M),
  84 \fBattributes\fR(5), \fBlargefile\fR(5)
  85 .SH DIAGNOSTICS
  86 .sp
  87 .ne 2
  88 .na
  89 \fB\fBproblems were encountered writing log file\fR\fR
  90 .ad
  91 .sp .6
  92 .RS 4n
  93 There were problems encountered when the kernel was writing the logfile.  The
  94 most common problem is running out of disk space.
  95 .RE
  96 
  97 .sp
  98 .ne 2
  99 .na
 100 \fB\fBinvalid log\fR \fBfile\fR\fR
 101 .ad
 102 .sp .6
 103 .RS 4n
 104 The logfile is not a valid logfile or was created with a newer version of
 105 Solaris than the one where \fBcachefswssize\fR is running.
 106 .RE
 107