Re: 2.2.0-final

Andrea Arcangeli (andrea@e-mind.com)
Sun, 24 Jan 1999 14:16:35 +0100 (CET)


On Sat, 23 Jan 1999, Andrea Arcangeli wrote:

> On Wed, 20 Jan 1999, Linus Torvalds wrote:
>
> > In short, before you post a bug-report about 2.2.0-final, I'd like you to
>
> There are three things from me I think should go in before 2.2.0 real

There's a fourth thing I forget to tell yesterday. If all pte are young we
could not be able to swapout while with priority == 0 we must not care
about CPU aging. I hope to have pointed out right and needed things, I
don't want to spam you while you are busy...

Here the fix:

Index: vmscan.c
===================================================================
RCS file: /var/cvs/linux/mm/vmscan.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 vmscan.c
--- vmscan.c 1999/01/23 18:52:32 1.1.1.3
+++ linux/mm/vmscan.c 1999/01/24 13:12:30
@@ -325,7 +325,7 @@
* Think of swap_cnt as a "shadow rss" - it tells us which process
* we want to page out (always try largest first).
*/
- counter = nr_tasks / (priority+1);
+ counter = (nr_tasks << 1) / (priority+1);
if (counter < 1)
counter = 1;
if (counter > nr_tasks)

Andrea Arcangeli

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/