Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1982417imm; Thu, 14 Jun 2018 07:01:53 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLEni2oGtbq6GC9c7nxRlMnXaUiF+bVUanFeUoPi+e60MwP7cCs4fWJ/yGsemo8Nmqf3bcT X-Received: by 2002:a17:902:5a4c:: with SMTP id f12-v6mr3244183plm.85.1528984913534; Thu, 14 Jun 2018 07:01:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528984913; cv=none; d=google.com; s=arc-20160816; b=G3I+Cu8ny0sCAs0oEbAGsU642KXRdMyWKaUCWAD4NEmZz/z8Y0rBjIHYtuim+SSjn+ Td320/HXhEHD1/MSgl8UawBbgOwPWVQX7sLzghIvQEoq+VQeWPv9rhVcrQYrVZS4M7P8 YkOqo0a/i5DKR9xEx+LhJqukHiU/NPTrqjat4qgsZ7RDkxaiB7cdpBpDciaXx4ttSmha H+JM2AaMwEQyYDxH6CzwUntqkYCQ7cuu82GSDE0TRX7kPZ1xwUvZTzZOnuZS+CmqCcnr omkM+1F5yE630p8TKiDmbFSexDDr20v3U9GcN5oCE1r/meiadNAXjrYO9v79ymYuoZaG wcZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=5hLFrdxAQ1UV9Gr0+ZIsG4MNVAjti6zBXVSdspDKvus=; b=d1qOZg5il12QNgAnERxjLJ8DMKntYcAusplUAOIxDr+d/pjQpoov1GkA47XnGAFj1e Up36B9tXRQL+WEh6lsRHeIJnL0k0Sq2uMU7d4pr/MeGPzaf4NqfqhsfNIPp0lXWVvZvA CBKwEqjU8PgRQ/8eGZAliPMq7R3TOoXUHmqQeaxbdHAKG4Ady8SN30gWGmQGu0VvCimr WvdNUMe8ntxOvMZ6eAmuWL1NnMopP9nJ5pr7RTU1IS3zVk7Ph1DusMA7ePw068GVeZPb Ch/jGiXDQXDw2lsxh1UU3f1XG3+qq/d5HrKyZGfpBCyCpN5BQOQRtXfX9wPl9dK/fQIp 0BLA== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k2-v6si4433396pgc.321.2018.06.14.07.01.39; Thu, 14 Jun 2018 07:01:53 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964837AbeFNOAh (ORCPT + 99 others); Thu, 14 Jun 2018 10:00:37 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:54996 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754885AbeFNOAh (ORCPT ); Thu, 14 Jun 2018 10:00:37 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 7CD00402382A; Thu, 14 Jun 2018 14:00:36 +0000 (UTC) Received: from oldenburg.str.redhat.com (ovpn-117-97.ams2.redhat.com [10.36.117.97]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F10091117624; Thu, 14 Jun 2018 14:00:32 +0000 (UTC) Subject: Re: Restartable Sequences system call merged into Linux To: Pavel Machek , Mathieu Desnoyers Cc: carlos , Peter Zijlstra , "Paul E. McKenney" , Boqun Feng , Thomas Gleixner , linux-kernel , libc-alpha References: <1084280721.10859.1528746558696.JavaMail.zimbra@efficios.com> <31fc101a-295b-067b-1a82-7e9e509fc92f@redhat.com> <305409897.10888.1528747473727.JavaMail.zimbra@efficios.com> <091061df-3482-8762-30e4-feaf3417be11@redhat.com> <417742741.11550.1528821084084.JavaMail.zimbra@efficios.com> <20180614122759.GB8798@amd> <894222691.12973.1528981314012.JavaMail.zimbra@efficios.com> <20180614132557.GA15201@amd> <956816108.13001.1528983496098.JavaMail.zimbra@efficios.com> <20180614134959.GA4084@amd> From: Florian Weimer Message-ID: <48a0d905-2568-51b8-80c9-a20ecaa25f9b@redhat.com> Date: Thu, 14 Jun 2018 16:00:32 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180614134959.GA4084@amd> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 14 Jun 2018 14:00:36 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Thu, 14 Jun 2018 14:00:36 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'fweimer@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 06/14/2018 03:49 PM, Pavel Machek wrote: > Hi! > >>>> - rseq_preempt(): on preemption, the scheduler sets the TIF_NOTIFY_RESUME thread >>>> flag, so rseq_handle_notify_resume() can check whether it's in a rseq critical >>>> section when returning to user-space, >>>> - rseq_signal_deliver(): on signal delivery, rseq_handle_notify_resume() checks >>>> whether it's in a rseq critical section, >>>> - rseq_migrate: on migration, the scheduler sets TIF_NOTIFY_RESUME as well, >>> >>> Yes, this is not likely to be noticeable. >>> >>> But the proposal wanted to add a syscall to thread creation, right? >>> And I believe that may be noticeable. >> >> Fair point! Do we have a standard benchmark that would stress this ? > > Web server performance benchmarks basically test clone() performance > in many cases. Isn't that fork? I expect that the rseq arena is inherited on fork and fork-type clone, otherwise it's going to be painful. Thanks, Florian