Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932607Ab3FQKAa (ORCPT ); Mon, 17 Jun 2013 06:00:30 -0400 Received: from mga11.intel.com ([192.55.52.93]:38664 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932373Ab3FQKA3 (ORCPT ); Mon, 17 Jun 2013 06:00:29 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,880,1363158000"; d="scan'208";a="354636971" Message-ID: <51BEDE09.1050307@intel.com> Date: Mon, 17 Jun 2013 17:59:37 +0800 From: Alex Shi User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 MIME-Version: 1.0 To: Paul Turner CC: Vincent Guittot , "mingo@redhat.com" , Peter Zijlstra , Thomas Gleixner , Andrew Morton , Borislav Petkov , Namhyung Kim , Mike Galbraith , Morten Rasmussen , Preeti U Murthy , Viresh Kumar , linux-kernel , Mel Gorman , Rik van Riel , Michael Wang , Jason Low Subject: Re: [RFC patch 1/4] sched: change cfs_rq load avg to unsigned long References: <1370590169-24804-1-git-send-email-alex.shi@intel.com> <1370590169-24804-2-git-send-email-alex.shi@intel.com> <51B2948A.60309@intel.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1021 Lines: 32 On 06/17/2013 05:49 PM, Paul Turner wrote: >>> >> Hi Alex, >>> >> >>> >> I just want to point out that we can't have more than 48388 tasks with >>> >> highest priority on a runqueue with an unsigned long on a 32 bits >>> >> system. I don't know if we can reach such kind of limit on a 32bits >>> >> machine ? For sure, not on an embedded system. > This should be ok. > > Note that: > runnable_load_avg = \Sum se->load_avg_contrib <= \Sum > se->load.weight = cfs_rq->load.weight > > And load_weight uses unsigned longs also. > > blocked_load_avg must be also safe since anything appearing in blocked > load could have appeared in runnable load and we've said that was ok > above. > > Reviewed-By: Paul Turner > thanks for review! -- Thanks Alex -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/