Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4211208ybc; Fri, 15 Nov 2019 00:26:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwParIxO5qMzuLUJkaX0XjLDPURWdwmAhAedDz60Yfm/R9OYjpqWD0Zell/UXOBBvFYCvKh X-Received: by 2002:a17:907:206d:: with SMTP id qp13mr11724780ejb.92.1573806386602; Fri, 15 Nov 2019 00:26:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573806386; cv=none; d=google.com; s=arc-20160816; b=kd5qcZjcrmqwWZFsC50205Gj/w/JNGfCW21qjeLMOW8lXkofu1zZqtUh6VKHE/s4/7 3BprPKlRyMizH8iMoVMWUufeWvvOPFDA61NoURZuc/u6NUeTo9e5dpnCYCCwndniZ/e2 HLGQ8ok6/P2Hoe1FJbhllJP2svUI17GdY3s0Tp4X+s0f2waBFAdNJcz2Y5+wnSfw0MGa QCcBGtzak4hdDOxRBsdm3N4In3jzGqE53tfXts/Ru6vfAAPDnFotnxS6glp09bmNPHEZ ggZIozF+AHJ6EA5GYk0MjSlR3qKCgK4W0fy5aym7L6vOC8+5ExdXe/P/AmqHQwu824C3 nxVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=fv3fgg75z6MODQruGMTX7CJFULURh6mmAGxqOAE5Tgg=; b=d54vSic69f4KXj672mg7aepLPnu4ZlR7VMZtoxsht+4wyUnCb+XFkptVZlRY763rRl oJPUBL2A6/Mae3wMbjpnQjhOXUA4ioW4Zy0M81UqL9/+iq/YfK39cbVyeXbhSNP3LJIu P3J3i9LNlSVFAxaZWDV/5PIAfTJ7NJXLjfwc8pCcIRwmElOfmgBUDQ2TvHMAu15OBgOV TXJ6/q2h6++wO600BkugrSuGQ6fu6G++6RrP5JWz0SA2QortzAUcqPK6c9gYQhliaGPG DNmpzcV0nu1oqmWO+F+b3rd9eVzxiSntM/3n29PlDwDXqRd4a0bAA+g+gXBGNqQZxIds WdRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i24si5128164ejh.35.2019.11.15.00.26.01; Fri, 15 Nov 2019 00:26:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727081AbfKOIY5 (ORCPT + 99 others); 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