From: "Satoshi Uchida" Subject: RE: [PATCH] Sysfs Interface for balloon driver Date: Wed, 20 Sep 2006 12:00:36 +0900 Message-ID: <00c401c6dc60$f22303f0$4c87380a@ad.spf.cl.nec.co.jp> References: <20060920011235.GA7931@totally.trollied.org> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <20060920011235.GA7931@totally.trollied.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: 'John Levon' Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Thanks John. > > [root@Dom0 ~]# cat=20 > /sys/bus/xen/drivers/balloon/statistics/balloon_high > > 0 kB >=20 > It's very unusual to have units in a sysfs node. I believe=20 > this should just be the number, and documented elsewhere what=20 > the units are. I also hesitated that there give units or not. First, units are not given. However, I myself didn't understand units which is byte? or pages?. In procfs, It is easy to understand because there have units. So, in this time, I take them units. As you say, it should be remove. > I also don't quite get the location. I don't quite think of=20 > balloon as a real "driver" as such, it's core kernel=20 > functionality rather. Wouldn't=20 > /sys/hypervisor/properties/balloon/ be a more sensible place? In this time, it locate by following reason. A balloon driver is similar to front-end driver. 1. It does not handle real device. Namely, by virtualization technology, it feign to handle computer elements.=20 2. Its computer elements is handled in=20 Domain (VM). Namely, it does not handle the whole real environments, and Its information is valid for VM. I feel that the term "hypervisor" means VMM in general. And a balloon exists for VM, and not for VMM. Therefore, I think that such information should not be located to = /sys/hypervisor. Should new location make for storing such (VM's) information ? For example, as following. /sys/virtualization -+--- domain +--- hypervisor Tnaks your reply. Regards Satoshi UCHIDA=20 NEC Corporation, Japan > -----Original Message----- > From: John Levon [mailto:levon@movementarian.org]=20 > Sent: Wednesday, September 20, 2006 10:13 AM > To: Satoshi Uchida > Cc: xen-devel@lists.xensource.com > Subject: Re: [Xen-devel] [PATCH] Sysfs Interface for balloon driver >=20 > On Wed, Sep 20, 2006 at 09:26:43AM +0900, Satoshi Uchida wrote: >=20 > > [root@Dom0 ~]# cat=20 > /sys/bus/xen/drivers/balloon/statistics/balloon_high > > 0 kB >=20 > It's very unusual to have units in a sysfs node. I believe=20 > this should just be the number, and documented elsewhere what=20 > the units are. >=20 > I also don't quite get the location. I don't quite think of=20 > balloon as a real "driver" as such, it's core kernel=20 > functionality rather. Wouldn't=20 > /sys/hypervisor/properties/balloon/ be a more sensible place? >=20 > regards, > john >=20