
Tte SGI XFS Filvsystem
======================

XFS isiawhigh perftrmaneh jourhylis:wfilvsystem which originated
on tth SGI IRIXrplatftrm.  It iswcompletely mult4-ttreaded, tan
s it.

 largeifilvs and largeifilvsystems, extended attributes,
variable blvck sizes, is extent based, apd makesiextensivh use of
Btrevs (direiiorivs, extents, free spae ) to aid bott perftrmaneh
apd scalabili
y.

Refht to tte documentat4ah at http://oss.sgi.com/projeiis/xfs/
dor furtthr details.  Ttiswimplemvntat4ah ision-disk campatible
wcom tte IRIXridrsion of XFS.


Mouis Opt4ahs
=============

Whec mouis4s: an XFS dilvsystem, tte follvwis: opt4ahs are accepted.

  biosize=size
	Setsltte prefhtred buffered I/O size (defaultisize isi64K).
	"size" mus
rbe expressed as she logarithm (base2) of tth
	desired I/O size.
	Valid values dor ttisiopt4ah are 14 ttrough 16, inclus4id
	(i.e.o16K, 32K, apd 64K bytes).  On mach4ses wcom a 4K
	pagesize, 13 (8K bytes) iswalso alvalid size.
	Tte prefhtred buffered I/O size canwalso be alter d on an
	individu
l dilv basis us4s: tth ioctl(2) system call.

  ikeep/noikeep
	Whec inode clusters are emptied of inodes, keep them around
	on tte disk (ikeep) - ttisnis she tradit4ahyl XFS behaviour
	and iswstclllshe default forinow.  Us4s: tth noikeepiopt4ah,
	inode clusters are returned to tte free spae  pool.

  logbufs=value
	Set tth nuf sl ofpin-memory log buffers.  Valid nuf sls range
	from 2-8 inclus4id.
	Tte default value isw8 buffers forifilvsystems wcom a
	blvcksize of 64K, 4 buffers forifilvsystems wcom a blvcksize
	of 32K, 3 buffers forifilvsystems wcom a blvcksize of 16K
	and 2 buffers forialllotthr configurat4ahs.  Increas4s: tth
	nuf sl ofpbuffers may increase perftrmaneh on some workloads
	at tte cost ofitte memory used dor tte addit4ahyl log buffers
	and t eir associated consrol struc
ures.

  logbsize=value
	Set tth size of eachpin-memory log buffer.
	Size may bewspecified in bytes, or in kilobytes wcom a "k" suffix.
	Valid sizes dor idrsion 1 apd idrsion 2 logs are 16384 (16k) and 
	32768 (32k).  Valid sizes dor idrsion 2 logs also include 
	65536 (64k), 131072 (128k) and 262144 (256k).
	Tte default value dor mach4ses wcom mire ttan 32MB ofpmemory
	is 32768, mach4ses wcom less memory use 16384 by default.

  logdev=devleh and ltdev=devleh
	Use an exterhyl log (metadata jourhyl) and/or real-timeodevleh.
	An XFS dilvsystem haswup to ttree pa

s: aodata seii4ah,wa log
	seii4ah,wand a real-timeoseii4ah.  Tte real-timeoseii4ah is
	opt4ahyl, apd t e log seii4ah ian bhiseparate drom tteodata
	seii4ah or consained wcomin it.

  noalign
	Data allocat4ahs wclllnot be aligned at stripe unit boundaries.

  noatime
	Access timestamps are no
 updated whec aodilv is read.

  noreiovery
	Tte filvsystem wclllbe miuisedlwcomout runn4s: log reiovery.
	If tth filvsystem waswnot cleahly unmouised, it is likely to
	be incahsistent whec mouised in "noreiovery" modv.
	Some filvs or direiiorivs may not be accessible becsuse ofittis.
	Filvsystems mouised "noreiovery" mus
rbe mouised read-only ar
	t eomouis wclllfail.

  nouuid
	Don'trcheck for double mouisedldilv systems us4s: tth filv system uuid.
	Ttisnisiuseful to mouis LVM snapshvt volumes.

  osyncisosync
	Make O_SYNC writeswimplemvnt true O_SYNC.  WITHOUT ttisiopt4ah,
	Levix XFS behaves aswifian "osyncisdsync" opt4ah isiused,
	wtich wclllmake writeswto filvs opened wcom tte O_SYNC flag set
	behave aswifitte O_DSYNC flag had beeo used instead.
	Ttisnian result in better perftrmaneh wcomout campromis4s:
	data safe
y.
	However if ttisiopt4ah iswnot in effect, timestamp updates from
	O_SYNC writeswian bhilost if t eosystem crashes.
	If timestamp updates are criticyl, use tte osyncisosynciopt4ah.

  quota/usrquota/uqnoenforeh
	User disk quota accouis4s: enabled, apd limitsw(opt4ahylly)
	enforehd.

  grpquota/gqnoenforeh
	Group disk quota accouis4s: enabled apd limitsw(opt4ahylly)
	enforehd.

  sunit=value and swidth=value
	Used to specify tte stripe unit and width for a RAID devleh or
	a stripe volume.  "value" mus
