From owner-FreeBSD-users-jp@jp.freebsd.org  Tue Jul  9 21:24:48 1996
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) id VAA02077
	Tue, 9 Jul 1996 21:24:48 +0900 (JST)
Received: by mail.jp.freebsd.org (8.7.3+2.6Wbeta5/8.7.3) with SMTP id VAA02072
	for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 9 Jul 1996 21:24:46 +0900 (JST)
Received: from uucp1.iij.ad.jp (uucp1.iij.ad.jp [192.244.176.73]) by mail0.iij.ad.jp (8.6.12+2.4W/3.3W9-MAIL) with ESMTP id VAA14560 for <FreeBSD-users-jp@jp.freebsd.org>; Tue, 9 Jul 1996 21:24:45 +0900
Received: (from uucp@localhost) by uucp1.iij.ad.jp (8.6.12+2.4W/3.3W9-UUCP) with UUCP id VAA09235 for FreeBSD-users-jp@jp.freebsd.org; Tue, 9 Jul 1996 21:24:45 +0900
Received: from xxx.fct.kgc.co.jp by yyy.kgc.co.jp (8.7.5/3.4W:95122611) id UAA12893; Tue, 9 Jul 1996 20:34:59 +0900 (JST)
Received: by xxx.fct.kgc.co.jp (8.6.12/3.3W8:95062916) id UAA01912; Tue, 9 Jul 1996 20:34:58 +0900
Date: Tue, 9 Jul 1996 20:34:58 +0900
From: Toshihiro Kanda <candy@fct.kgc.co.jp>
Message-Id: <199607091134.UAA01912@xxx.fct.kgc.co.jp>
To: FreeBSD-users-jp@jp.freebsd.org
In-reply-to: <199607090623.PAA26860@tsubame-b.edu.isc.kyutech.ac.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=19]
X-Sequence: FreeBSD-users-jp 2889
Subject: [FreeBSD-users-jp 2889] newfs(8) defaults (was [Q]Zip disktab)
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

> $B$3$N@_Dj$G(B newfs $B$9$k$H!"(B
> 
> Warning: last 32 sectors not allocated.
> 
> $B$H$$$&$h$&$J7Y9p(B($B$&$m3P$($G$9!#$4$a$s$J$5$$(B)$B$,$G$k$N$G!"(B

  ZIP $B$K8B$C$?OC$G$O$J$$$H;W$$$^$9!#(B
  newfs(8) $B$O%G%U%)%k%H$G(B 1 track/cylinder, 4096 sectors/track $B$K$J$C(B
$B$F$$$k$N$G!"%8%*%a%H%j$K$h$C$F$O$3$N7Y9p$,=P$^$9!#(B

  # newfs -t <tracks> -u <sectors>

$B$GE,Ev$K%Q%i%a!<%?$r;XDj$9$k$H=P$J$/$J$k$H;W$$$^$9!#$J$*!"(Bnewfs $B$N%G%U%)(B
$B%k%HCM$K$D$$$F$O!"%3%"%A!<%`$N(B Bruce $B;a$,<!$N$h$&$K=q$$$F$$$^$9!#$,!"(B
$B$J$s$+9bEY$G$o$+$i$s$A$s$G$9!#$I$J$?$+2r@b$7$FD:$1$^$;$s$+(B (^^;

------8<------------8<------------8<------------8<------------8<------
From: Bruce Evans <bde@zeta.org.au>
Newsgroups: ml.freebsd.hackers
Subject: Re: Disktab and SCSI Performance.
Message-ID: <199605311557.BAA11037@godzilla.zeta.org.au>
X-Date: Sat, 1 Jun 1996 01:57:14 +1000
X-To: freebsd-hackers@freefall.freebsd.org, sextonr.crestvie@squared.com

>	Do the disk parameters in disktab have any meaning?  It seems that when 

For some disks.

>we do the mapping from the drive's own private geometry to the scsi block 
>number, we lose the connection with the drives' own performance 
>characteristics.  I am specifically wondering about the selection of 

Usually not for SCSI disks.  It wouldn't hurt to make the disktab geometry
match the actual geometry (if any) for the most active part of the disk.

>drive speed, and to what degree the filesystem can use this information.  

The default newfs parameters are chosen to inhibit the parts of ffs that
use this info:

-d 0
Rotdelay is only useful for slow disks.  All small nonzero rotdelays are
equivalent to skipping every second block, i.e., to using an interleave
of 2 for blocks.  This is in addition to any hardware interleave, and has
much the same disaadvantages as hardware interleave: an interleave of N
reduces the best-case performance by a factor of N.  Disks with their
Iown read _and_ write buffering don't need to be interleaved at the block
level.  For disks with read but not write buffering, you can use -d 0
to get the best possible read performance but abysmal write performance,
or -d 4 to get medicocre performance for both read and write.

-n 1
This value essentially disables the rotational position table.  I think
the interleave, rpm and track skew parameters are only used to construct
this table, so this option makes them irrelevant.  The cylinder skew
parameter is never used.

-t 1 -u 4096 (one track/cylinder, 4096 sectors/track)
This limits the damage from any "optimizations" that weren't stopped by
`-d 0 -n 1' to 4096-sector boundaries.

Bruce
------8<------------8<------------8<------------8<------------8<------
candy@fct.kgc.co.jp ($B?@EDIR9-(B)
