WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH R3 0/7] xen/balloon: Memory hotplug support for X

To: Ian Campbell <Ian.Campbell@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH R3 0/7] xen/balloon: Memory hotplug support for Xen balloon driver
From: Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
Date: Fri, 04 Feb 2011 12:21:32 +0300
Cc: "jeremy@xxxxxxxx" <jeremy@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "haicheng.li@xxxxxxxxxxxxxxx" <haicheng.li@xxxxxxxxxxxxxxx>, "konrad.wilk@xxxxxxxxxx" <konrad.wilk@xxxxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>, Dan, Magenheimer <dan.magenheimer@xxxxxxxxxx>, "dave@xxxxxxxxxxxxxxxxxx" <dave@xxxxxxxxxxxxxxxxxx>, "linux-mm@xxxxxxxxx" <linux-mm@xxxxxxxxx>, "wdauchy@xxxxxxxxx" <wdauchy@xxxxxxxxx>, "rientjes@xxxxxxxxxx" <rientjes@xxxxxxxxxx>, "andi.kleen@xxxxxxxxx" <andi.kleen@xxxxxxxxx>, "akpm@xxxxxxxxxxxxxxxxxxxx" <akpm@xxxxxxxxxxxxxxxxxxxx>, "fengguang.wu@xxxxxxxxx" <fengguang.wu@xxxxxxxxx>, Daniel Kiper <dkiper@xxxxxxxxxxxx>
Delivery-date: Fri, 04 Feb 2011 01:22:49 -0800
Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=selfip.ru; s=dk; h=Content-Transfer-Encoding:Mime-Version:Message-ID:Date:Content-Type:References:In-Reply-To:Cc:To:Reply-To:From:Subject; bh=nPZmugiV5SM0rw+6qjKU5+hYProN6u9hcOucbfcHCy8=; b=q7o0y1ssQELTbuvkw4Gjhqrc6J+Xd4fYPVdiug2IzIARSltNMA8O+4hmX2b3JjVG5Mw1JyG/1cKgRTYQJmn6oQxXrNilLoNwAbaDTAWyLiwEO6SRDwE4pL3j+4g/zXSU;
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1296810682.13091.571.camel@xxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: Selfip.Ru
References: <20110203162345.GC1364@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <1296768009.2346.7.camel@mobile> <1296810682.13091.571.camel@xxxxxxxxxxxxxxxxxxxxxx>
Reply-to: v.tolstov@xxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2011-02-04 at 09:11 +0000, Ian Campbell wrote:
> On Thu, 2011-02-03 at 21:20 +0000, Vasiliy G Tolstov wrote:
> > I have some may be offtopic question: Is that possible to export balloon
> > function balloon_set_new_target to GPL modules (EXPORT_SYMBOL_GPL) ? 
> > This helps to kernel modules (not in kernel tree) to contol balloonin
> > (for example autoballoon or something else) without needing to write so
> > sysfs. (Writing files from kernel module is bad, this says Linux Kernel
> > Faq).
> 
> Is there a reason to do it from kernel space in the first place? auto
> ballooning can be done by a userspace daemon, can't it?
> 
> Ian.
> 

Yes. It can be done via userspace, but if i want to control autoballon
via sysfs/sysctl/procfs i need to write module. And i don't think that
export this function can break some stuff. Now i have autoballoon kernel
module that enlarge and shrinks memory. Userspace daemon need some
dependencies like glibc, libxenstore and others, but if i'm not provide
ability to chouse kernel (i'm boot domU via kernel and ramdisk), very
simple to add in ramdisk kernel module that says disk/memory usage and
controls memory ballooning.

-- 
Vasiliy G Tolstov <v.tolstov@xxxxxxxxx>
Selfip.Ru


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel