Re: (S)ATA performance in FBSD 6.2/7.0



Quoting Alan Amesbury <amesbury@xxxxxxx> (Fri, 02 Mar 2007 17:56:04 -0600):

Looking at /usr/include/sys/mount.h, I see that there are two flags
defined: MNT_SYNCHRONOUS and MNT_ASYNC. I'm not sure why both flags
exist, but suspect the former was added so you could mount UFS/FFS/UFS2
filesystems that had soft updates enabled in synchronous mode without
having to umount the filesystem, use tunefs(8)'s "-n" flag to
enable/disable soft updates, then remount the filesystem with the
appropriate flag(s).

In FreeBSD we have 3 types, not 2. We have "sync", "noasync" (default)
and "async".

With noasync the meta-data is written in sync mode and the data is
written in async mode.

For async the complete IO is done asynchronous (the meta-data too).

And for sync the complete IO is synchronous.

mount(8) tells this with some more words.

Bye,
Alexander.

--
As a math atheist, I should be excused from this.
-- Calvin
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
_______________________________________________
freebsd-performance@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-performance
To unsubscribe, send any mail to "freebsd-performance-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • [Full-Disclosure] FreeBSD Security Advisory FreeBSD-SA-04:01.mksnap_ffs
    ... For general information regarding FreeBSD Security Advisories, ... Mounted filesystems can have a variety of flags set on them. ... The mksnap_ffscommand creates a `snapshot' of a filesystem. ...
    (Full-Disclosure)
  • FreeBSD Security Advisory FreeBSD-SA-04:01.mksnap_ffs
    ... For general information regarding FreeBSD Security Advisories, ... Mounted filesystems can have a variety of flags set on them. ... The mksnap_ffscommand creates a `snapshot' of a filesystem. ...
    (FreeBSD-Security)
  • [FreeBSD-Announce] FreeBSD Security Advisory FreeBSD-SA-04:01.mksnap_ffs
    ... For general information regarding FreeBSD Security Advisories, ... Mounted filesystems can have a variety of flags set on them. ... The mksnap_ffscommand creates a `snapshot' of a filesystem. ...
    (freebsd-announce)
  • Re: Soft Updates Help
    ... I have read up on soft updates and have some questions. ... the way a journalling filesystem does. ... or it's rolled back, either way, the data is guaranteed not to be corrupt. ... Also, on heavily used filesystems, softupdates can lead to the filesystem ...
    (freebsd-questions)
  • Re: Softupdates: df, du, sync and fsck [quite long]
    ... > I've a couple of questions about soft updates. ... > As you can see the file system is unable to sync. ... You can work around this by calling fsck with the filesystem to check. ... These aren't IBM ATA drives are they? ...
    (freebsd-questions)