Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3145647imu; Mon, 19 Nov 2018 11:20:00 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wynw9jHox3XZP+u9CmDR1spuxdsuyCrMqxEgScegXu2/JovIR6IJLwZCgCp6+QMQYU4qMG X-Received: by 2002:a17:902:8484:: with SMTP id c4mr10871049plo.59.1542655200286; Mon, 19 Nov 2018 11:20:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542655200; cv=none; d=google.com; s=arc-20160816; b=KtDD9A7jZUZ5bhrUr9+8COgl3gaPKrIAhNrFROwUdrRt777HoTvhYuEbL8Tsvi7Ybb xZzFfvnzg5HMktz14jx7nFoF18gZ/tj94qfQEPWML/pHToKU9eg1vkobYUWiAR/Pi28V zM/QVPHomTj894ee6VaO01niiv8pZA1BD3a2BbZsFGTlbWDVxucC49kphtBhP3HX8SYy 54dUlaAouoNH96Bkq0E6F4ZWWsuBJK8tq7aUlqELQaMJPToLgQeElLw4Kgs1xqCGJUXn 6AbXMhkbU8dI2qVgzzIshmZwmNLa11isN59d115iIFFoQQHk92FZ3h4XZpBQfZk+PLRv t4aA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:feedback-id:mime-version:user-agent :references:message-id:in-reply-to:subject:cc:to:from:date :dkim-signature; bh=euK8lUwss6Q7x+HARj0Hw/VPhD6Mv4VnWwBmEnVdXcM=; b=L31wFOlDF97lDikyrQQl8zLuhTVZX47Ct5hrEZUH/LQcpRR5wPDzleF4E4iwPUGkOA lzRntIMlnxjadmaW35KLz5NhQkrGhEvVabWEsAezDf4zlwN0yogYhzDWYfGcyx9AU2w8 gLP69mYh/NeUtTxxBV0GwIxjh3pxgVZMuUT82QQerSBuRAbCgTfd8u0weeRcgecdAxW7 P3BInjrwR8ozw7GoNzCA8HlyjuSd+3Nn6qT//dBKA31IdiPKPXpR3ARUJcvN/epK3uzj wLz4Ew8YKLhodOaWK8akBetAjM2Rd/ybG5ZeyMD+V/IzYRcqFkqYXf9gCFM95xbV/4FK PlvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=cYDpWsvI; 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 v123-v6si43950335pfb.65.2018.11.19.11.19.44; Mon, 19 Nov 2018 11:20:00 -0800 (PST) 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; dkim=pass header.i=@amazonses.com header.s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug header.b=cYDpWsvI; 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 S1727646AbeKTFoF (ORCPT + 99 others); Tue, 20 Nov 2018 00:44:05 -0500 Received: from a9-99.smtp-out.amazonses.com ([54.240.9.99]:47942 "EHLO a9-99.smtp-out.amazonses.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725987AbeKTFoF (ORCPT ); Tue, 20 Nov 2018 00:44:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=ug7nbtf4gccmlpwj322ax3p6ow6yfsug; d=amazonses.com; t=1542655144; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:MIME-Version:Content-Type:Feedback-ID; bh=qRQrNnesmmbz4mj5W8/w3iEhMIgEJfVN23yLPbGC3zE=; b=cYDpWsvI69YoDSGXKAboo3pyiuwaZYfIeAc4HkodWYp9TcnP/Y3rbQfWeAJvqe39 7degP7/ARUn3xks8+OaAKXPDHwfk2KNQSSUrWdm6dgIIqs/24jDmRVM8kb7LgvRBmlk RlkhfoamoQQUK6kaRH/5cgmoO3g/FS664p8V070c= Date: Mon, 19 Nov 2018 19:19:04 +0000 From: Christopher Lameter X-X-Sender: cl@nuc-kabylake To: Jerome Glisse cc: Jason Gunthorpe , Leon Romanovsky , Kenneth Lee , Tim Sell , linux-doc@vger.kernel.org, Alexander Shishkin , Zaibo Xu , zhangfei.gao@foxmail.com, linuxarm@huawei.com, haojian.zhuang@linaro.org, Hao Fang , Gavin Schenk , RDMA mailing list , Zhou Wang , Doug Ledford , =?ISO-8859-15?Q?Uwe_Kleine-K=F6nig?= , David Kershner , Kenneth Lee , Johan Hovold , Cyrille Pitchen , Sagar Dharia , Jens Axboe , guodong.xu@linaro.org, linux-netdev , Randy Dunlap , linux-kernel@vger.kernel.org, Vinod Koul , linux-crypto@vger.kernel.org, Philippe Ombredanne , Sanyog Kale , "David S. Miller" , linux-accelerators@lists.ozlabs.org Subject: Re: [RFCv3 PATCH 1/6] uacce: Add documents for WarpDrive/uacce In-Reply-To: <20181119184215.GB4593@redhat.com> Message-ID: <010001672d69716a-743e5098-eb2f-41ca-bf98-6e17eaaba00f-000000@email.amazonses.com> References: <20181113002354.GO3695@mtr-leonro.mtl.com> <95310df4-b32c-42f0-c750-3ad5eb89b3dd@gmail.com> <20181114160017.GI3759@mtr-leonro.mtl.com> <20181115085109.GD157308@Turing-Arch-b> <20181115145455.GN3759@mtr-leonro.mtl.com> <20181119091405.GE157308@Turing-Arch-b> <20181119091910.GF157308@Turing-Arch-b> <20181119104801.GF8268@mtr-leonro.mtl.com> <20181119164853.GA4593@redhat.com> <20181119182752.GA4890@ziepe.ca> <20181119184215.GB4593@redhat.com> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-SES-Outgoing: 2018.11.19-54.240.9.99 Feedback-ID: 1.us-east-1.fQZZZ0Xtj2+TD7V5apTT/NrT6QKuPgzCT/IC7XYgDKI=:AmazonSES Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 19 Nov 2018, Jerome Glisse wrote: > > IIRC this is solved in IB by automatically calling > > madvise(MADV_DONTFORK) before creating the MR. > > > > MADV_DONTFORK > > .. This is useful to prevent copy-on-write semantics from changing the > > physical location of a page if the parent writes to it after a > > fork(2) .. > > This would work around the issue but this is not transparent ie > range marked with DONTFORK no longer behave as expected from the > application point of view. Why would anyone expect a range registered via MR behave as normal? Device I/O is going on into that range. Memory is already special. > Also it relies on userspace doing the right thing (which is not > something i usualy trust :)). This has been established practice for 15 or so years in a couple of use cases. Again user space already has to be doing special things in order to handle RDMA is that area.