Date: Mon, 07 Feb 2000 15:40:55 -0700 From: Wes Peters <wes@softweyr.com> To: Alfred Perlstein <bright@wintelcom.net> Cc: Matthew Dillon <dillon@apollo.backplane.com>, hackers@freebsd.org Subject: Re: Syncing a vector of fileoffsets and lengths? Message-ID: <389F49F7.7290B179@softweyr.com> References: <20000207114042.E25520@fw.wintelcom.net> <200002071938.LAA50114@apollo.backplane.com> <20000207125636.G25520@fw.wintelcom.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Alfred Perlstein wrote: > > I asked this question because of a problem that Postgresql has, > basically multiple processes will be updating a file, they may do > scattered IO to multiple offsets into the file, at the end of a > transaction they want to sync the data... fsync(). ow. This causes > buffers dirtied from multiple processes to be pushed to disk where > they really only want thier own. The order doesn't really matter, > just that all of the IO is on stable storage. So, what you're looking for is something like writev, only having the vector entries consist of (fd, pos, nbytes) triples? And perhaps a sync vs. async flag on the call? -- "Where am I, and what am I doing in this handbasket?" Wes Peters Softweyr LLC wes@softweyr.com http://softweyr.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?389F49F7.7290B179>