[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [virt-tools-list] [libosinfo 1/6] Add resource data for windows OSs



On Wed, Sep 14, 2011 at 04:08:27PM +0300, Zeeshan Ali (Khattak) wrote:
> On Wed, Sep 14, 2011 at 3:48 PM, Daniel P. Berrange <berrange redhat com> wrote:
> > On Sat, Sep 10, 2011 at 03:04:59AM +0300, Zeeshan Ali (Khattak) wrote:
> >> From: "Zeeshan Ali (Khattak)" <zeeshanak gnome org>
> >>
> >> Add resource requirements and recommendations data for windows OSs.
> >> ---
> >>  data/oses/windows.xml |  109 +++++++++++++++++++++++++++++++++++++++++++++++++
> >>  1 files changed, 109 insertions(+), 0 deletions(-)
> >>
> >> diff --git a/data/oses/windows.xml b/data/oses/windows.xml
> >> index 90a6b7e..3ba88eb 100644
> >> --- a/data/oses/windows.xml
> >> +++ b/data/oses/windows.xml
> >> @@ -26,6 +26,21 @@
> >>          <publisher-id>MICROSOFT CORPORATION</publisher-id>
> >>        </iso>
> >>      </media>
> >> +
> >> +    <resources arch="i386">
> >> +      <minimum>
> >
> > So IIUC, the units here are..
> >
> >> +        <cpu>233</cpu>
> >
> > ...MHz..
> >
> >> +        <n-cpus>1</n-cpus>
> >
> > N/a
> >
> >> +        <ram>64</ram>
> >
> > ..MB...
> >
> >> +        <storage>1.5</storage>
> >
> > ..GB..
> 
>   That is correct!
> 
> > Using GB for disks though is a little suspect
> > to me. I don't like seeing fractional numbers
> > in the XML since we loose precision and people
> > always get confused wrt 1024 vs 1000. A great
> > many (old & current)  distros can actually be
> > installed in < 1 GB of disk, so it will not
> > be uncommon.
> >
> > So I think we ought to use MB for storage
> 
>    Users of libosinfo should ideally not be seeing the XML and in the
> API we expose these as Hz and bytes (integers). Don't exactly get your
> point with fractions in XML but if you prefer, we can just have it as
> Hz and bytes in XML as well.

Yeah, using Hz & bytes is fine with me too


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]