Received: by 10.223.185.116 with SMTP id b49csp6466646wrg; Wed, 28 Feb 2018 09:51:52 -0800 (PST) X-Google-Smtp-Source: AH8x225HLkn5O/g0CbEqkCMqjnu9AqYWSOzkUxeWOhbvciLe3tmDvmCumO3On6px7ORK/xWDhQCz X-Received: by 2002:a17:902:8bc2:: with SMTP id r2-v6mr18699178plo.213.1519840312496; Wed, 28 Feb 2018 09:51:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519840312; cv=none; d=google.com; s=arc-20160816; b=W8Y0z9mut+11c5mZYqLFVQVJRSFR9cCIbc6jWRMBAwvgF1X69VuRHoJmgLaIW0SLbH fBrpLiomujzjGI1S12j1A7e5pdAOeeUxhY4VKlJiDgQOARADWjOf3dR9LUwHKGcjRbWL nDTt1hHGRMknx/BHf9VU+/JX6Z8wtlHyH0Tajqw96tQd+EwW7mRvWDoUVbCcpyRdbY9o uvwn4fR7MkMFlGnbzDPOGiY4zftk2eIACfd0LQVT4QRpBkL/C2+njSqugqUx61DHkNMb Nhx9Fs0z+haSLpdlCMp/+ci5vETxQgffqIBwZwthGAZrrrfBB++skh7/67ZqTXUp1pts 1XRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature:arc-authentication-results; bh=B84sfxaZoVFX+9utguQ2qBWVGYiN/yFJvEBQPo1JSzw=; b=Ybp50qxQx+wZoyoL/XpwEUi7RoDBQ/8YpW6ubWWZQRicSO+Vq0k3RQozyEYw64mdIY 3hCUaCEeZLngK3kO14Tmm+hhQT41akJFney0yn693/KnXWd8TAUOrZPNuMquhTFAaUFi pcog2jFKqGwNZVAdq+/ZDF7ojk9LXor2bcIeqM098vUqHt6V89nqfyWCMTqZgqG5fl6y iuJfFHLJx6hYVjOMkBASKG047RNMuhHROH8mEy9kinc8+V4DXUYDjXEuZuFclXcYqB0S gteOT+e+HfCRhsuhpwiDlFmqAjNheTu+XTnnhe9dCRMg0PAJWD7E6B0i7Na+/ZzONMj7 lEvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@virtuozzo.com header.s=selector1 header.b=UmrElVzo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 62-v6si1532329ple.491.2018.02.28.09.51.37; Wed, 28 Feb 2018 09:51:52 -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=@virtuozzo.com header.s=selector1 header.b=UmrElVzo; 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=pass (p=NONE sp=NONE dis=NONE) header.from=virtuozzo.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934153AbeB1Ru5 (ORCPT + 99 others); Wed, 28 Feb 2018 12:50:57 -0500 Received: from mail-eopbgr40110.outbound.protection.outlook.com ([40.107.4.110]:51470 "EHLO EUR03-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932464AbeB1Ruv (ORCPT ); Wed, 28 Feb 2018 12:50:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=B84sfxaZoVFX+9utguQ2qBWVGYiN/yFJvEBQPo1JSzw=; b=UmrElVzoesb8+1QE8B80YTh56SZbwzkd45H9rvhkVt92TwmxnLXzxBe6jz7cIqt9TwgSaaH/TpLIMohpEwBQ9aay21FYZI39bmm1IIj52PyA81b1hrGq2b+5/ekadLardh2TP4M1JJmzh8J2wAu8eymAs+ax9gDfm0mS1x6CINI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=avagin@virtuozzo.com; Received: from outlook.office365.com (4.16.175.162) by AM4PR08MB0739.eurprd08.prod.outlook.com (2a01:111:e400:59ed::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.527.15; Wed, 28 Feb 2018 17:50:42 +0000 Date: Wed, 28 Feb 2018 09:50:36 -0800 From: Andrei Vagin To: Pavel Emelyanov Cc: Andrew Morton , Mike Rapoport , Alexander Viro , linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, criu@openvz.org, gdb@sourceware.org, devel@lists.open-mpi.org, rr-dev@mozilla.org, Arnd Bergmann , Michael Kerrisk , Thomas Gleixner , Josh Triplett , Jann Horn , Greg KH , Andrei Vagin Subject: Re: [PATCH v5 0/4] vm: add a syscall to map a process memory into a pipe Message-ID: <20180228175035.GA20686@outlook.office365.com> References: <1515479453-14672-1-git-send-email-rppt@linux.vnet.ibm.com> <20180220164406.3ec34509376f16841dc66e34@linux-foundation.org> <3122ec5a-7f73-f6b4-33ea-8c10ef32e5b0@virtuozzo.com> <20180227021818.GA31386@altlinux.org> <627ac4f8-a52d-0582-0c9e-e70ea667fa7e@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <627ac4f8-a52d-0582-0c9e-e70ea667fa7e@virtuozzo.com> User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [4.16.175.162] X-ClientProxiedBy: HE1PR1001CA0005.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:3:f7::15) To AM4PR08MB0739.eurprd08.prod.outlook.com (2a01:111:e400:59ed::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e5437d48-1d10-499d-f99b-08d57ed3cc9b X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652020)(5600026)(4604075)(2017052603307)(7153060)(7193020);SRVR:AM4PR08MB0739; X-Microsoft-Exchange-Diagnostics: 1;AM4PR08MB0739;3:/1L9iSP5T0LamtTRDSB8JeocE0cZs8xoxjME2I/YZKb1roIXJf4mYztzw6fyWMIz7FdZSQDDY88CIbGrCUnFGhfSnbTHVIVLKYPKsqisxjTWjlzAcGLt8jLnZLSE7SkWAFaadNUxTtvdDC3YDFuZQuaJSgZdZmkfFJJ3jMJkjma92woq7yNU18LswsNIqH/EJGvqFvNTppOpRTw8nCLp1jvgCziYAj4JYI6BWunN+m64LSjK8wmBn2VecCJOF5be;25:M+lw2U+wtThZi5u0k++6ES4JdmQe+iaARliq6teQXUG7AqpV0QwFEoNpxW4NEsNaqgr8YOmAVOI90VpCNnOfqfgnwuPXZ57gP3a8m89SkJz0O3Bo07xhJKChzEy0mZe/XJrBihx9L4FWmigVYpWaYKYqsRxJqyjO1bslGLHDtrMF+mS+i8hhN+Ytgz4GInLhXyMi5Wssg/49Iymq0XIgX/u4jwaxXivWoHJgXVrIxjAmEHa8NrkdJEmr0i359MBMHsaZSDVye70yGI+wU81DIK4iN2gj3Dh9Vt/F1lQRryXPdpe9kjcAYiX/+clyG8a68lRmd1mhX4Q2XxkvVLyr8g==;31:diT+tW4Vk4CBBba3cm9c5m1zNewE8xzPcf4+w7f7ucC8PNWsVoDh22hwByOaqzUB3c1/p5e+S4cvAmY5Mo5QujCV5V6ogkNFcoI4V3dGxJCviJnXKBE91ZNPBYKOAbbngg8MOSY0fglws2m8LgQVFdzzB1QPQ6uikj5yBRbtYsp7XQRt82UvbxWZSlhsQDzMjzb1Ln1QyLqjey0nZCOZxTf0E261xiJ5wPOtEWAJxoQ= X-MS-TrafficTypeDiagnostic: AM4PR08MB0739: X-Microsoft-Exchange-Diagnostics: 1;AM4PR08MB0739;20:FQ8NFxP0ymbemlasP/hKZjnNzdTo7oEMrZeNk7s3l8XhBDBpxht8QquZZvI6RMzrK1lNTwxwtMpp58HBcTK/ALEn7RbLvjRb8QqMltopFqme8YaeqOo7dOvSBqiO+T7oYrwhW3slW8jmAEnWER7RyhK+zka6cC9GFLz9HnweL9gnYhMpw/Dm3r0lnhP+M10iyOD0fKd4Ll/uq7XBCqg5QRDDll1Cnt+1cC/cX7forGh+PJqGvBhSXiOjD8yT/DlsYD7HnxLdevn8F2GrEsDfXNyxIuSKwrwx/j4gOvyyFq8kXKxDmDj6u3wl0O8pcPB0MxQGIIXpSYueO+6GZEBxsf7h7u2e1P92l9MP2M3Ph+YLEEB2RCrnEUyiBUtW0ZMSJ0ODlaVk1QtzFm5sVqRVz4hC2VKulV6AhsU+81dgvaiFYsY0tsRVmPNuMjlekGOcnIrqDGRGEWiWFligxLuwO8nqGkvsymhZDgQevH3mBo7eT2rAmh9/H0H43UTDhEdh;4:2PWYamVtHWduTllNfxNm2Ra3gyVwwjL1NDrgY5KbSMmLfA+bZn+qrRocaSL+jgwIuWefxbyhZVc1WfNwqJN7LtADrPGvVSLrShuPuv8m49US6GrMjpZT/7RStImcV5RATeTf73kzDV7+ewrU9WyqDZr/29Fmk73kODXYM910DCYmfXyBly/fD2NL5cpVqRgRqJ1A540/Boo00R+fkXf+SjjS+qM2/7jXfHwjQyz7Mtk+2rUUJPGwRAhmKZNrUwtixGZYkUzX43QhgutRbnh7cqjLRZJcfj3UsJXRU5hd5TIjIucqL1RmlZc7H7WYwDnT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(104084551191319); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040501)(2401047)(8121501046)(5005006)(3002001)(93006095)(93001095)(10201501046)(3231220)(944501217)(52105095)(6041288)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(6072148)(201708071742011);SRVR:AM4PR08MB0739;BCL:0;PCL:0;RULEID:;SRVR:AM4PR08MB0739; X-Forefront-PRVS: 0597911EE1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(366004)(39380400002)(39850400004)(396003)(346002)(376002)(189003)(199004)(68736007)(2950100002)(16586007)(50466002)(39060400002)(6862004)(5890100001)(229853002)(54906003)(105586002)(6246003)(23686003)(37156001)(25786009)(97736004)(58126008)(4326008)(2906002)(107886003)(93886005)(55016002)(386003)(69596002)(76176011)(8936002)(8676002)(66066001)(3846002)(7696005)(53546011)(6506007)(26005)(1076002)(81156014)(33656002)(52116002)(7736002)(6666003)(81166006)(53416004)(47776003)(305945005)(6636002)(9686003)(7416002)(53936002)(316002)(478600001)(86362001)(106356001)(5660300001)(16526019)(6116002)(18370500001);DIR:OUT;SFP:1102;SCL:1;SRVR:AM4PR08MB0739;H:outlook.office365.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: virtuozzo.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?koi8-r?Q?1;AM4PR08MB0739;23:zqtnJCVmEjGan8zhaNz6VWMlH93/Hiamoz2S32T8DCq?= =?koi8-r?Q?RCBxvs5NJoGe8OYN5aQ474mDTj6zMrlB1Etx8A8kQDUKBWlN22d6DS4iA6Uq+f?= =?koi8-r?Q?33yFf/fEheMc08OzkF9Pn6rYVKSqgHUWgOKgxPA+C/mi/6vmaMNG1GpfLz5OYx?= =?koi8-r?Q?O/642sd8L3txwpsekvuAyoWhqH7I6fugvroJ4FwDOLst1hWu++rFMqq0xul2JW?= =?koi8-r?Q?Pe2NNkukKmQ2mhUxcTd76Vq0bifUAzX9hhhM93IYiDtGICz50nztHX4x4mXJAz?= =?koi8-r?Q?lUw9kObQQeGaRFjfrLhoiRJasDeGbddYqjuAZ6nFKc6LvKbiyzMuZI3nFkrALJ?= =?koi8-r?Q?R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NH9klL0b/EF2SzoAb3sYKmcdgiUoyCFuCUHW6EBTB8qcmx1n/kOQ4x5COymTxD1Q/CbaneQeD5ggYYkBoffrkQ97Pe3W10aKOvlXTZUiAgjsFVU4CbpoRYIKCIoSnm++C SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;AM4PR08MB0739;20:gNfrPDNJ8qZ687HQL5o/jH/mWMxjRF7UN/NzETDn5Rz7YLX0cb5yZ2sgKBd3mJfErR+l2ag4CF34LhDhdL0KmLEfR4Y5HQp9E+5MgYgOWV8bDAPHc/cQTy2ZHehO11Lo+fPsyDHR16Wlb/t6DljBG6sHOe/n4u3l/gEg4V+tDyM= X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Feb 2018 17:50:42.3921 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e5437d48-1d10-499d-f99b-08d57ed3cc9b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR08MB0739 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 28, 2018 at 10:12:55AM +0300, Pavel Emelyanov wrote: > On 02/27/2018 05:18 AM, Dmitry V. Levin wrote: > > On Mon, Feb 26, 2018 at 12:02:25PM +0300, Pavel Emelyanov wrote: > >> On 02/21/2018 03:44 AM, Andrew Morton wrote: > >>> On Tue, 9 Jan 2018 08:30:49 +0200 Mike Rapoport wrote: > >>> > >>>> This patches introduces new process_vmsplice system call that combines > >>>> functionality of process_vm_read and vmsplice. > >>> > >>> All seems fairly strightforward. The big question is: do we know that > >>> people will actually use this, and get sufficient value from it to > >>> justify its addition? > >> > >> Yes, that's what bothers us a lot too :) I've tried to start with finding out if anyone > >> used the sys_read/write_process_vm() calls, but failed :( Does anybody know how popular > >> these syscalls are? > > > > Well, process_vm_readv itself is quite popular, it's used by debuggers nowadays, > > see e.g. > > $ strace -qq -esignal=none -eprocess_vm_readv strace -qq -o/dev/null cat /dev/null > > I see. Well, yes, this use-case will not benefit much from remote splice. How about more > interactive debug by, say, gdb? It may attach, then splice all the memory, then analyze > the victim code/data w/o copying it to its address space? Hmm, in this case, you probably will want to be able to map pipe pages into memory. > > -- Pavel