From: Leyne, S. <Se...@br...> - 2007-07-23 19:21:40
|
Alex, > > On posix it will use or O_DIRECT flag (trivial to implement) or > > posix_fadvise calls (need think more on it). > > > > I still don't know what is better as i can't test it >=20 > O_DIRECT looks well for raw partitions, though not sure will it give some > real effect or not. Also seems that we must allocate page on sector > boundary to make it work. That is not a problem. Disk sectors have been 512 bytes for the last 20 years and likely for many more. Accordingly, our disk accesses will always be on sector boundaries. Sean |