Date: Mon, 9 Jul 2012 12:31:08 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Warren Block <wblock@wonkity.com> Cc: freebsd-questions@freebsd.org, Graham Bentley <admin@cpcnw.co.uk> Subject: Re: YASSDQ Message-ID: <alpine.BSF.2.00.1207091228280.41445@wojtek.tensor.gdynia.pl> In-Reply-To: <alpine.BSF.2.00.1207082058120.51462@wonkity.com> References: <20120708120028.99568106568F@hub.freebsd.org> <1211EED02D7F4079B279A9D413857ECF@admin> <alpine.BSF.2.00.1207082058120.51462@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > Notes: > > 1. SSDs don't necessarily use 4k blocks, some use larger ones. Starting the All use 4K as it is NTFS default block size and most are sold to be used with windoze. > first filesystem partition at 1M works for most of the common values. Alignment of filesystem cannot be better than it's block size. > 3. Swap is tricky with small drives, even trickier if you want to use TRIM. > Swap files can be used, and then you get TRIM, but see > http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/168544 for a way to dismount > that swap file before shutdown and an annoying panic. my solution: # cat /etc/rc.local #!/bin/sh echo creating swapfile /bin/rm -f /swapfile.tmp dd if=/dev/zero of=/swapfile.tmp bs=8m seek=1k count=0 /sbin/mdconfig -a -t vnode -u 0 -f /swapfile.tmp || /bin/sh /bin/chflags nodump /swapfile.tmp /bin/rm -f /swapfile.tmp /sbin/swapctl -a /dev/md0 # cat /etc/rc.shutdown.local #!/bin/sh echo removing swapfile /sbin/swapctl -d /dev/md0 /sbin/mdconfig -d -u 0 my partitioning: # disklabel ada0 # /dev/ada0: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 117231408 0 4.2BSD 0 0 0 c: 117231408 0 unused 0 0 # "raw" part, don't edit 99% of the time swap is not needed so doesn't take space.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1207091228280.41445>