Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* RZ28 - Partitioning for UFS filesystem?
@ 1997-02-06  5:00 john hall
  1997-02-06  5:00 ` David Herdman
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: john hall @ 1997-02-06  5:00 UTC (permalink / raw)



The disktab entry for the RZ28 family states that the quoted parameters 
are "approximate" as the number of tracks per cylinder depends on the 
position on the disk.

When creating ufs file systems with newfs, if the partition size doesn't 
start or end on a multiple of the apparently "artificial" "sectors per 
cylinder" value, then a message like "xx MB in last cylinder unallocated" 
is often seen. This presumably because newfs feels constrained to build 
filesystems starting/ending on its idea of a cylinder boundary. (I recall 
a Sun system that refused to even consider creating a filesystem unless 
the partition started on an even cylinder boundary.)

The question(s): does the physical geometry of an RZ28 have any bearing 
on how (ufs) filesystems can or should be built on it, beyond the obvious 
like maximum size. Is newfs slavishly following unnecessary logic in 
shunning parts of a partition on an RZ28, when disktab suggests that 
dividing "number of sectors" by the quoted "sectors per cylinder" doesn't 
actually reveal anything about the location of sectors on the disk wrt 
physical cylinder boundaries? What's going on, if anything?

Yours in ignorance.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RZ28 - Partitioning for UFS filesystem?
  1997-02-06  5:00 RZ28 - Partitioning for UFS filesystem? john hall
@ 1997-02-06  5:00 ` David Herdman
  1997-02-07  5:00 ` Eric Werme
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: David Herdman @ 1997-02-06  5:00 UTC (permalink / raw)



In article <32F9A1FB.1858@netcomuk.co.uk>
           jhall@netcomuk.co.uk "john hall" writes:

> The question(s): does the physical geometry of an RZ28 have any bearing 
> on how (ufs) filesystems can or should be built on it

You probably already know this .... but
The RZ28 and above use zoned recording. This is to increase the 
capacity of the disk. For example say the surface can safely record
a sector in 1 unit length of track. On the innermost track this gives
n sectors. The outermost track ( much longer) may be able to hold 2n
sectors at the same density. If all tracks were limited to having
the same number of sectors a large amount of disk space would be 
wasted. AFAIK the on board disk controllers can't report this subtlty
of the disk geometry. Therefore newfs ( which in an interface to mkfs)
can't know about this. Also the algorithms used predate the widespread
use of zoned disks.

The new wisdom is that alligning on cylinder boundries is no longer
necessary ( which is just as well because there is no easy way of 
doing it :-) )



-- 
+------------------------------------------------------------------+
| Dave Herdman    Open Systems Interconnection Ltd                 |
| dherdman@osil.demon.co.uk Tel (44)1494 765716 Fax (44)1494 764062| 
+------------------------------------------------------------------+




^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RZ28 - Partitioning for UFS filesystem?
  1997-02-06  5:00 RZ28 - Partitioning for UFS filesystem? john hall
  1997-02-06  5:00 ` David Herdman
@ 1997-02-07  5:00 ` Eric Werme
  1997-02-07  5:00   ` Mark Sirota
  1997-02-12  5:00   ` Mark Sirota
  1997-02-10  5:00 ` John Kohl
  1997-02-11  5:00 ` Matthew Tovey
  3 siblings, 2 replies; 7+ messages in thread
From: Eric Werme @ 1997-02-07  5:00 UTC (permalink / raw)



john hall <jhall@netcomuk.co.uk> writes:

>The disktab entry for the RZ28 family states that the quoted parameters 
>are "approximate" as the number of tracks per cylinder depends on the 
>position on the disk.

As are pretty much all current disks.  SCSI hides the cyl/track/sector
information pretty well (too well for some purposes!).

>When creating ufs file systems with newfs, if the partition size doesn't 
>start or end on a multiple of the apparently "artificial" "sectors per 
>cylinder" value, then a message like "xx MB in last cylinder unallocated" 
>is often seen. This presumably because newfs feels constrained to build 
>filesystems starting/ending on its idea of a cylinder boundary.

One could probably make a partial cylinder group and mark the nonexistant
blocks as in use, but then you'd have to modify fsck to not think of them
as lost.  Basically, there hasn't been enough push to do something
about it, and there are many, mnay more important things we'd rather
work on.

>The question(s): does the physical geometry of an RZ28 have any bearing 
>on how (ufs) filesystems can or should be built on it

The biggest impact is actually performance.  Data rates are highest on the
outside cylinders and seeks are lowest.  There was a paper at the recent
USENIX looking into the impact.  Transfer rate ratios can be 2 between the
limits.

>beyond the obvious 
>like maximum size. Is newfs slavishly following unnecessary logic in 
>shunning parts of a partition on an RZ28, when disktab suggests that 
>dividing "number of sectors" by the quoted "sectors per cylinder" doesn't 
>actually reveal anything about the location of sectors on the disk wrt 
>physical cylinder boundaries?

newfs is because ufs needs that.  You could change ufs to get away from
its cylinder knowledge, but that would make upgrading to the next
release a little "difficult".
-- 
  <>    Eric (Ric) Werme   <>      This space under reconstruction       <>
  <>  <werme@zk3.dec.com>  <>                                            <>



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RZ28 - Partitioning for UFS filesystem?
  1997-02-07  5:00 ` Eric Werme
@ 1997-02-07  5:00   ` Mark Sirota
  1997-02-12  5:00   ` Mark Sirota
  1 sibling, 0 replies; 7+ messages in thread
From: Mark Sirota @ 1997-02-07  5:00 UTC (permalink / raw)
  To: werme; +Cc: mrl


