SUMMARY: 1k FS Block size

From: Gines Bravo Garcia <gines_at_eui.upm.es>
Date: Wed, 3 Jul 1996 13:02:26 +0000 (GMT)

Hi all,

  thankyou all for your fast responses, in special to:

    Hellebo Knut <Knut.Hellebo_at_nho.hydro.com>
    "Alan Rollow - Dr. File System's Home for Wayward Inodes."
         <alan_at_nabeth.cxo.dec.com>
    "Dr. Tom Blinn, 603-881-0646" <tpb_at_zk3.dec.com>
    Anthony D'Atri <aad_at_nwnet.net>

------8<- My original question ---------------------8<----------------------

   We have an 4GB disk that will hold the Usenet News, and it will go in
   an 2000/300 with DU 3.0.

   I have read that, by the nature of news (many little files), it is
   suggested that the file system is 1K block size.

   Well, the man pages says that I have to issue the '-b' option along with
   the blok size in bytes, but I don't know how I have to say the size-number,
   I have tried almost all of the cases:

        newfs -b 1024B /dev/rz3a
        [ ... stuff ... ]

   and got always:

        newfs: ____ bad block size

   [ ... stuff ... ]
------8<--- End of Original Question -------8<-----------------------------

The ANSWER comes from Alan Rollow ( & Tom Blinn) that says:

> UFS uses two allocation sizes; the block size and the fragment size.
> Fragments are smaller than blocks and used by small files, rather
> than using a whole block. Typically a block can be have to up 8
> fragments. The default on Digital UNIX are an 8 KB block size
> and 1 KB fragment size. You can't change the block size and for
> News the 1 KB fragment size is adequate.

        So, for my news file system I'll issue:

                newfs -i 1024 /dev/rz3a

Saludos,
Ginés Bravo http://www.eui.upm.es/~gines
Responsable Centro de Cálculo e-mail: gines_at_eui.upm.es
E.U. Informática (UPM) ph. +34 1 3367901
España / Spain fax +34 1 3311767

-----8<---- Original Responses --8<--------------8<----------------------

From: Hellebo Knut <Knut.Hellebo_at_nho.hydro.com>

Regards,

8K is the least possible blocksize for UFS filesystems. Files, however, can
occupy less than 8K in contrary to AdvFS that always uses multiples of 8K.

-----8<---- Original Responses --8<--------------8<----------------------

From: "Alan Rollow - Dr. File System's Home for Wayward Inodes."
     <alan_at_nabeth.cxo.dec.com>

UFS uses two allocation sizes; the block size and the fragment size.
Fragments are smaller than blocks and used by small files, rather
than using a whole block. Typically a block can be have to up 8
fragments. The default on Digital UNIX are an 8 KB block size
and 1 KB fragment size. You can't change the block size and for
News the 1 KB fragment size is adequate.

-----8<---- Original Responses --8<--------------8<----------------------

From: "Dr. Tom Blinn, 603-881-0646" <tpb_at_zk3.dec.com>

Barring what the reference page may say, on a UFS file system, the actual
size of the "chunks" of space allocated to files is 1KB, just what you are
looking for. You don't have to do anything special to get this.

You can't change it, as far as I know, and have things work correctly.

On an AdvFS file system, the "chunk" size is 8KB and you can't change it.

Hope this is the information you need.

Tom

-----8<---- Original Responses --8<--------------8<----------------------
 
From: Anthony D'Atri <aad_at_nwnet.net>

> I have read that, by the nature of news (many little files), it is
> suggested that the file system is 1K block size.

The average news article, modulo your subscriptions, is about 3.5k, so
you'd want 4k blocks and 512b frags.
Received on Wed Jul 03 1996 - 13:46:45 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:46 NZDT