How to produce dirty space
Hi all,
I want to generate some dirty space in a mounted JFFS2 for test purposes. I tried to get the FS dirty for hours now... but I couldn't compete against the erase_pending list. (BTW: how is kupdated set up?) Maybe... I'm not the first one who wants to do some tests on a dirty FS, perhaps there is some existing code... :-)
Thanks,
Signature · 1 line
Bernhard
Quoted 4 lines · Bernhard Priewasser
Hi all,
I want to generate some dirty space in a mounted JFFS2 for test purposes. I tried to get the FS dirty for hours now... but I couldn't compete against the
erase_pendinglist. (BTW: how is kupdated set up?) Maybe... I'm not the first one who wants to do some tests on a dirty FS, perhaps there is some existing code... :-)
Create a file and make a small change in it. It is unlikely that the corresponding eraseblock will be garbage collected soon, so you'll have dirty space.
For the information when things are flushed see "/proc/sys/vm - the virtual memory subsystem" at Documentation/filesystems/proc.txt.
Signature · 3 lines
Best Regards, Artem B. Bityutskiy, St.-Petersburg, Russia.
Quoted 2 lines
For the information when things are flushed see "
/proc/sys/vm- the virtual memory subsystem" atDocumentation/filesystems/proc.txt.
Got it:
Quoted 6 lines
[/proc/sys/vm/]dirty_writeback_centisecs
----------------------------------------The pdflush writeback daemons will periodically wake up and write `old' data out to disk. This tunable expresses the interval between
those wakeups, in 100'ths of a second.
Thanks,
Signature · 1 line
Bernhard