From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f70.google.com (mail-pg0-f70.google.com [74.125.83.70]) by kanga.kvack.org (Postfix) with ESMTP id 8D60D6B0253 for ; Mon, 16 Oct 2017 13:34:07 -0400 (EDT) Received: by mail-pg0-f70.google.com with SMTP id m18so7611650pgd.13 for ; Mon, 16 Oct 2017 10:34:07 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id v47si4326574pgn.391.2017.10.16.10.34.06 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 16 Oct 2017 10:34:06 -0700 (PDT) Date: Mon, 16 Oct 2017 19:33:58 +0200 From: Michal Hocko Subject: Re: [RFC PATCH 3/3] mm/map_contig: Add mmap(MAP_CONTIG) support Message-ID: <20171016173358.t3twty3wttbutcro@dhcp22.suse.cz> References: <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> <20171016121808.m4sq3g5nxeyxoymc@dhcp22.suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: owner-linux-mm@kvack.org List-ID: To: Christopher Lameter Cc: Pavel Machek , 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:02:24, Cristopher Lameter wrote: > On Mon, 16 Oct 2017, Michal Hocko wrote: > > > > 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? > > Because we are receiving a 1GB block of data and then wan to write it to > disk. Maybe we want to modify things a bit and may not write all that we > received. And why do you need that in a single contiguous numbers? If performance, do you have any numbers that would clearly tell the difference? -- 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