Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1681784pxb; Fri, 6 Nov 2020 16:50:04 -0800 (PST) X-Google-Smtp-Source: ABdhPJwR2eOBKZ169be2j3OjkJfhHT3PIWHR5kjW8W3EgZVOxYgKPk/pjhea2KwZTfdJmiuIJgZX X-Received: by 2002:a50:b5e1:: with SMTP id a88mr4901587ede.5.1604710204428; Fri, 06 Nov 2020 16:50:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604710204; cv=none; d=google.com; s=arc-20160816; b=yJHLXxjSpKSfAT4NayI3b6vEgD3OZxj0JpZ969OoG0ZdwY0w6ePTS4TSetm5YyqmZx zuYAz09ufaZmCoSMtIqlhlYE0aCJtsScFvEYZqS3oqWxseSTn/uAxElOfDGxZvOmP+/O KpRR/fnDTysakHvfcIIJ5E1ffZQ956C1bgl7KGM6Jh1bmI3lpMG6qV6PugbekVG8KH66 naLahN04JMry7R1W+qNK8uh85plkiD12mqn5AgSj1NQUrLiQutU8gxlpba238ItXqXFK gk/hViR6M1UxMNOLkB+hib8sQ77Vl+35NotgiOaAGj75tWfPffY3oa003vZpvm5HJixe a/tg== 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=kizlAGjxJjSwPr3I/kyrovWHgne+CD/s3FGEqnQm6J4=; b=zRltKKcKQVvXFqV9/dspw1IxVvOgHdpt/Zu6q8W6VXyH/LQMf3dMWpByYqV20Yl3DQ 6EqYkZqqdaTPy68sOB6xLuaE73UJ0zthgz4RkKVJvUubmpf9jOTPqV91etJlSD744D1a 7jrGAw1syiSVS6JeR+D43EeHsWvKU/zxUzCzCL9XrNijnn1T6w6/9AUIbH+f5eQk5+18 m1iXeNuzONGUKE9gkM/GBO3HecaGb98f+NDDMO62Vi7Ysoc2LtbOFTMvDMG5FHE33vnH A4fQOol587EmiHXMxfdW1qu0txE0G1KgS+DrDQO9y8dKx+dpD6+5zG/OuRuDVv9k1cde 5jXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OEHKaMRv; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o3si2020660ejn.637.2020.11.06.16.49.40; Fri, 06 Nov 2020 16:50:04 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=OEHKaMRv; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728079AbgKGArM (ORCPT + 99 others); Fri, 6 Nov 2020 19:47:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726447AbgKGArM (ORCPT ); Fri, 6 Nov 2020 19:47:12 -0500 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66B3FC0613CF for ; Fri, 6 Nov 2020 16:47:12 -0800 (PST) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1604710030; 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=kizlAGjxJjSwPr3I/kyrovWHgne+CD/s3FGEqnQm6J4=; b=OEHKaMRvI9qIU4kaUv0mjH5h0zh8RsLfvYvtVBdSL9zO0EE/q4/uHDLpnqnvgK7RKhZ7YM uunB4KvyOQ2vx7TxoitrsW6Jhbdf0ml9cRP63f7YpZgfuwC+5dZIH1hYpr+j9wLSIAXEwP XOwU/dUb1hfxyFuhx5wkarLMQ49lnrbzl8J2tvnVD/8a5VjCNtPs4aZR3ti7P1Isb9SeuH SPIk3XgC6MV21eHTHYWLNN31P6+nlrBeExaq22Rez9a3ZKjAvMpvb6RNNaxZaAGtI1viLK unOpBV5+CokeZkQ7twpgHS+S3jfKisE0NnrGBS+46XggWsb43srx8fEh+ISvkw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1604710030; 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=kizlAGjxJjSwPr3I/kyrovWHgne+CD/s3FGEqnQm6J4=; b=mp704N5XM7+MQHISDg8H9hl57ZSJyNydmNXCv7nwXqC4QLPv12DWupvFeB+jR/8y2wX/zv v9b97YOTyW91knDA== To: Carlos O'Donell , Zack Weinberg , Cyril Hrubis Cc: Dmitry Safonov , Andrei Vagin , GNU C Library , Linux Kernel Mailing List Subject: Re: [Y2038][time namespaces] Question regarding CLOCK_REALTIME support plans in Linux time namespaces In-Reply-To: <7a4d7b14-1f0b-4c40-2bd1-2582d8b71868@redhat.com> References: <20201030110229.43f0773b@jawa> <20201030135816.GA1790@yuki.lan> <87sg9vn40t.fsf@nanos.tec.linutronix.de> <72bbb207-b041-7710-98ad-b08579fe17e4@redhat.com> <87h7qbmqc3.fsf@nanos.tec.linutronix.de> <7bb5837f-1ff6-2b2c-089e-e2441d31ddb2@redhat.com> <87k0v7kwdc.fsf@nanos.tec.linutronix.de> <7a4d7b14-1f0b-4c40-2bd1-2582d8b71868@redhat.com> Date: Sat, 07 Nov 2020 01:47:10 +0100 Message-ID: <87y2jej8mp.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 05 2020 at 12:25, Carlos O'Donell wrote: > On 10/30/20 9:38 PM, Thomas Gleixner wrote: > If kata grows up quickly perhaps this entire problem becomes solved, but until > then I continue to have a testing need for a distinct CLOCK_REALTIME in a > time namespace (and it need not be unconditional, if I have to engage magic > then I'm happy to do that). Conditional, that might be a way to go. Would CONFIG_DEBUG_DISTORTED_CLOCK_REALTIME be a way to go? IOW, something which is clearly in the debug section of the kernel which wont get turned on by distros (*cough*) and comes with a description that any bug reports against it vs. time correctness are going to be ignored. > * Adding CLOCK_REALTIME to the kernel is a lot of work given the expected > guarantees for a local system. Correct. > * CLOCK_REALTIME is an expensive resource to maintain, even more expensive > than other resources where the kernel can balance their usage. Correct. > * On balance it would be better to use vm or vm+containers e.g. kata as a > solution to having CLOCK_REALTIME distinct in the container. That'd be the optimal solution, but the above might be a middle ground. Thanks, tglx