Is realtime logging possible?
David Woodhouse
dwmw2 at infradead.org
Fri Feb 8 20:31:48 EST 2002
On Fri, 8 Feb 2002, Derek Ross wrote:
> Hello,
>
> Our product will have a slow-realtime logging
> component in it, and I'm trying to find out if
> flash will be capable of handling it.
>
> We'll be logging about 6 bytes once a second into
> flash. The maximum blocking duration for a write
> should be 0.1 second or less.
Does the write to flash really have to be done in the context of the
realtime process?
You probably don't want to use a filesystem for this - just log to the raw
flash, using the mtd chardevice and issuing MEMERASE calls manually when
necessary.
> background, so that if you organize the writes not
> to interfere with the erases (always different sectors)
> you won't have long blocking issues.
IIRC that's not implemented completely for the Intel chips atm. Our state
machine thinks the whole chip is busy whenever it's erasing any part, and
won't attempt to write to it. We should fix the state machine so it keeps
state for each individual region of the flash.
--
dwmw2
More information about the linux-mtd
mailing list