From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0E37AC432C3 for ; Fri, 15 Nov 2019 08:24:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E3B5320740 for ; Fri, 15 Nov 2019 08:24:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727122AbfKOIY5 (ORCPT ); Fri, 15 Nov 2019 03:24:57 -0500 Received: from out30-45.freemail.mail.aliyun.com ([115.124.30.45]:45902 "EHLO out30-45.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725829AbfKOIY4 (ORCPT ); Fri, 15 Nov 2019 03:24:56 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R101e4;CH=green;DM=||false|;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e07487;MF=shile.zhang@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0Ti7z8ho_1573806293; Received: from ali-6c96cfdd1403.local(mailfrom:shile.zhang@linux.alibaba.com fp:SMTPD_---0Ti7z8ho_1573806293) by smtp.aliyun-inc.com(127.0.0.1); Fri, 15 Nov 2019 16:24:53 +0800 Subject: Re: [RFC PATCH v3 0/7] Speed booting by sorting ORC unwind tables at build time To: Ingo Molnar Cc: Peter Zijlstra , Josh Poimboeuf , Masahiro Yamada , Michal Marek , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H . Peter Anvin" , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org References: <20191115064750.47888-1-shile.zhang@linux.alibaba.com> <20191115072511.GA114447@gmail.com> From: Shile Zhang Message-ID: Date: Fri, 15 Nov 2019 16:24:52 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191115072511.GA114447@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/11/15 15:25, Ingo Molnar wrote: > * Shile Zhang wrote: > >> Hi, >> >> I refactored the sortextable code and add ORC unwind tables sort >> support, for kernel boot speedup by sorting kernel tables at build time >> as much as possible. >> >> Followed Peter's suggestion, I put ORC tables sort into a separated >> thread makes these tables sort concurrently. That helps to avoid >> kernel's link time as possible. > Could you please also measure how much boot time this saves, > approximately, and how long it takes to do it at build time? Thanks for your review! I've tested on 2vcpu16GB VM (with 2.5GHz Xeon CPU), it can saves near 90ms. And the new sorttable tool costs about 0.074s to do extable and orc tables sort, on host with same CPU. > > Thanks, > > Ingo