From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 19 Jan 2006 15:00:39 +0100 From: Nick Piggin Subject: Re: [patch 0/4] mm: de-skew page refcount Message-ID: <20060119140039.GA958@wotan.suse.de> References: <20060118024106.10241.69438.sendpatchset@linux.site> <20060118170558.GE28418@wotan.suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org Return-Path: To: Linus Torvalds Cc: Nick Piggin , Linux Memory Management , Linux Kernel Mailing List , Hugh Dickins , Andrew Morton , Andrea Arcangeli , David Miller List-ID: On Wed, Jan 18, 2006 at 11:27:13AM -0800, Linus Torvalds wrote: > > > On Wed, 18 Jan 2006, Nick Piggin wrote: > > > > > So I disagree with this patch series. It has real downsides. There's a > > > reason we have the offset. > > > > Yes, there is a reason, I detailed it in the changelog and got rid of it. > > And I'm not applying it. I'd be crazy to replace good code by code that is > objectively _worse_. > And you're not? Damn. > The fact that you _document_ that it's worse doesn't make it any better. > > The places that you improve (in the other patches) seem to have nothing at > all to do with the counter skew issue, so I don't see the point. > You know, I believe you're right. I needed the de-skewing patch for something unrelated and it seemed that it opened the possibility for the following optimisations (ie. because we no longer touch a page after its refcount goes to zero). But actually it doesn't matter that we might touch page_count, only that we not clear PageLRU. So the enabler is simply moving the TestClearPageLRU after the get_page_testone. So I'll respin the patches without the de-skewing and the series will become much smaller and neater. > So let me repeat: WHY DID YOU MAKE THE CODE WORSE? > You've never bothered me about that until now... Thanks for the feedback! Nick -- 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-mm.org/ . Don't email: email@kvack.org