From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f199.google.com (mail-pf0-f199.google.com [209.85.192.199]) by kanga.kvack.org (Postfix) with ESMTP id 0F81C6B0033 for ; Mon, 16 Oct 2017 08:18:16 -0400 (EDT) Received: by mail-pf0-f199.google.com with SMTP id v2so13257839pfa.10 for ; Mon, 16 Oct 2017 05:18:16 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id k126si1541188pfc.348.2017.10.16.05.18.14 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Oct 2017 05:18:14 -0700 (PDT) Date: Mon, 16 Oct 2017 14:18:08 +0200 From: Michal Hocko Subject: Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support Message-ID: <20171016121808.m4sq3g5nxeyxoymc@dhcp22.suse.cz> References: <20171012143756.p5bv4zx476qkmqhh@dhcp22.suse.cz> <20171013084054.me3kxhgbxzgm2lpr@dhcp22.suse.cz> <20171013152801.nbpk6nluotgbmfrs@dhcp22.suse.cz> <20171013154747.2jv7rtfqyyagiodn@dhcp22.suse.cz> <20171015065856.GC3916@xo-6d-61-c0.localdomain> <20171016081804.yiqck2g4bwlbdqi6@dhcp22.suse.cz> <20171016095447.GA4639@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171016095447.GA4639@amd> Sender: owner-linux-mm@kvack.org List-ID: To: Pavel Machek Cc: Christopher Lameter , Mike Kravetz , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Marek Szyprowski , Michal Nazarewicz , "Aneesh Kumar K . V" , Joonsoo Kim , Guy Shattah , Anshuman Khandual , Laura Abbott , Vlastimil Babka On Mon 16-10-17 11:54:47, Pavel Machek wrote: > On Mon 2017-10-16 10:18:04, Michal Hocko wrote: > > On Sun 15-10-17 08:58:56, Pavel Machek wrote: [...] > > > So you'd suggest using ioctl() for allocating memory? > > > > Why not using standard mmap on the device fd? > > No, sorry, that's something very different work, right? Lets say I > have a disk, and I'd like to write to it, using continguous memory for > performance. > > So I mmap(MAP_CONTIG) 1GB working of working memory, prefer some data > structures there, maybe recieve from network, then decide to write > some and not write some other. Why would you want this? -- Michal Hocko SUSE Labs -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org