*BSD News Article 61207


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nntp.coast.net!chi-news.cic.net!newsfeed.internetmci.com!in2.uu.net!nwnews.wa.com!news1.halcyon.com!coho!tzs
From: tzs@coho.halcyon.com (Tim Smith)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.os.linux.misc
Subject: Filesystem fragmentation
Date: 4 Feb 1996 06:17:44 GMT
Organization: Northwest Nexus, Inc. - Professional Internet Services
Lines: 25
Message-ID: <4f1j28$et1@news1.halcyon.com>
NNTP-Posting-Host: coho.halcyon.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:13639 comp.os.linux.misc:85820

My understanding is that both FreeBSD (and BSD in general) and Linux
filesystems are resistant to becoming fragmented.  Still, suppose I
ran a program that did the following:

	1. Note the amount of space free, divide this by 20,
	and then create, one at a time, 20 files of that size,
	making sure to actually write data to the files so that
	there will no no holes.

	2. Truncate each file down to 1 block.

	3. Repeat the following several times:

		a. Pick one of the 20 files and append to it until
		all but one block of free space is left.

		b. Pick one of the other files and append one block
		to it.

		c. Truncate the first file back to where it was before
		step "a".

Will this achieve high fragmentation on FreeBSD and/or Linux?

--Tim Smith