Re: how to actually find out whether data hit the disk?

2001-03-02 Thread Dag-Erling Smorgrav
Peter Dufault [EMAIL PROTECTED] writes: Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in mmap until 4.3 when Matt Dillon plans to make that the default behavior. Ahh, no. That's the other way around - I do not *want* it to hit the disk, but would like to *know* when it

Re: how to actually find out whether data hit the disk?

2001-03-02 Thread Anton Berezin
On Fri, Mar 02, 2001 at 01:59:34PM +0100, Dag-Erling Smorgrav wrote: Peter Dufault [EMAIL PROTECTED] writes: Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in mmap until 4.3 when Matt Dillon plans to make that the default behavior. Ahh, no. That's the other way around - I

Re: how to actually find out whether data hit the disk?

2001-03-02 Thread Dag-Erling Smorgrav
Anton Berezin [EMAIL PROTECTED] writes: So is there a way, or is not? No. If there was a way to tell it'd be a bug. DES -- Dag-Erling Smorgrav - [EMAIL PROTECTED] To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: how to actually find out whether data hit the disk?

2001-03-02 Thread Peter Dufault
Peter Dufault [EMAIL PROTECTED] writes: Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in mmap until 4.3 when Matt Dillon plans to make that the default behavior. Ahh, no. That's the other way around - I do not *want* it to hit the disk, but would like to *know* when it

Re: how to actually find out whether data hit the disk?

2001-03-02 Thread Dag-Erling Smorgrav
Peter Dufault [EMAIL PROTECTED] writes: Won't help. You'll get the same mtime no matter whether the file is actually written to disk or not. No, the spec says: [...] Oops, I was thinking "regular file with softupdates", not "mmapped file" (note to self: get more sleep) DES -- Dag-Erling

Re: how to actually find out whether data hit the disk?

2001-03-02 Thread Wes Peters
Anton Berezin wrote: On Fri, Mar 02, 2001 at 01:59:34PM +0100, Dag-Erling Smorgrav wrote: Peter Dufault [EMAIL PROTECTED] writes: Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in mmap until 4.3 when Matt Dillon plans to make that the default behavior. Ahh, no.

Re: how to actually find out whether data hit the disk?

2001-02-28 Thread Peter Dufault
I am doing the following, on the partition with softupdates turned on: 1. fd = open("a file", O_CREAT) 2. mmap(fd) 3. sequencial write to mmapped region 4. some other processing 5. munmap 6. unlink 7. close Since this is a supposedly high-perfomance application, I am interested that

Re: how to actually find out whether data hit the disk?

2001-02-28 Thread Anton Berezin
On Wed, Feb 28, 2001 at 08:57:31AM -0500, Peter Dufault wrote: I am doing the following, on the partition with softupdates turned on: 1. fd = open("a file", O_CREAT) 2. mmap(fd) 3. sequencial write to mmapped region 4. some other processing 5. munmap 6. unlink 7. close

Re: how to actually find out whether data hit the disk?

2001-02-28 Thread Anton Berezin
[ putting hackers- back here] On Wed, Feb 28, 2001 at 06:07:50AM -0800, Mike Smith wrote: I am doing the following, on the partition with softupdates turned on: 1. fd = open("a file", O_CREAT) 2. mmap(fd) 3. sequencial write to mmapped region 4. some other processing 5.

Re: how to actually find out whether data hit the disk?

2001-02-28 Thread Peter Dufault
Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in mmap until 4.3 when Matt Dillon plans to make that the default behavior. Ahh, no. That's the other way around - I do not *want* it to hit the disk, but would like to *know* when it nevertheless does. OK, doing a stat and

Re: how to actually find out whether data hit the disk?

2001-02-28 Thread Matt Dillon
: is it possible to actually find out whether data hit the disk or not for : a particular run of 1-7? : :Answer to your question: : :Do an msync with MS_SYNC someplace. Also, use MAP_NOSYNC in :mmap until 4.3 when Matt Dillon plans to make that the default behavior. I plan on making it the