Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp701087imm; Fri, 13 Jul 2018 05:03:04 -0700 (PDT) X-Google-Smtp-Source: AAOMgpey0jQlbBgvToOlmCBCkzX+Is0lj8OGZv23npWWzHRU1eFKC0kpayWtuI6QGMA/Xx+WjKwZ X-Received: by 2002:a62:3b89:: with SMTP id w9-v6mr6828252pfj.80.1531483384480; Fri, 13 Jul 2018 05:03:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531483384; cv=none; d=google.com; s=arc-20160816; b=i/ymue+dpaNScpxDMS6yCP9j5TpD4rzSYutOKY1g/pnarxzWa4UQPcBKqY39o+Yquo ebnNpNPJQQxiXcM8PQy5qR7AiqOHdbCzpO/HvjQRSu/8K4RjWn6GNrcUkcJPTGR5DdFj JdQezf8NG1m8f6R/fxqs9HpFLMfb8kPYTA/WIqv/tUT2Wck2fky2dva6hNiOYV7DmZyQ k4d5ppXVsvk0La7OyrFd6hVVsEywoE+gvp9Q8qaagMdw/pLrGvPVrj6ubj8snvJZmDB3 5Ku4Gqea/teWKNm8Q+w1K7ykrZL9SqqkL6a2CFfqtUXFscJLHuQMrj50MhEdoJpT4OLx 5QNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=OxIL0BItH3vNakC3UJdreAx6tJHzo05kykbYQMnQ8v8=; b=aowEjH5d4o3L1FM5+FUkxOQzWVzxBzx35R+aLhyLhf3qgi43ueQODdR+WrZ7nGopfd mIqBEUX+4kRQh9w0nfXSi6DLuFcyZ2M0SYcTalC5li0SE1XW17JSAPtga82FLVdeSCHd OvWeYf6NQ3AEJ2ZoXf29rnSizUvM9gDYQX5gYmyPMuJE/eLu+kr1fN7bPWbHqWOtuktW 4bo/WdLeVmewxlt0UvsI5OVEad6xcUtkgkvJIEW+8nKA5CzH24KkyYc3o802L3Fy7JSw p29YYoofdXb5xJ7LsfZfYgyIuaVSRSWDQIkdH5rsDhLzM72ACLJAQqeZcjP1F47L2TLV 8e3A== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 97-v6si8600882ple.113.2018.07.13.05.02.33; Fri, 13 Jul 2018 05:03:04 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729768AbeGMMQQ (ORCPT + 99 others); Fri, 13 Jul 2018 08:16:16 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:47088 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727608AbeGMMQQ (ORCPT ); Fri, 13 Jul 2018 08:16:16 -0400 Received: from hsi-kbw-5-158-153-52.hsi19.kabel-badenwuerttemberg.de ([5.158.153.52] helo=[10.100.61.71]) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fdwle-00036d-02; Fri, 13 Jul 2018 14:01:46 +0200 Date: Fri, 13 Jul 2018 14:01:45 +0200 (CEST) From: Anna-Maria Gleixner To: Haris Okanovic cc: linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org, harisokn@gmail.com, bigeasy@linutronix.de, tglx@linutronix.de, julia.cartwright@ni.com, gratian.crisan@ni.com, daniel@bristot.me, efault@gmx.de Subject: Re: [PATCH v5 1/2] timers: Don't wake ktimersoftd on every tick In-Reply-To: <20180628164036.27378-1-haris.okanovic@ni.com> Message-ID: References: <7d21ff63-3dce-b8ea-a0f1-81d53617747d@ni.com> <20180628164036.27378-1-haris.okanovic@ni.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Haris, On Thu, 28 Jun 2018, Haris Okanovic wrote: > Collect expired timers in interrupt context to avoid overhead of waking > ktimersoftd on every scheduler tick. > > This is implemented by storing lists of expired timers in the timer_base > struct, which is updated by the interrupt routing on each tick in > run_local_timers(). TIMER softirq (ktimersoftd) is then raised only when > one or more expired timers are collected. > > Performance impact on a 2core Intel Atom E3825 system: > * reduction in small latency spikes measured by cyclictest > * ~30% fewer context-switches measured by perf > * run_local_timers() execution time increases by 0.2 measured by TSC > I'm also working on timer improvements at the moment. When I fixed all my bugs in my implementation (there is a last horrible one), I'm very interested in integrating your patches into my testing to be able to give you a tested-by. Thanks, Anna-Maria