Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752205AbbEQHaU (ORCPT ); Sun, 17 May 2015 03:30:20 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:38622 "EHLO mail-wi0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751208AbbEQHaO (ORCPT ); Sun, 17 May 2015 03:30:14 -0400 Date: Sun, 17 May 2015 09:30:08 +0200 From: Ingo Molnar To: Linus Torvalds Cc: Andy Lutomirski , Davidlohr Bueso , Peter Anvin , Denys Vlasenko , Linux Kernel Mailing List , Tim Chen , Borislav Petkov , Peter Zijlstra , "Chandramouleeswaran, Aswin" , Peter Zijlstra , Brian Gerst , Paul McKenney , Thomas Gleixner , Jason Low , "linux-tip-commits@vger.kernel.org" Subject: Re: [tip:x86/asm] x86: Pack function addresses tightly as well Message-ID: <20150517073008.GA6571@gmail.com> References: <20150410121808.GA19918@gmail.com> <20150517055551.GB17002@gmail.com> <20150517070929.GA23344@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150517070929.GA23344@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 853 Lines: 27 * Ingo Molnar wrote: > The median function size is around 1 cacheline (64-byte one), ~80% > fitting into two cachelines, with a big peak for very small > functions that make up something like 20% of all functions [...] Correction: 32% of kernel functions fit into a single cacheline, 55% fit into two cachelines, 70% into three cachelines, 76% into four cachelines so the tail is longer than my quick read of the graph suggested. OTOH, probability of use is biased towards smaller functions: we tend to use smaller, facility functions more frequently. Thanks, Ingo -- 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/