Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 15 Jan 1999 14:08:47 -0500 (EST)
From:      Joe Gleason <clash@tasam.com>
To:        freebsd-questions@FreeBSD.ORG
Subject:   Large block size for very large files
Message-ID:  <Pine.BSF.3.96.990115140139.7624A-100000@tasam.com>

next in thread | raw e-mail | index | archive | help
I have a backup drive (8gb) and I tar the rest of my system onto that
drive, so the only thing sitting on the backup drive is my 3-4gb tar file.

Would it be wise for me to increse my block size so that this filesystem
would have less overhead that I don't need?

After doing:
newfs -b 65536 -f 8192 /dev/wd2s1e
I got this df output:
/dev/wd2s1e   8139752        8  7488568     0%    /mnt/ccd0

After doing:
newfs /dev/wd2s1e
I got this df output:
/dev/wd2s1e   7959084        1  7322357     0%    /mnt/ccd0

The one with the 64k block size seems to have more space availble.
When I try to set the block size to be greater than 64k, newfs has issues:

Example:

Trying 128k block size:

root@sh1# newfs -b 131072 -f 16384 /dev/wd2s1e 
newfs: /dev/wd2s1e: not a character-special device
Warning: 416 sector(s) in last cylinder unallocated
/dev/wd2s1e:    16408160 sectors in 4006 cylinders of 1 tracks, 4096
sectors
        8011.8MB in 251 cyl groups (16 c/g, 32.00MB/g, 1024 i/g)
super-block backups (for fsck -b #) at:
 64, 0, 8208, 1612709888, 67174400, 81984, 8388608, 117506048, 268566528,
0,seek error: -2147483648
wtfs: Undefined error: 0

Trying 256k block size:

root@sh1# newfs -b 262144 -f 32768 /dev/wd2s1e
newfs: /dev/wd2s1e: not a character-special device
Warning: 448 sector(s) in last cylinder unallocated
/dev/wd2s1e:    16408128 sectors in 4006 cylinders of 1 tracks, 4096
sectors
        8011.8MB in 251 cyl groups (16 c/g, 32.00MB/g, 2048 i/g)
super-block backups (for fsck -b #) at:
Segmentation fault (core dumped)

Feel free to tell me I am completely insane and do not need a >64k block
size.

Joe Gleason
Tasam


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.990115140139.7624A-100000>