- kernel: we need some free room. - scheduler: ok let's have a look at the discardable pages. Here they are. Just a second please. - scheduler choose exactly 128Kb ready for writing (and that's the page-cluster tunable at a kernel level, right?) - scheduler frees the memory requested with a single page-writing - scheduler: here I am again, you have those requested memory free - kernel: thank you
- A simple modified NOOP algorithm good for flash could look like:- check if the page to be unloaded is already cached and not dirty or in the current queue if yes -> load the page requested and discard the unloaded one if no -> put in the queue the page to be unloaded and serve the page to be loaded is the queue 128Kb? if yes -> write it out and update table of swapped pages if no -> job done
- probably the parameters in the first page will be tuned again after some days of usage and having looked at the patterns arised in terms of load and memory used.
| The Following 3 Users Say Thank You to jurop88 For This Useful Post: | ||

| The Following User Says Thank You to ivgalvez For This Useful Post: | ||
