From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by dpdk.org (Postfix) with ESMTP id 35B734C8F for ; Mon, 5 Mar 2018 11:16:08 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2018 02:16:06 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,426,1515484800"; d="scan'208";a="208914820" Received: from dhunt5-mobl2.ger.corp.intel.com (HELO [10.237.221.65]) ([10.237.221.65]) by fmsmga006.fm.intel.com with ESMTP; 05 Mar 2018 02:16:05 -0800 To: longtb5@viettel.com.vn, dev@dpdk.org References: <000201d3b1f7$4b622cc0$e2268640$@viettel.com.vn> <000901d3b1f7$8b2f55d0$a18e0170$@viettel.com.vn> From: "Hunt, David" Message-ID: Date: Mon, 5 Mar 2018 10:16:24 +0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <000901d3b1f7$8b2f55d0$a18e0170$@viettel.com.vn> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Subject: Re: [dpdk-dev] librte_power w/ intel_pstate cpufreq governor X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Mar 2018 10:16:08 -0000 Hi BL, I have always used "intel_pstate=disable" in my kernel parameters at boot so as to disable the intel_pstate driver, and force the kernel to use the acpi-cpufreq driver: # cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_driver acpi-cpufreq This then gives me the following options for the governor: ['conservative', 'ondemand', 'userspace', 'powersave', 'performance', 'schedutil'] Because DPDK threads typically poll, they appear as 100% busy to the p_state driver, so if you want to be able to change core frequency down (as in l3fwd-power), you need to use the acpi-cpufreq driver. I had a read through the docs just now, and this does not seem to be mentioned, so I'll do up a patch to give some information on the correct kernel parameters to use when using the power library. Regards, Dave. On 2/3/2018 7:20 AM, longtb5@viettel.com.vn wrote: > Forgot to link the original thread. > > http://dpdk.org/ml/archives/dev/2016-January/030930.html > > -BL > >> -----Original Message----- >> From: longtb5@viettel.com.vn [mailto:longtb5@viettel.com.vn] >> Sent: Friday, March 2, 2018 2:19 PM >> To: dev@dpdk.org >> Cc: david.hunt@intel.com; mhall@mhcomputing.net; helin.zhang@intel.com; >> longtb5@viettel.com.vn >> Subject: librte_power w/ intel_pstate cpufreq governor >> >> Hi everybody, >> >> I know this thread was from over 2 years ago but I ran into the same > problem >> with l3fwd-power today. >> >> Any updates on this? >> >> -BL >