Eric Werme wrote:
>> The question(s): does the physical geometry of an RZ28 have any
>> bearing on how (ufs) filesystems can or should be built on it
> 
> The biggest impact is actually performance.  Data rates are highest on
> the outside cylinders and seeks are lowest.  There was a paper at the
> recent USENIX looking into the impact.  Transfer rate ratios can be 2
> between the limits.

Which USENIX?  What paper?  I'd love to find a copy of this.  Thanks.

> newfs is because ufs needs that.  You could change ufs to get away
> from its cylinder knowledge, but that would make upgrading to the next
> release a little "difficult".

But on SCSI disks, is UFS's "cylinder knowledge" false?  Since SCSI
hides the physical parameters of the disk, can UFS actually do anything
with cylinder boundaries?

I've been in this world too long -- I always lay my partitions out on
cylinder boundaries, because way back when, you had to.  Do I no longer
need to worry about this?  How about for other filesystem types, like
ADVFS?

Thanks in advance.
-- 
Mark Sirota, Network Systems Engineer
University of Pennsylvania, Information Systems and Computing
msirota@isc.upenn.edu, 215/573-7214



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RZ28 - Partitioning for UFS filesystem?
  1997-02-06  5:00 RZ28 - Partitioning for UFS filesystem? john hall
  1997-02-06  5:00 ` David Herdman
  1997-02-07  5:00 ` Eric Werme
@ 1997-02-10  5:00 ` John Kohl
  1997-02-11  5:00 ` Matthew Tovey
  3 siblings, 0 replies; 7+ messages in thread
From: John Kohl @ 1997-02-10  5:00 UTC (permalink / raw)



Mark Sirota <msirota@isc.upenn.edu> writes:


> Which USENIX?  What paper?  I'd love to find a copy of this.  Thanks.

See the abstract at

http://www.usenix.org/publications/library/proceedings/ana97/vanmeter.html

from the 1997 USENIX, Anaheim, CA.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RZ28 - Partitioning for UFS filesystem?
  1997-02-06  5:00 RZ28 - Partitioning for UFS filesystem? john hall
                   ` (2 preceding siblings ...)
  1997-02-10  5:00 ` John Kohl
@ 1997-02-11  5:00 ` Matthew Tovey
  3 siblings, 0 replies; 7+ messages in thread
From: Matthew Tovey @ 1997-02-11  5:00 UTC (permalink / raw)
  To: john hall


john hall wrote:
> 
> When creating ufs file systems with newfs, if the partition size doesn't
> start or end on a multiple of the apparently "artificial" "sectors per
> cylinder" value, then a message like "xx MB in last cylinder unallocated"
> is often seen. This presumably because newfs feels constrained to build
> filesystems starting/ending on its idea of a cylinder boundary. (I recall
> a Sun system that refused to even consider creating a filesystem unless
> the partition started on an even cylinder boundary.)

Not true, at least according to DEC. The message is somewhat misleading,
but it is NOT saying that the blocks beyond the last cylinder boundary
have been ignored. 
It is saying that beyond the number of blocks you have allocated to a
partition, the REMAINING blocks in that cylinder are unallocated.

Cheers,

Matt
-- 
Matt Tovey 				http://wwwcn.cern.ch/~mtovey

Diplomacy is the art of saying 'Nice doggie!'... till you can find a
rock.



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: RZ28 - Partitioning for UFS filesystem?
  1997-02-07  5:00 ` Eric Werme
  1997-02-07  5:00   ` Mark Sirota
@ 1997-02-12  5:00   ` Mark Sirota
  1 sibling, 0 replies; 7+ messages in thread
From: Mark Sirota @ 1997-02-12  5:00 UTC (permalink / raw)
  To: werme


Eric Werme wrote:
> You could change ufs to get away from its cylinder knowledge, ...

Okay, I've been doing a bit more thinking about this.  The zoned
recording thing on modern disks affects sectors/track, but not
the number of cylinders.  It seems to me that it still makes sense to
align partitions on cylinder boundaries to maximize disk space; there
seems to be no downside.

However, I am not convinced that the number of cylinders that disklabel
presents is actually right.  It appears to match what's in disktab, but
I don't believe what's there.  It's clear that a bunch of other
information is wrong too, like the rpm of 3600 for every RZ28 I've got,
whether they are RZ28M's (advertised as 5400rpm) or RZ28D's (advertised
as 7200rpm).

Now I don't care about rpm, particularly for advfs, but it highlights
that disklabel is presenting false information.  Furthermore, I have
some RZ28D's on Suns which show 2985 cylinders, while those on my
Digital machines show 2595 cylinders.  Which is right?

I also have an RZ28M on a 2100 which shows 3045 cylinders.  That one
also says "flags: dynamic_geometry".  What does that mean?  The other
geometry information is different too, though cylinders is the only
one I care about.

Please advise me!  Should I care about number of cylinders?  Where can
I get the *correct* information, and how can I persuade disklabel to
use it?  Thanks in advance.
-- 
Mark Sirota, Network Systems Engineer
University of Pennsylvania, Information Systems and Computing
msirota@isc.upenn.edu, 215/573-7214



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1997-02-12  5:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-02-06  5:00 RZ28 - Partitioning for UFS filesystem? john hall
1997-02-06  5:00 ` David Herdman
1997-02-07  5:00 ` Eric Werme
1997-02-07  5:00   ` Mark Sirota
1997-02-12  5:00   ` Mark Sirota
1997-02-10  5:00 ` John Kohl
1997-02-11  5:00 ` Matthew Tovey

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