Date: Sat, 2 Jun 2012 18:28:35 +0200 (CEST) From: Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl> To: Warren Block <wblock@wonkity.com> Cc: Victor Sudakov <vas@mpeks.tomsk.su>, freebsd-questions@freebsd.org Subject: Re: 9.0 on SSD Message-ID: <alpine.BSF.2.00.1206021821430.18206@wojtek.tensor.gdynia.pl> In-Reply-To: <alpine.BSF.2.00.1206020739060.95644@wonkity.com> References: <20120531025206.GA11699@admin.sibptus.tomsk.ru> <alpine.BSF.2.00.1205310652350.81499@wonkity.com> <20120531170035.GA29456@admin.sibptus.tomsk.ru> <alpine.BSF.2.00.1205311847570.85245@wonkity.com> <20120602052537.GA42456@admin.sibptus.tomsk.ru> <alpine.BSF.2.00.1206020739060.95644@wonkity.com>
next in thread | previous in thread | raw e-mail | index | archive | help
>> filesystem which resides on the SSD. Is it good, bad or irrelevant for >> the SSD ? > > Mostly irrelevant, I think. I've been using just ordinary soft updates as > there is bug fixing going on with SU+J. fsck on the SSD is very fast anyway, > so SU+J is needed less. And there's a little less writing because there is > no journal. But then, I've left atime on, too. > _______________________________________________ i have FreeBSD 9 and SSD (OCZ Agility 3 "60GB") DO NOT use any kind of journalling - this increase writes and wear, while fsck takes <10 seconds for me. do use -t option for newfs. make sure your FS partition is aligned to 4 kilobytes. All these web advices about aligning to 1MB is classic pure nonsense (most often used NTFS aligns to 4kB anyway). run without swap or make pseudo-dynamic swap with mdconfig ;) My config: 1) no MSDOS partitions (slices). not needed no matter if it is SSD or not. unless you run windoze too. 2) single partition for FreeBSD, SSD are not huge and wasting space for partitions isn't smart. example: # /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 3) newfs -m 0 -i 16384 -b 8192 -f 1024 -U -t /dev/ada0a or similar settings. maybe you can run with less inodes (in my case i've got 3.6M inodes). for rare case swapping i do in /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/rm -f /swapfile.tmp /sbin/swapctl -a /dev/md0 and in /etc/rc.shutdown.local #!/bin/sh echo removing swapfile /sbin/swapctl -d /dev/md0 /sbin/mdconfig -d -u 0 this will allocate 8GB file with holes, space would be allocated when actually needed, and deallocated on shutdown.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.00.1206021821430.18206>