cvs commit: src/sys/dev/md md.c

Colin Percival colin.percival at wadham.ox.ac.uk
Sun Feb 29 08:48:51 PST 2004


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




More information about the cvs-src mailing list