Date: Wed, 22 Mar 2006 12:27:34 +0100 (CET) From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-stable@FreeBSD.ORG Subject: Re: more weird bugs with mmap-ing via NFS Message-ID: <200603221127.k2MBRYJt068309@lurza.secnetix.de> In-Reply-To: <200603212107.48601.mi%2Bmx@aldan.algebra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Mikhail Teterin <mi+mx@aldan.algebra.com> wrote: > (no softupdates). It was created with `-O1 -b 65536 -f 8192' as it is intended > for large files and needs no ACLs (hence no UFS1). Those values are very suboptimal. Whe creating a file system for large files, you should rather decrease the inode density (-i option). Using "-i 262144" should work fine, or even "-i 1048576" (larger values don't make much sense, though). Increasing block size and fragment size like that is not a good idea. In fact, in earlier versions of FreeBSD there were bugs which could lead to file system corruption when 64k block size was used. I don't know if those bugs have been fixed -- maybe nobody knows, because nobody uses such large block sizes, so they aren't extensively tested. ;-) However, you could try setting block size and fragment size to the same value, effectively disabling fragmentation (you don't really need fragments when you have only large files). For example, "-b 8192 -f 8192" should be OK. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd Any opinions expressed in this message may be personal to the author and may not necessarily reflect the opinions of secnetix in any way. "I started using PostgreSQL around a month ago, and the feeling is similar to the switch from Linux to FreeBSD in '96 -- 'wow!'." -- Oddbjorn Steffensen
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200603221127.k2MBRYJt068309>