Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp820977ybl; Fri, 6 Dec 2019 06:48:13 -0800 (PST) X-Google-Smtp-Source: APXvYqyu6H1SQzGwNY3oRK4TWypgIN6o82Xjxwn77u57eSUnE1pN0FWpB0OLVnW148TWG1y4X0/t X-Received: by 2002:aca:ed81:: with SMTP id l123mr12613285oih.129.1575643692893; Fri, 06 Dec 2019 06:48:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575643692; cv=none; d=google.com; s=arc-20160816; b=aiUBG3D3/1zaduyzvEUYf9sn2PiqKswXNrztWuUHjmbhzLjwRRx2RrZGQ4RxEtEbI9 +fzvTcmx7Gs4odA09KTA1Y2P20MAONI47gmpOS/NRezaEhZX8BqYAmRXAmCiNtT0YZ0c lrAooxIciCTIA7MuvAn1RCmL5GRqQ6Im58o8EoW/hBv73A14iZfr4Z/7d33Jwc71MBNV 6YwkqmWtokDRGy43xB4aV2+a2tJsP9erhAiIrgvVw/WiZA3lIy7///Rbp+C3XZVUwqmo QVITnrZQqHhXFmbCQPm49gIV1RqUl7YqJqZA3EDtDncz5sJjbm3aB8n0538OZZK+ep+Q 5fAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=z8dmGDjY8zlKrh0dUHiG+EMC25Wcsnu9umFnGNvxqvE=; b=obDoND1XDeYYREDweAvYk+EKx/0lGTuwzlHi4M7Zg6As9aOdEGhFgXL36pmVLX9ubz W6L2XuCyyTZ8eHNb1iqzsAekHWUSntLbZbFH/J2PK0ptJ/qTRG7n5Aoop4FOnvtapkxu Ducwq5qnZilVf8T/JnZdFIaKx8YuSNbsNYDJVp7Q1qEPglX6pYi63DUjcMEewd7enTk8 EGrO9gUTTdoiJ4MLeoqW2QekVgwP/6Ugnw/hHlJWRq/Nt1SPBLtQ7P9lgPLLraOw9hYI 4OHlBtz6N4JzYgcqVCCTUneVhU5ImDi/hD6I+p28XAzbvqp/1i1Qbr6+x7DDrGYKiDye g38g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OGU0ooDH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r10si6958214otn.241.2019.12.06.06.47.59; Fri, 06 Dec 2019 06:48:12 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=OGU0ooDH; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726799AbfLFOrZ (ORCPT + 99 others); Fri, 6 Dec 2019 09:47:25 -0500 Received: from mail-io1-f50.google.com ([209.85.166.50]:45482 "EHLO mail-io1-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726317AbfLFOrZ (ORCPT ); Fri, 6 Dec 2019 09:47:25 -0500 Received: by mail-io1-f50.google.com with SMTP id i11so7531398ioi.12 for ; Fri, 06 Dec 2019 06:47:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=z8dmGDjY8zlKrh0dUHiG+EMC25Wcsnu9umFnGNvxqvE=; b=OGU0ooDH33ZqSOL8qOxATV6dbBakoiYEvltcT6Ke9E86QTK7SQPSuWULTQaCg9gskw T/LMfN7e4mNcoF3CbSy8TiCDmhRQKJIKER6ZQqB/sYWgTPrbEUoi71oaPnF62TYdCvVu sFnmyr/rj/E2MBKrElj6VUJU5y+3jtflqZqxpouZkl5AbPPVEXoxE6qzTViZoaUvJbwn Ii76WHj8rPuj8IiO62VfGFm8GkckFmWcpt4fklnNlhoQryYb+9uPdNo88Eob9mttTaTo Xh/EYFlpe2rOoVm+aYeLqLUB8R+fB+09QAH/dMaQxxcJSdukpeo8RsXhedT7MLK6gm2E FzcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=z8dmGDjY8zlKrh0dUHiG+EMC25Wcsnu9umFnGNvxqvE=; b=EaSVhnC+wKbV0o7ycdQEewNDDH80V4bSXtLezeneL6BWDqz6bKnV8Bj+dIXxrHX44h Wfk9B5pA7zJb1Ix7r5/jbEujuGiiepQjDmqzVv9anflfDJkHf7CvSA+4k6K3FMLKf78C s0CiAHkkouzwpjkreqd8nVMjCPOpwv1PP9CzFWkH64YX/k/CBz2Gzt9ILEg0LlNr59h+ v1zc7NgwUlHA2w2LHfRT3ceVGFXrgBfccoBVB1tSAmPTYPeCRSKxfJcKSPXKrVIW8Tc9 ugTx1rkewxkLeT+M6bwp9J4N+NJIpj+v7juBuDdluKFjpQIqtoaFl9JdOicbp9OlXsMr mEpw== X-Gm-Message-State: APjAAAVmi/g/Km9Rm2cQoKpyvRwEPb8Awi0um1xyz+MvowlxijRHiswD q1zaBT6VXnZr2S3r1cwAuwne+OWz7tCGPKHEm24= X-Received: by 2002:a02:8587:: with SMTP id d7mr13858101jai.39.1575643644859; Fri, 06 Dec 2019 06:47:24 -0800 (PST) MIME-Version: 1.0 References: <8eeee0695c664305ba6a56bce42a995f@AcuMS.aculab.com> In-Reply-To: <8eeee0695c664305ba6a56bce42a995f@AcuMS.aculab.com> From: Alexey Klimov Date: Fri, 6 Dec 2019 14:47:13 +0000 Message-ID: Subject: Re: Running an Ivy Bridge cpu at fixed frequency To: David Laight Cc: "x86@kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 4, 2019 at 5:32 PM David Laight wrote: > > Is there any way to persuade the intel_pstate driver to make an Ivy bridge (i7-3770) > cpu run at a fixed frequency? > It is really difficult to compare code execution times when the cpu clock speed > keeps changing. > I thought I'd managed by setting the 'scaling_max_freq' to 1.7GHz, but even that > doesn't seem to be working now. > It would also be nice to run a little faster than that - but without it 'randomly' > going to 'turbo' frequencies (which it is doing even after I've set no_turbo to 1). > > An alternative would be a variable frequency TSC - might give more consistent values. Have you tried intel_pstate=passive parameter in cmdline? You'll be able to fix the frequency using governors or sysfs. Not sure that this is what you're looking for. I personally also don't know that 'passive' mode will work on Ivy Bridge. Best regards, Alexey