Hello Tom, Friday, March 16, 2001, 6:54:22 AM, you wrote: TL> Alfred Perlstein <[EMAIL PROTECTED]> writes: >> How many files need to be fsync'd? TL> Only one. >> If it's more than one, what might work is using mmap() to map the >> files in adjacent areas, then calling msync() on the entire range, >> this would allow you to batch fsync the data. TL> Interesting thought, but mmap to a prespecified address is most TL> definitely not portable, whether or not you want to assume that TL> plain mmap is ... TL> regards, tom lane Could anyone consider fork a syncer process to sync data to disk ? build a shared sync queue, when a daemon process want to do sync after write() is called, just put a sync request to the queue. this can release process from blocked on writing as soon as possible. multipile sync request for one file can be merged when the request is been inserting to the queue. -- Regards, Xu Yifeng ---------------------------(end of broadcast)--------------------------- TIP 4: Don't 'kill -9' the postmaster
- Re: [HACKERS] Allowing WAL fsync to be done via... Peter Eisentraut
- Re: [HACKERS] Allowing WAL fsync to be done... Tom Lane
- [HACKERS] Re: Allowing WAL fsync to be ... Thomas Lockhart
- Re: [HACKERS] Allowing WAL fsync to be done... Bruce Momjian
- Re: [HACKERS] Allowing WAL fsync to be done via O_S... Bruce Momjian
- RE: [HACKERS] Allowing WAL fsync to be done via O_SYNC Mikheev, Vadim
- Re: [HACKERS] Allowing WAL fsync to be done via O_S... Alfred Perlstein
- Re: [HACKERS] Allowing WAL fsync to be done via... Tom Lane
- Re: [HACKERS] Allowing WAL fsync to be done... Alfred Perlstein
- Re: Re[2]: [HACKERS] Allowing WAL fsync to ... Xu Yifeng
- Re: Re[2]: [HACKERS] Allowing WAL fsync... Alfred Perlstein
- Re[4]: [HACKERS] Allowing WAL fsyn... Xu Yifeng
- Re: Re[4]: [HACKERS] Allowing ... Alfred Perlstein
- Re: Re[4]: [HACKERS] Allowing ... Tom Lane
- Re: Re[4]: [HACKERS] Allowing ... Alfred Perlstein
- Re: Re[4]: [HACKERS] Allowing ... Tom Lane
- Re: Re[4]: [HACKERS] Allowing ... The Hermit Hacker
- Re: Re[4]: [HACKERS] Allowing ... Larry Rosenman
- Re: Re[4]: [HACKERS] Allowing ... Tom Lane
- Re: Re[4]: [HACKERS] Allowing ... Bruce Momjian