From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sat, 13 Jan 2001 05:41:52 -0200 (BRST) From: Marcelo Tosatti Subject: Re: swapout selection change in pre1 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Linus Torvalds Cc: linux-mm@kvack.org List-ID: On Sat, 13 Jan 2001, Linus Torvalds wrote: > It's the other way around: it used to be _extremely_ unfair towards > threads, because threads woul dget swapped out _much_ more that > non-threads. The new "count only nr of mm's" actually fixes a real problem > in this area: a process with hundreds of threads would just get swapped > out _way_ too quickly (it used to be counted as "hundreds of VM's", even > though it's obviously just one VM, and should be swapped out as such). The point is: Should this VM with hundreds of threads be treaded as a VM with one thread ? With the old "per-task" selection scheme (before -prerelease), swap_cnt used to avoid us from scanning a VM too much (if swap_cnt reached zero the VM would not be scanned until all other VM's had been scanned). -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux.eu.org/Linux-MM/