atoka wotsa wrote:
Can we have a Medium term scheduler in linux to reduce thrashing effect, Medium term scheduler will group the processes such that the memory requirement of each group is almost close to the physical memory available and schedule them. the ordinary scheduler will then schedule the processes within the group.
You could create one. However, second level scheduling is going to be less and less feasible over time. The reason is that tasks grow with memory size, not with disk speed. The time it takes to write all of memory to disk has grown from 5 seconds in 1992 or so to several minutes today. The time needed to swap processes in and out has grown similarly. You may be better off reducing the thrashing effect by further tuning the swap token code which the 2.6 kernel already has. For more information on the challenges there, please see: http://linux-mm.org/SwapTokenTuning Success! ;) -- What is important? What you want to be true, or what is true? -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/