From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pg0-f71.google.com (mail-pg0-f71.google.com [74.125.83.71]) by kanga.kvack.org (Postfix) with ESMTP id ADA186B025F for ; Mon, 23 Oct 2017 15:35:41 -0400 (EDT) Received: by mail-pg0-f71.google.com with SMTP id w24so12443984pgm.7 for ; Mon, 23 Oct 2017 12:35:41 -0700 (PDT) Received: from mx2.suse.de (mx2.suse.de. [195.135.220.15]) by mx.google.com with ESMTPS id i133si5315133pgd.72.2017.10.23.12.35.40 for (version=TLS1 cipher=AES128-SHA bits=128/128); Mon, 23 Oct 2017 12:35:40 -0700 (PDT) Date: Mon, 23 Oct 2017 21:35:36 +0200 From: Michal Hocko Subject: Re: [PATCH] mm: fix movable_node kernel command-line Message-ID: <20171023193536.c7yptc4tpesa4ffl@dhcp22.suse.cz> References: <20171023125213.whdiev6bjxr72gow@dhcp22.suse.cz> <20171023160314.GA11853@linux.intel.com> <20171023161554.zltjcls34kr4234m@dhcp22.suse.cz> <20171023171435.GA12025@linux.intel.com> <20171023172008.kr6dzpe63nfpgps7@dhcp22.suse.cz> <20171023173544.GA12198@linux.intel.com> <20171023174905.ap4uz6puggeqnz3s@dhcp22.suse.cz> <20171023184852.GB12198@linux.intel.com> <20171023190459.odyu26rqhuja4trj@dhcp22.suse.cz> <20171023192524.GC12198@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171023192524.GC12198@linux.intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: Sharath Kumar Bhat Cc: linux-mm@kvack.org, akpm@linux-foundation.org On Mon 23-10-17 12:25:24, Sharath Kumar Bhat wrote: > On Mon, Oct 23, 2017 at 09:04:59PM +0200, Michal Hocko wrote: > > On Mon 23-10-17 11:48:52, Sharath Kumar Bhat wrote: > > > On Mon, Oct 23, 2017 at 07:49:05PM +0200, Michal Hocko wrote: > > [...] > > > > I am really confused about your usecase then. Why do you want to make > > > > non-hotplugable memory to be movable then? > > > > > > Lets say, > > > > > > The required total memory in the system which can be dynamically > > > offlined/onlined, T = M + N > > > > > > M = movable memory in non-hotpluggable memory (say DDR in the example) > > > > Why do you need this memory to be on/offlineable if you cannot hotplug > > it? > > We do not need the memory to be physcially hot added/removed. Instead we > just want it to be logically offlined so that these memory blocks are > no longer used by the OS which has offlined it and can be used by the > second OS. Once it is done using the memory for a certain use case it > can be returned back by onlining it. I am sorry for being dense here but why cannot you mark that memory hotplugable? I assume you are under the control to set attributes of the memory to the guest. -- 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