Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Feb 2004 16:48:40 +0000
From:      Colin Percival <colin.percival@wadham.ox.ac.uk>
To:        Colin Percival <cperciva@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/dev/md md.c
Message-ID:  <6.0.1.1.1.20040229164027.040109e8@imap.sfu.ca>
In-Reply-To: <200402291558.i1TFwsGw035149@repoman.freebsd.org>
References:  <200402291558.i1TFwsGw035149@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
At 15:58 29/02/2004, Colin Percival wrote:
>   Modified files:
>     sys/dev/md           md.c
>   Log:
>   Use DEV_BSIZE byte sectors instead of PAGE_SIZE byte sectors for
>   swap-backed memory disks.  This reduces filesystem allocation overhead
>   and makes swap-backed memory disks compatible with broken code (dd,
>   for example) which expects to see 512 byte sectors.  The size of a
>   swap-backed memory disk must still be a multiple of the page size.

   I should probably add here that anyone who regularly uses filesystems
on swap-backed memory disks might like to revisit them and examine the
sizes and inode densities they're using.  Existing filesystem images
will work fine, since ufs keeps track of the sector size it is using,
but creating a new filesystem and dumping everything across will save
space (and thus memory and time).

Colin Percival




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.0.1.1.1.20040229164027.040109e8>