On Sat, 16 Apr 2005, A.M. Fradley wrote: > I want to use larger time slices when the ram starts to get full to try > to reduce the time spent swapping the pages in and out. There's a problem with that approach: if the system is swapping, processes will soon run into a page fault, and no process will be able to actually run for the length of its timeslice. What you need instead is second level scheduling, eg. by finishing/tuning the swap token code that's there, or by introducing a BSD style memory scheduler. -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/