1 Aug 2004 13:05
Re: [PATCH] token based thrashing control
Andrew Morton <akpm <at> osdl.org>
2004-08-01 11:05:53 GMT
2004-08-01 11:05:53 GMT
Rik van Riel <riel <at> redhat.com> wrote: > > The following experimental patch implements token based thrashing > protection, Thanks for this - it is certainly needed. As you say, qsbench throughput is greatly increased (4x here). But the old `make -j4 vmlinux' with mem=64m shows no benefit at all. I figured it was the short-lived processes, so I added the below, which passes the token to the child across exec, and back to the parent on exit. Although it appears to work correctly, it too make no difference. btw, in page_referenced_one(): + if (mm != current->mm && has_swap_token(mm)) + referenced++; what's the reason for the `mm != current->mm' test? diff -puN fs/exec.c~token-based-thrashing-control-inheritance fs/exec.c --- 25/fs/exec.c~token-based-thrashing-control-inheritance 2004-08-01 03:42:04.191461248 -0700 +++ 25-akpm/fs/exec.c 2004-08-01 03:42:04.199460032 -0700 <at> <at> -1146,6 +1146,7 <at> <at> int do_execve(char * filename, /* execve success */ security_bprm_free(&bprm); + take_swap_token(); return retval;(Continue reading)
RSS Feed