tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY [Time and Space?]
@ 2001-06-11 18:19 Edward D. Silver
  0 siblings, 0 replies; only message in thread
From: Edward D. Silver @ 2001-06-11 18:19 UTC (permalink / raw)
  To: tru64-unix-managers


Alan's answer is complete for my original questions about this message in
our logs:

Jun  8 10:16:28 a1 vmunix: /disk2: optimization changed from TIME to SPACE
Jun 10 21:32:12 a1 vmunix: /disk2: optimization changed from SPACE to TIME

Thanks to all who replied so fast!

---------- Forwarded message ----------
Date: Mon, 11 Jun 101 12:21:11 -0600
From: alan@nabeth.cxo.dec.com
To: Edward D. Silver <eds@avweb.com>
Subject: Re: Time and Space? 


	The UNIX File System, an implementation of the Berkeley
	Fast File System, offers two choices for how to optimize
	space allocations for small files.  Under very particular
	circumstances (that I've never quite completely figured
	out even looking at modern sources), it will switch from
	one to the other and back.  While you can pick one or the
	other when the file system is created or change it with
	tunefs(8), it will still switch as necessary.

	The two choices are "time" or "space".  When space for a
	small file or the end of a medium sized file is allocated
	(smaller than the file system block size) a fragment is
	allocated to the space.  You can either allocate a new
	file system block for the fragment on the assumption that
	the portion of the file will grow and the remainder of
	the block can be used for that growth.  This is time
	optimization since the fragments won't have to be copied
	around when the space is extended.

	The disadvantage of this choice is that fragments basically
	use up whole blocks.  The point of having fragments is that
	they can be combined into single blocks and not waste as
	much space.  Packing fragments into as few blocks as needed
	is space optimization.

	I'd suppose that the automatic switch-over is based on
	having to decide between "change the optimization" or
	not extend the file.  I'd guess that extending a file
	will always win.  When sufficient space is freed up,
	it can switch back.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-06-11 18:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-11 18:19 SUMMARY [Time and Space?] Edward D. Silver

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox