Application-accessible nvram/cache for Linux?

Thomas Charron twaffle at gmail.com
Fri Jun 22 14:01:22 EDT 2007


On 22 Jun 2007 11:21:40 -0400, Kevin D. Clark <kevin_d_clark at comcast.net> wrote:
> Michael ODonnell writes:
> > You could programmatically force
> > a flush after every write, but if you're willing to do that
> > then there's probably a lot better approaches than this one...
> There are better solutions than this, but if somebody were to want
> to implement one, they should do their due diligence and make sure
> that such a solution truly is better.

  Worst case, you can open using O_DIRECT, which specifies direct
read/right access.  The only limitation really is the reads/writes
need to be aligned to the block size of the device.

  Better would be to tell the OS it's OK to cache it, but a direct
write is needed.

-- 
-- Thomas


More information about the gnhlug-discuss mailing list