Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp856502iob; Wed, 4 May 2022 09:17:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKaLgJv8ObIUufpdWTb7N3hzABYjPiQmAdQx7z9jaO1fbF3Bfh5TfWmgkDcZum9C8Ad+op X-Received: by 2002:a05:6402:1385:b0:413:2bc6:4400 with SMTP id b5-20020a056402138500b004132bc64400mr24447713edv.94.1651681061812; Wed, 04 May 2022 09:17:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1651681061; cv=none; d=google.com; s=arc-20160816; b=FTXsE+kybkX8i0ITA96DrDsyszx/5z0YbuhdBdNhB+RalBaXSh/rNbJs338beemMIr MVPuecww1XUHQiIx+6GsxKst+vC29wjQVfeJ0GMhUmII1bCYaACOvrch73rNuK30+PqU Ki7d9XV9Zpwg9FDDVlsXbZFLo9EbEquZllf2ywtGpuvjbmt40SK/w0Bd8qqawLB6wexL 86jKPvL6qmv0PDzpYJTOMUkyBl40TdxgGc1DXcEhAdM0yjoVeoV47HjqyfwtKoSvr0/m ETZDCxTLBtl6gtDXCsv0xJGSIuQ7zs5q3wRwU7qbk52z4souj5w0T/Zr8ty/c4V6fjHW TxoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=QrZdXSiMuCobYvYSpsrOQ7STvgiRilriNe6RKeWUt1A=; b=bZ8nu8m1z7xH+LWV5X3Sygimtb1tw4JMq5tz66Bx6I6aP+Y9mjEABjxzPp6Wn1TmJp KNuwU91BVt3qUzTRiiASzwEKXPip+tb/25/kdxPaSf9Hg4Qrct5V3howtCLi6PSpz17n /lCLYgpqdKGO160YJou5wvhnpI2gRps0f2ozNPqXr/MmVTifsSpQDY7udAw3BjZ8f8v8 Bi44IG9hcD6fX2s8in6HbipCfvcpJkU5DjAxKH6Rp0/TBicOvhNnLI9KBndw+Ucm/nHV wakRJrMPFviis52tj5ajyrDgqYtythPczJD8S+01L/lJSHfeIKWDPA4ymIUEy9wTudQi /pEQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0gERZxvg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WfCTZqDw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h15-20020a056402280f00b00426305b74a9si13967674ede.165.2022.05.04.09.17.17; Wed, 04 May 2022 09:17:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=0gERZxvg; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=WfCTZqDw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350584AbiEDNZG (ORCPT + 99 others); Wed, 4 May 2022 09:25:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1350532AbiEDNYk (ORCPT ); Wed, 4 May 2022 09:24:40 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA8F841339; Wed, 4 May 2022 06:20:05 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1651670403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QrZdXSiMuCobYvYSpsrOQ7STvgiRilriNe6RKeWUt1A=; b=0gERZxvgUmEb2yLnoczRMdHSKmOhphnWGgVmH2y7JNgmMuOPX8POrOioAV4RZc1seuqVV2 tcbOqswbmMLhVLnJNCHUZzwFeEAtfExlbt9KjoBcA5RBvyWR0g3VInUea3O3qaeChQeHNt qmH/hn94pzwew6tbi8qF3L8axaXlrwBiHuPDLwjUtb+5P47expQbOyQ2Zfe6RnpCjU9DTI 6nc1j16YhkdLYg6r8oEYduudDP8RBJUNNVc9WbO8eU16ADAIo3SHIwa7ekCltS+WBPsuSZ VznAYxxAsb2RMnllZDpJp4xfQ6e/Hx7Ox8WG3dQCJ56xP5mTboVvHOYND1dpFA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1651670403; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=QrZdXSiMuCobYvYSpsrOQ7STvgiRilriNe6RKeWUt1A=; b=WfCTZqDwmX6SIcf/TVUfvjWKsChb735lpRJuJ7kNUr0IDUVy/WS8OP8VME/zq0MLg5UfJb RdFxX1xkmtBg8eBw== To: Marcelo Tosatti , Christoph Lameter Cc: linux-kernel@vger.kernel.org, Nitesh Lal , Nicolas Saenz Julienne , Frederic Weisbecker , Juri Lelli , Peter Zijlstra , Alex Belits , Peter Xu , Daniel Bristot de Oliveira , Oscar Shiang , linux-rdma@vger.kernel.org Subject: Re: [patch v12 00/13] extensible prctl task isolation interface and vmstat sync In-Reply-To: References: <20220315153132.717153751@fedora.localdomain> Date: Wed, 04 May 2022 15:20:03 +0200 Message-ID: <87h765juyk.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 03 2022 at 15:57, Marcelo Tosatti wrote: > On Wed, Apr 27, 2022 at 11:19:02AM +0200, Christoph Lameter wrote: >> I could modify busyloop() in ib2roce.c to use the oneshot mode via prctl >> provided by this patch instead of the NOHZ_FULL. >> >> What kind of metric could I be using to show the difference in idleness of >> the quality of the cpu isolation? > > Interruption length and frequencies: > > -------|xxxxx|---------------|xxx|--------- > 5us 3us > > which is what should be reported by oslat ? How is oslat helpful there? That's running artifical workload benchmarks which are not necessarily representing the actual idle->interrupt->idle... timing sequence of the real world usecase. > Inheritance is an attempt to support unmodified binaries like so: > > 1) configure task isolation parameters (eg sync per-CPU vmstat to global > stats on system call returns). > 2) enable inheritance (so that task isolation configuration and > activation states are copied across to child processes). > 3) enable task isolation. > 4) execv(binary, params) What for? If an application has isolation requirements, then the specific requirements are part of the application design and not of some arbitrary wrapper. Can we please focus on the initial problem of providing a sensible isolation mechanism with well defined semantics? Inheritance is an orthogonal problem and there is no reason to have this initially. >> Special handling when the scheduler >> switches a task? If tasks are being switched that requires them to be low >> latency and undisturbed then something went very very wrong with the >> system configuration and the only thing I would suggest is to issue some >> kernel warning that this is not the way one should configure the system. > > Trying to provide mechanisms, not policy? This preemption notifier is not a mechanism, it's simply mindless hackery as I told you already. Thanks, tglx