Received: from libero.it (smtp-36.italiaonline.it [213.209.10.36]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 30213780DB4 for ; Mon, 12 Sep 2022 12:58:10 +0000 (UTC) Received: from [192.168.1.36] ([151.55.89.43]) by smtp-36.iol.local with ESMTPA id Xj0qoUDPVQ6NeXj0ro7Zwl; Mon, 12 Sep 2022 14:58:09 +0200 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2021; t=1662987489; bh=eHWmbMAENvcERVKkHk3yIB0+5Z7UGufFDzieD8xCFP0=; h=From; b=ZrXlw7rFllycCHaSpiNzOxzepxQa2RJMqYsL6YcvUTHP8NBxcEbCBLUYkOG4gsTKY WJB15mAccp9VUiDkVj0z9L+d8MIT9t8Y0FMa6bPRbbnet553oZcTmeOgcrbvan93g+ 3egj778Gg1DpFB/0qi4aCwVhLwKjAu5RYDibLuV3EWxFblius1PONHWDovlt/8whPg 5McOsteSJe8H99lZcYNCXZCNqjQmH2V3PK5rn6WlHbR0iMpQwv/5aHtFo6NTMdNyRB WoDbtzHZfmVyfdsHiYNAAVpLdGcdi5aL4Kd0n6MZKJg79mfeUPHmQuo8b5JyaNv+bK 9WPjjuNQwnOnQ== X-CNFS-Analysis: v=2.4 cv=B4J8bMhM c=1 sm=1 tr=0 ts=631f2ce1 cx=a_exe a=pGfzn5UA5rnG/cBYkY6yUw==:117 a=pGfzn5UA5rnG/cBYkY6yUw==:17 a=IkcTkHD0fZMA:10 a=VwQbUJbxAAAA:8 a=8pif782wAAAA:8 a=QyXUC8HyAAAA:8 a=yVP0gfHPD5cg313VFCAA:9 a=QEXdDO2ut3YA:10 a=8hKxSmdTQOcA:10 a=AjGcO6oz07-iQ99wixmX:22 Subject: Re: performance drop with alpine linux upgrade To: alice , alpine-user References: <196e1b55-ade9-8a4b-889b-006fef7f63c1@libero.it> From: Riccardo Mottola Message-ID: <9cb23b83-bf70-dd44-6249-a69e30e6f3e0@libero.it> Date: Mon, 12 Sep 2022 14:59:20 +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: 8bit X-CMAE-Envelope: MS4xfOKXRYjEcC+1yEQVQZHwpxk06FGyXCuC9+O7HtvKHjLvO3K/EcUuvNghziBOJ3+HcPntoFsTeyxp+LWBqqDHXbGCq87gU2JYplsK2uG2Vi7pZq5ImfhD MedoeMO4xKoMbnFv5foxzJJLBZ4QC6cws5UWPd55iLoGch5MgBKeEQP9GAvEbSEvvNEVe4E9OA1wJhKssa1bi5hodkQOYhcsRclFryklNcxeH8bo3yMr1kRB rc1rOXBicxpJAc0uLV9UZw== Hello Alice, alice wrote: > On Mon Sep 12, 2022 at 10:47 AM CEST, Riccardo Mottola wrote: > you should monitor the frequency during that- it probably goes down/up > as the fans do cpuinfo gives always the same frequency >> I can think of two causes, from my past experience with other systems: >> - disabled caches > i don't think a kernel update would change this, either >> - CPU not runnig at full speed >> >> In the BIOS I checked and CPU and L2 caches are enabled (small in this >> crippled CPU anyway). >> Could some APM/ACPI lower the cpu speed until I rise it withsome governor? > you can check the governors with: > cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor my cpu9 does not have cpufreq, either it is not supported at all on this old CPU model or something is not detected? That would make me guess however that it runs at the speed shown in cpuinfo, 2.2GHz. also: cervino:~# cpufreq-info cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009 Report errors and bugs to cpufreq@vger.kernel.org, please. analyzing CPU 0: > > but i don't think even being stuck on "powersave" or something would do > that.. strange No, I would, at the opposite, suppose it would be stuck to the frequency reported in cpuinfo, that is, the maximum > > this sounds like some weird kernel regression in 5.15, if anything strange indeed 5.15.64-0-lts #1-Alpine SMP Mon, 05 Sep 2022 08:02:49 +0000 i686 Linux in dmesg I see: [    1.605776] intel_pstate: CPU model not supported but I don't know if this is relevant, this CPU is based on netburst architecture. I think that back then, few cpu scaling methods where available. Original speedstep and perhaps p4_clockmod - where the clock doesn't really change? 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. Riccardo