Skip to contentSkip to conversation

How to produce dirty space

DISCUSSION Bernhard Priewasser 2 participants 3 messages Nov 8, 2005 – Nov 9, 2005 Memory technology devices (MTD)

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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_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... :-)

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.
#2 lore raw
Quoted 2 lines

For the information when things are flushed see "/proc/sys/vm - the virtual memory subsystem" at Documentation/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