Mercurial > yaffs-ecoscentric-gpl
view README-linux-patch @ 403:205fa93db422
yaffs New background garbage collector and related tweaks
This commit
- introduces the yaffs background garbage collection feature
- tweaks the foregound garbage collection to do less work
- changes the way auto-checkpointing works
- tweaks the block refreshing logic.
The aim of the background garbage collector is to do at least some of the
garbage collection in the background so that writing operations will not have
to do as much garbage collection which should make writes faster. The amount of
background garbage collection is controlled by the ratio between the amount of
erased space vs the amount of free space:
* If less than quarter of free space is erased, then background gc is frequent.
* Else if less than a half of the free space is erased, then background gc is
still done reasonably frequently.
* else (at least half of the free space is erased) the background gc is done
infrequently.
Background gc is not attempted if the partition is checkpointed since that would
invalidate the checkpoint.
The auto-checkpointing feature has changed slightly. If the yaffs_auto_checkpoint
value is set to 1 or 2 then the auto checkpointing will be blocked if the erased
space is less than half the free space (ie. the auto-checkpointing is blocked to
allow background gc to progress). Oring in 4 into the yaffs_auto_checkpoint will
do a one-shot override, forcing a checkpoint and suspending background gc until
the partition is dirtied by a write, erase etc.
The block refreshing control has been changed. The dev->param.refreshPeriod now
controls how many blocks are garbage collected before another refresh is performed.
Values around 1000 probably make the best sense.
Signed-off-by: Charles Manning <cdhmanning@gmail.com>
| author | Charles Manning <cdhmanning@gmail.com> |
|---|---|
| date | Fri, 16 Apr 2010 15:39:16 +1200 |
| parents | 55004e797a2d |
| children |
line wrap: on
line source
To build YAFFS in the Linux kernel tree you need to run the patch-ker.sh script from the yaffs source directory, giving your choice as to whether you wish to copy (c) or link (l) the code and the path to your kernel sources, e.g: ./patch-ker.sh c /usr/src/linux This will copy the yaffs files into fs/yaffs2 and modify the Kconfig and Makefiles in the fs directory. ./patch-ker.sh l /usr/src/linux This does the same as the above but makes symbolic links instead. After you've run the script, go back to your normal kernel making procedure and configure the yaffs settings you want. Prolems? Contact the yaffs mailing list: http://www.aleph1.co.uk/mailman/listinfo/yaffs
