Application-accessible nvram/cache for Linux?
Kevin D. Clark
kevin_d_clark at comcast.net
Fri Jun 22 10:43:52 EDT 2007
Michael ODonnell writes:
> >> I don't think they want a drive, they want something like a
> >> battery-backed cache but accessible from user space.
> >
> >Somebody who's done systems programming more recently than me,
> >please speak up, but if you do find a suitable device that
> >looks like a drive, you might be able to create a big file on
> >it and mmap(2) it into system memory.
>
> I was thinking along those lines, too, but unless you can
> force every write to the memory associated with the mmap'd
> device to immediately trigger a (synchronous) flush to that
> device the data will just get cached.
I was thinking along the same lines too. fsync()? "hdparm -W 0"?
Regards,
--kevin
--
GnuPG ID: B280F24E God, I loved that Pontiac.
alumni.unh.edu!kdc -- Tom Waits
More information about the gnhlug-discuss
mailing list