Re: Is there a way to flush the file cache?
- From: Jean-David Beyer <jeandavid8@xxxxxxxxxxx>
- Date: Fri, 29 Dec 2006 14:43:36 GMT
General Schvantzkoph wrote:
I've just gotten the answer on the Fedora forums. The open() call has a
O_DIRECT flag which causes file I/O to use user buffers instead of the
cache. Raw IO isn't supported in the 2.6 kernels.
I imagine there is another way to accomplish what Raw IO did in the 2.6
kernels because I use IBM DB2 and it uses raw IO. It bypasses the file
system and writes direct to the disk partition(s). This is only partly to
avoid the copy from user space to kernel space. It is also to permit much
larger page sizes, to allocate disk space contiguously, and such. It may
also get closer to having a COMMIT work correctly and mean that the data
have really gotten to the disk. (I think it only means the data got to the
hard drive's input buffer and received a suitable acknowledgment from the
hard drive.)
--
.~. Jean-David Beyer Registered Linux User 85642.
/V\ PGP-Key: 9A2FC99A Registered Machine 241939.
/( )\ Shrewsbury, New Jersey http://counter.li.org
^^-^^ 09:35:01 up 69 days, 12:07, 3 users, load average: 4.16, 4.09, 4.09
.
- References:
- Is there a way to flush the file cache?
- From: General Schvantzkoph
- Re: Is there a way to flush the file cache?
- From: Tony Lawrence
- Re: Is there a way to flush the file cache?
- From: General Schvantzkoph
- Re: Is there a way to flush the file cache?
- From: Jean-David Beyer
- Re: Is there a way to flush the file cache?
- From: General Schvantzkoph
- Is there a way to flush the file cache?
- Prev by Date: Re: USB to ethernet adapter
- Next by Date: Re: Is there a way to flush the file cache?
- Previous by thread: Re: Is there a way to flush the file cache?
- Next by thread: Re: Is there a way to flush the file cache?
- Index(es):
Relevant Pages
|