Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1291799

Re: [RFCv6 PATCH 07/10] sched/fair: jump to max OPP when crossing UP threshold

Path csiph.com!au2pb.net!2.us.feeder.erje.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.CARNet.hr!news.spin.it!bofh.it!news.nic.it!robomod
From Steve Muckle <steve.muckle@linaro.org>
Newsgroups linux.kernel
Subject Re: [RFCv6 PATCH 07/10] sched/fair: jump to max OPP when crossing UP threshold
Date Tue, 15 Dec 2015 03:50:01 +0100
Message-ID <qFNQB-6ms-5@gated-at.bofh.it> (permalink)
References <qDGqd-4EB-3@gated-at.bofh.it> <qDGqd-4EB-13@gated-at.bofh.it> <qEtTY-3va-21@gated-at.bofh.it>
X-Original-To Juri Lelli <Juri.Lelli@arm.com>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=+htnSifH05YILqwX0FpwoQ1bxTvljzim8a07VNuYrYI=; b=WuBavZv0j+MQuo55tZEgo5ZmJQXqe1noh8Bajxqfeg8xE5awHRkCZZXHehNjq7OKFc ofXt1SVSYQ7xW/m0qOSaohKfQBejtDiV88gowMqXGU349toEUZVfjkP81+GbZYn3VFNp BZxDyMXCtf4ugwaWDMePVaP8WbUON/wCtIXK8=
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=+htnSifH05YILqwX0FpwoQ1bxTvljzim8a07VNuYrYI=; b=NRqoPNGM+TsF08+KWW3liR+2Ljze45jOGnWwUQ9LE9nIo6peB2h7H6EaTiSjdvpw5e AXF1oQ2B8S9HY/Pd1aE/XLiOsO6hNqxP1NDRUZkpbyLnU/lBSwbo98H05rD9+uwpJOwW rfTNx7VTippY50QgLTkL/CkZ6cli6UsF3HMboYznLz0rU69EgRfbbwlQq/6TzP518f/N 1DLvbl/ifrl34MzyIKprGEmUG9grvqEzenSVR/qp9fjSInmFupqqdAyjlVNs/qT9UjoA 56BUKQuDy9Ul8gxOmMXWgbQCrk1AIo8V1twGSPUqCdAw2fsnJBdnXCqgre3l0f3IVTnY P6wg==
X-Gm-Message-State ALoCoQnUwayN0jg4E/wkUkFuX3BsKxWygkOJ+lsrOKl0rvDxQY9O5DnN/6SiI3dRBQCTO5z2BIN5VapnQgvMr4zlTgfE6iw3pg==
X-Received by 10.98.13.22 with SMTP id v22mr40660969pfi.125.1450147330797; Mon, 14 Dec 2015 18:42:10 -0800 (PST)
X-Enigmail-Draft-Status N1110
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 30
Organization linux.* mail to news gateway
X-Original-Cc Peter Zijlstra <peterz@infradead.org>, Ingo Molnar <mingo@redhat.com>, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Vincent Guittot <vincent.guittot@linaro.org>, Morten Rasmussen <morten.rasmussen@arm.com>, Dietmar Eggemann <dietmar.eggemann@arm.com>, Patrick Bellasi <patrick.bellasi@arm.com>, Michael Turquette <mturquette@baylibre.com>
X-Original-Date Mon, 14 Dec 2015 18:42:08 -0800
X-Original-Message-ID <566F7E00.70505@linaro.org>
X-Original-References <1449641971-20827-1-git-send-email-smuckle@linaro.org> <1449641971-20827-8-git-send-email-smuckle@linaro.org> <20151211111250.GA8070@e106622-lin>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1291799

Show key headers only | View raw


Hi Juri,

On 12/11/2015 03:12 AM, Juri Lelli wrote:
>> @@ -2895,6 +2934,8 @@ void scheduler_tick(void)
>> >  	trigger_load_balance(rq);
>> >  #endif
>> >  	rq_last_tick_reset(rq);
>> > +
>> > +	sched_freq_tick(cpu);
> We are not holding rq->lock anymore at this points, and this collides
> with comment in update_cpu_capacity_request(). Can't you just move this
> up before raw_spin_unlock(&rq->lock)?

My thinking in putting it last was to have it after the possible
periodic load balance, so that we don't initiate a frequency change only
to have to modify the frequency again immediately afterwards.

Thinking more about it, the way we currently have the policy defined
there's no concern with having it earlier since sched_freq_tick only
causes the frequency to go to fmax (or do nothing). If we modify the
policy so that sched_freq_tick can cause arbitrary frequency changes
then I think this may need more thought.

thanks,
Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [RFCv6 PATCH 07/10] sched/fair: jump to max OPP when crossing UP  threshold Steve Muckle <steve.muckle@linaro.org> - 2015-12-15 03:50 +0100

csiph-web