atom feed49 messages in org.freebsd.freebsd-currentRe: make install trick
FromSent OnAttachments
Warner LoshOct 5, 1999 1:41 pm 
Ollivier RobertOct 5, 1999 2:04 pm 
David SchwartzOct 5, 1999 2:31 pm 
Warner LoshOct 5, 1999 2:42 pm 
Peter JeremyOct 5, 1999 3:49 pm 
Nate WilliamsOct 5, 1999 4:01 pm 
David SchwartzOct 5, 1999 4:10 pm 
Warner LoshOct 5, 1999 4:33 pm 
Alfred PerlsteinOct 5, 1999 4:55 pm 
Peter JeremyOct 5, 1999 5:18 pm 
Peter JeremyOct 5, 1999 5:38 pm 
Alfred PerlsteinOct 5, 1999 6:33 pm 
Kevin StreetOct 5, 1999 8:28 pm 
Ollivier RobertOct 5, 1999 9:48 pm 
Peter JeremyOct 5, 1999 9:57 pm 
Brian SomersOct 5, 1999 11:02 pm 
Brian SomersOct 5, 1999 11:13 pm 
Brian SomersOct 5, 1999 11:16 pm 
Brad KnowlesOct 6, 1999 3:22 am 
Garrett WollmanOct 6, 1999 7:51 am 
Brad KnowlesOct 6, 1999 7:56 am 
Brad KnowlesOct 6, 1999 10:25 am 
Matthew D. FullerOct 6, 1999 1:43 pm 
Kevin DayOct 6, 1999 2:17 pm 
Matthew DillonOct 6, 1999 2:48 pm 
Peter JeremyOct 6, 1999 2:51 pm 
Matthew D. FullerOct 6, 1999 2:56 pm 
Peter JeremyOct 6, 1999 3:12 pm 
Ben RosengartOct 6, 1999 3:53 pm 
Peter JeremyOct 6, 1999 3:58 pm 
Matthew D. FullerOct 6, 1999 4:15 pm 
Bruce EvansOct 6, 1999 5:31 pm 
Matthew DillonOct 6, 1999 6:19 pm 
Peter JeremyOct 6, 1999 6:57 pm 
Matthew D. FullerOct 6, 1999 11:57 pm 
Matthew ThyerOct 7, 1999 5:53 am 
David O'BrienOct 7, 1999 3:10 pm 
David O'BrienOct 7, 1999 3:12 pm 
David SchwartzOct 7, 1999 3:14 pm 
David O'BrienOct 7, 1999 3:21 pm 
Peter JeremyOct 7, 1999 4:43 pm 
Brad KnowlesOct 8, 1999 4:42 am 
David O'BrienOct 8, 1999 9:26 am 
David O'BrienOct 8, 1999 9:34 am 
David SchwartzOct 8, 1999 10:19 am 
David O'BrienOct 8, 1999 10:52 am 
Matthew DillonOct 8, 1999 11:23 am 
Dmitrij TejblumOct 9, 1999 2:33 pm 
Tony FinchOct 10, 1999 11:25 am 
Subject:Re: make install trick
From:Peter Jeremy (pete@alcatel.com.au)
Date:Oct 6, 1999 3:58:38 pm
List:org.freebsd.freebsd-current

On 1999-Oct-07 06:44:19 +1000, Matthew D. Fuller wrote:

/dev/da0s1a on / (local, synchronous, writes: sync 32 async 15100) ^^^^^^^^^^^

Though I'm still waiting for an explanation of WHY exactly I have async writes on a sync partition. Nobody yet has said anything but 'that's interesting...'. A direction to look would be helpful.

You get a synchronous mount by passing MNT_SYNCHRONOUS to mount(2). Within the kernel, MNT_SYNCHRONOUS is used (basically only) within kern/vfs_vnops.c:vn_write(). There it adds IO_SYNC to the write request (the same as if the file has O_FSYNC enabled). IO_SYNC will be ignored if MNT_ASYNC is specified (which it isn't here). The write request goes through ufs/ufs/ufs_readwrite.c:WRITE(), which passes it to bwrite() if it's IO_SYNC.

Inode access time updates (controlled by MNT_NOATIME, which becomes ~IN_ACCESS, which becomes IN_MODIFIED) don't go through vn_write() and wind up in bdwrite().

As far as I can tell, the net effect is that inode access time updates will remain async writes into the filesystem.

An easy way to tell would be to use NOATIME and see if you're still getting async writes. (Or any writes at all).

Peter

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message