From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755180Ab2C0RJi (ORCPT ); Tue, 27 Mar 2012 13:09:38 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:58459 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754604Ab2C0RJg (ORCPT ); Tue, 27 Mar 2012 13:09:36 -0400 Date: Tue, 27 Mar 2012 19:09:30 +0200 From: Ingo Molnar To: Peter Zijlstra Cc: Andrea Arcangeli , Linus Torvalds , Hillf Danton , "Paul E. McKenney" , Dan Smith , Paul Turner , Lai Jiangshan , Rik van Riel , Ingo Molnar , Andrew Morton , Lee Schermerhorn , linux-mm@kvack.org, Suresh Siddha , Mike Galbraith , Bharata B Rao , Thomas Gleixner , Johannes Weiner , linux-kernel@vger.kernel.org Subject: Re: [PATCH 11/39] autonuma: CPU follow memory algorithm Message-ID: <20120327170929.GA28771@gmail.com> References: <1332783986-24195-1-git-send-email-aarcange@redhat.com> <1332783986-24195-12-git-send-email-aarcange@redhat.com> <1332786353.16159.173.camel@twins> <4F70C365.8020009@redhat.com> <20120326194435.GW5906@redhat.com> <20120326203951.GZ5906@redhat.com> <1332837595.16159.208.camel@twins> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1332837595.16159.208.camel@twins> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra wrote: > You can talk pretty much anything down to O(1) that way. Take > an algorithm that is O(n) in the number of tasks, since you > know you have a pid-space constraint of 30bits you can never > have more than 2^30 (aka 1Gi) tasks, hence your algorithm is > O(2^30) aka O(1). We can go even further than that, IIRC all physical states of this universe fit into a roughly 2^1000 finite state-space, so every computing problem in this universe is O(2^1000), i.e. every computing problem we can ever work on is O(1). Really, I think Andrea is missing the big picture here. Thanks, Ingo