[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Endless garbage collection
It's possible to get the garbage collection going in an endless loop by
creating lots of small files. eg, if I create 25 files, each 0 bytes long,
on an empty filesystem, garbage collection starts and goes on and on.
Perhaps the test for too much RAM being used in thread_should_wake() ought
to take the number of files into account? ie should it be:
/* If there is too much RAM used by the various structures, GC */
if (jffs_get_node_inuse() >
(c->fmc->used_size/c->fmc->max_chunk_size * 5 + 25 + jffs_get_file_count()))
where jffs_get_file_count() returns the number of files on the filesystem.
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to email@example.com