Received: from libero.it (smtp-36.italiaonline.it [213.209.10.36]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 11CEA7800FD for ; Tue, 20 Sep 2022 11:15:07 +0000 (UTC) Received: from [192.168.1.36] ([151.55.89.43]) by smtp-36.iol.local with ESMTPA id abDVoAfG0Q6NeabDVo9NOp; Tue, 20 Sep 2022 13:15:05 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1663672505; bh=rCPxdCy728qvAqvuYvfD6u6u0hOea3RodmBumNfnpyE=; h=From; b=RaqiLml3NvQvZTvQ4qdMXRbDfk6VSTmX4WUSoNY4k20VhP36eEzBV4uFHNWu/anLE l9CuVlxCWIfG/of+5BTgtNrKigLcg8XYrngjMnqgMgTksebkAFT/6JZ2Moi2bmjhys v5z6/2+mlwYYIpIEB3RBtMxyL/jpmtjVPG4GCPd1ehU3CZTUjvFgugkrQP1irL6mRx pbkjMecWsr0osvbPTQ4ySFkVnz4QbbBCy/wN35ZNkMBsBf4Mprs2JgsDzrYMzBLnMd 6gkXHLzM+iAFYOlWAAsUSLqDV6gaAfgQs5ayUIadzG/cJgS/0Lkl3YTfcJYDoxJoVe XLs+mXJ9tGKbQ== X-CNFS-Analysis: v=2.4 cv=B4J8bMhM c=1 sm=1 tr=0 ts=6329a0b9 cx=a_exe a=pGfzn5UA5rnG/cBYkY6yUw==:117 a=pGfzn5UA5rnG/cBYkY6yUw==:17 a=IkcTkHD0fZMA:10 a=8pif782wAAAA:8 a=QyXUC8HyAAAA:8 a=jFe0_xNMHZYL4ZePlkcA:9 a=QEXdDO2ut3YA:10 a=8hKxSmdTQOcA:10 Subject: Re: performance drop with alpine linux upgrade To: alice , alpine-user References: <196e1b55-ade9-8a4b-889b-006fef7f63c1@libero.it> <9cb23b83-bf70-dd44-6249-a69e30e6f3e0@libero.it> From: Riccardo Mottola Message-ID: <7e8bd9af-3697-ef04-91e6-8b04324f5d3f@libero.it> Date: Tue, 20 Sep 2022 13:16:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 SeaMonkey/2.53.13 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfL7Zg6/po3njQlDF9QmzcGzaJbPasbO1mDvc5jekT+SV7ymCl2aKVfq3oFhtOs7lsEkuQYWtF7vdkS/c7cD8//IvSC8OYF5oFyj1y0d8XcY6ATr0QIRy TTrZTJmR4puBtIYPKIfj40iiRuxf6ECyKept3om+CR9UbUEth3LF3fXbVHi82mLaLLskRk312IKwnBCm5RxlC+T+Ykr1pWCKBMeXMMz+JNzoI/eIFz0Cy9Qz Ss0ghwFJ1V7VKYQIzQdZ4g== Hello Alice, I discovered something unexpected. The impact of mitgations is extreme! alice wrote: > maybe there's a chance that if intel_pstate loads first it blocks the > others? (just guessing). both of the others are also available as > modules, maybe something funny happens with pstate. perhaps > modprobe.blacklist=intel_pstate does something (or similar things in > that vein) I tried playing with that, no relevant changes. The module wasn't even loaded (I suppose the error is about that). >> I cannot identify this CPU here: >> https://en.wikipedia.org/wiki/List_of_Intel_Celeron_processors#Netburst_based_Celerons >> >> since 2.2Ghz appears to have 128K cache. It could be this one: >> https://ark.intel.com/content/www/us/en/ark/products/27318/mobile-intel-celeron-processor-2-20-ghz-256k-cache-400-mhz-fsb.html >> >> still i don't think too much relevant to have the exact detail. >> >> >>> add mitigations=off to the kernel cmdline, via whatever booting setup >>> you have. usual warnings/caveats apply, but there you go. i doubt they >>> would be that impactful though.. >> I doubt too, on more modern CPUs I have found an impact of 1% to 10% >> usually... but maybe on this old cache-limited CPU? >> >> I have syslinux, I don't know hot do add that option to >> |/etc/update-extlinux.conf|, but I will add it manually for a boot and >> test the difference. > the default_kernel_opts line can have it That was it. mitigations=off makes the system almost as fast as before, it takes now about 680minutes instead of... 7000!! (still slower than the previous 500 minutes, but also gcc was upgraded, so other things could take in account the slowdown). It means one or more of the disabled mitgations has an extreme impact (roughtly 1/10th performance) in the specific task of heavy compilation, python and make scripts. Being a celeron, this is a non-hyper-threaded CPU, but it was one of the first CPUs with a very deep pipeline and high clock speed (2.2GHz). Maybe some mitigations aren't even needed, however it would be interesting to know which one(s) makes this huge impact, could be useful for others. But to do that I need somehow a smaller testcase, I can't wait a night vs. a fortnight everytime :) Riccardo