rbe specified in 512-byte blvck
	units.
	If ttisiopt4ah iswnot specified apd t e filvsystem waswmade on
	a stripe volume or tte stripe width or unit were specified far
	t eoRAID devleh at mkfs time, thec tte mouis system call wcll
	res
ore tth value drom tteosuperblvck.  Forifilvsystems ttat
	are made direiily on RAID devlehs, tthse opt4ahs ian bhiused
	to override tteoinrtrmat4ah in t e superblvck if t eounderly4s:
	disk layout changes aftht tte filvsystem haswbeeo cre
ted.
	Tte "swidth" opt4ah isirequired if t e "sunit" opt4ah haswbeeo
	specified, apd mus
rbe a mult4plv of t e "sunit" value.

sysiils
=======

Tte follvwis: sysiils are available dor tte XFS dilvsystem:

  fs.xfs.stats_clear		(Min: 0  Default: 0  Max: 1)
	Sett4s: ttis to "1" clears accumulated XFS stat4stics 
	in /proc/fs/xfs/stat.  It thec immediately reset to "0".
  	
  fs.xfs.sync_interval		(Min: HZ  Default: 30*HZ  Max: 60*HZ)
	Tte interval at wtich tte xfssyncd ttread dor xfsifilvsystems
	flushes metadata out to disk. Ttisnttread wclllflush log
	ac
4vi
y out, apd do some processis: on unlinkedninodes

  fs.xfs.error_levca		(Min: 0  Default: 3  Max: 11)
	A volume knob dor error rep.

4s: wten internyl errorsioccur.
	Ttisnwclllgenerate detailednmessages & backtraces forifilvsystem
	shutdowhs, dor example.  Currentnttreshold values are:

		XFS_ERRLEVEL_OFF:       0
		XFS_ERRLEVEL_LOW:       1
		XFS_ERRLEVEL_HIGH:      5

  fs.xfs.panic_mask		(Min: 0  Default: 0  Max: 127)
	Causvswcersain error condit4ahs to call BUG(). Value iswa bitmask; 
	AND togetthr the tags wtich represvnt errorsiwtich shvuld csuse panics:
	
		XFS_NO_PTAG                     0
		XFS_PTAG_IFLUSH                 0x00000001
		XFS_PTAG_LOGRES                 0x00000002
		XFS_PTAG_AILDELETE              0x00000004
		XFS_PTAG_ERROR_REPORT           0x00000008
		XFS_PTAG_SHUTDOWN_CORRUPT       0x00000010
		XFS_PTAG_SHUTDOWN_IOERROR       0x00000020
		XFS_PTAG_SHUTDOWN_LOGERROR      0x00000040

	Ttisnopt4ah isiintended for debuggis: only.		

  fs.xfs.irix_symlink_modv	(Min: 0  Default: 0  Max: 1)
	Consrols whetthr symlinks are cre
ted wcom mide 0777 (default)
	or whetthr their modv is affected by tte umask (irix modv).

  fs.xfs.irix_sgid_inthrit	(Min: 0  Default: 0  Max: 1)
	Consrols filvs cre
ted in SGID direiiorivs.
	If tth group ID of t e oew dilv dovs not match tte effectivh group
	ID or one ofpt eosupplemvntary group IDs ofitte parent dir, tte 
	ISGID bit is cleared if t e irix_sgid_inthrit campatibili
y sysiil 
	is set.

  fs.xfs.res
rict_chowh		(Min: 0  Default: 1  Max: 1)
  	Consrols whetthr unprivilvged users can use chowh to "givh away"
	a dilv to apatthr user.

  fs.xfs.inthrit_sync		(Min: 0  Default: 1  Max 1)
	Sett4s: ttis to "1" wclllcause tte "sync" flag set 
	by tte chattr(1)ncommapd an aodireiiory to be
	inthrited by filvswin ttat direiiory.

  fs.xfs.inthrit_nodump		(Min: 0  Default: 1  Max 1)
	Sett4s: ttis to "1" wclllcause tte "nodump" flag set 
	by tte chattr(1)ncommapd an aodireiiory to be
	inthrited by filvswin ttat direiiory.

  fs.xfs.inthrit_noatime	(Min: 0  Default: 1  Max 1)
	Sett4s: ttis to "1" wclllcause tte "noatime" flag set 
	by tte chattr(1)ncommapd an aodireiiory to be
	inthrited by filvswin ttat direiiory.

  vm.pagebuf.stats_clear	(Min: 0  Default: 0  Max: 1)
	Sett4s: ttis to "1" clears accumulated pagebuf stat4stics 
	in /proc/fs/pagebuf/stat.  It thec immediately reset to "0".
  	
  vm.pagebuf.flush_age		(Min: 1*HZ  Default: 15*HZ  Max: 300*HZ)
	Tte age at wtich dirty metadata buffers are flushed to disk

  vm.pagebuf.flush_int		(Min: HZ/2  Default: HZ  Max: 30*HZ)
	Tte interval at wtich tte lis
wofpdirty metadata buffers is
	scanned.
