Re: [Openstack-operators] libvirt cpu type per instance

2016-03-04 Thread Tim Bell


There is a better explanation in the OpenStack docs :-) with an example how to 
get 50% slower (not something my users ask for often)

cpu_quota & cpu_period seems to give it according to 
http://docs.openstack.org/admin-guide-cloud/compute-flavors.html

Tim




On 04/03/16 15:59, "Jonathan Proulx"  wrote:

>On Fri, Mar 04, 2016 at 11:52:33AM +0800, gustavo panizzo (gfa) wrote:
>:On Thu, Mar 03, 2016 at 03:52:49PM -0500, Jonathan Proulx wrote:
>:> 
>:> I have a user who wants to specify their libvirt CPU type to restrict
>:> performance because they're modeling embeded systems.
>:> 
>:> I seem to vaguely recall there is/was a way to specify this either in
>:> the instance type or maybe even in the image metadata, but I can't
>:> seem to find it.
>:> 
>:> Am I delusional or blind?
>
>
>As previous posters pointed out I was a bit delusional obviously cpu
>type only limits instruction set & is useful for bianry compatibility
>but mothing to do with speed limiting or equalization. 
>
>:you can use
>:https://wiki.openstack.org/wiki/InstanceResourceQuota
>
>Thanks I think that has the bits I'm looking for.  Had been reading on
>a different document about cpu_shares (which are relative and thus not
>what I want), but some how missed "cpu_quota" which may be the right
>thing for me
>
>so I was also a bit blind :)
>
>Thanks,
>-Jon
>
>
>:
>:to create "slow" flavors
>:
>:> 
>:> -Jon 
>:> 
>:> -- 
>:> 
>:> ___
>:> OpenStack-operators mailing list
>:> OpenStack-operators@lists.openstack.org
>:> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
>:
>:-- 
>:1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333
>:
>:keybase: http://keybase.io/gfa
>
>-- 
>
>___
>OpenStack-operators mailing list
>OpenStack-operators@lists.openstack.org
>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


Re: [Openstack-operators] libvirt cpu type per instance

2016-03-04 Thread Jonathan Proulx
On Fri, Mar 04, 2016 at 11:52:33AM +0800, gustavo panizzo (gfa) wrote:
:On Thu, Mar 03, 2016 at 03:52:49PM -0500, Jonathan Proulx wrote:
:> 
:> I have a user who wants to specify their libvirt CPU type to restrict
:> performance because they're modeling embeded systems.
:> 
:> I seem to vaguely recall there is/was a way to specify this either in
:> the instance type or maybe even in the image metadata, but I can't
:> seem to find it.
:> 
:> Am I delusional or blind?


As previous posters pointed out I was a bit delusional obviously cpu
type only limits instruction set & is useful for bianry compatibility
but mothing to do with speed limiting or equalization. 

:you can use
:https://wiki.openstack.org/wiki/InstanceResourceQuota

Thanks I think that has the bits I'm looking for.  Had been reading on
a different document about cpu_shares (which are relative and thus not
what I want), but some how missed "cpu_quota" which may be the right
thing for me

so I was also a bit blind :)

Thanks,
-Jon


:
:to create "slow" flavors
:
:> 
:> -Jon 
:> 
:> -- 
:> 
:> ___
:> OpenStack-operators mailing list
:> OpenStack-operators@lists.openstack.org
:> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators
:
:-- 
:1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333
:
:keybase: http://keybase.io/gfa

-- 

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


Re: [Openstack-operators] libvirt cpu type per instance?

2016-03-03 Thread gustavo panizzo (gfa)
On Thu, Mar 03, 2016 at 03:52:49PM -0500, Jonathan Proulx wrote:
> 
> I have a user who wants to specify their libvirt CPU type to restrict
> performance because they're modeling embeded systems.
> 
> I seem to vaguely recall there is/was a way to specify this either in
> the instance type or maybe even in the image metadata, but I can't
> seem to find it.
> 
> Am I delusional or blind?

you can use
https://wiki.openstack.org/wiki/InstanceResourceQuota

to create "slow" flavors

> 
> -Jon 
> 
> -- 
> 
> ___
> OpenStack-operators mailing list
> OpenStack-operators@lists.openstack.org
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

-- 
1AE0 322E B8F7 4717 BDEA BF1D 44BB 1BA7 9F6C 6333

keybase: http://keybase.io/gfa

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


Re: [Openstack-operators] libvirt cpu type per instance?

2016-03-03 Thread Chris Friesen

On 03/03/2016 03:20 PM, Kris G. Lindgren wrote:

I would be curious if specifing the cpu type would actually restrict
performance.  As far as I know, this only restricts the cpu features presented
to a vm.  You can present a vm that has the cpu instruction sets of a Pentium 3
– but runs and is as performant as a single core on a 2.8ghz hexcore cpu.


This is my understanding as well.  We're not simulating the performance of a CPU 
model, just the instruction set and exposed features.


Chris

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


Re: [Openstack-operators] libvirt cpu type per instance?

2016-03-03 Thread Kris G. Lindgren
I would be curious if specifing the cpu type would actually restrict 
performance.  As far as I know, this only restricts the cpu features presented 
to a vm.  You can present a vm that has the cpu instruction sets of a Pentium 3 
– but runs and is as performant as a single core on a 2.8ghz hexcore cpu.

Additionally one would have to change that for the entire HV.  You might have 
better luck also using the flavor extra_specs:

http://docs.openstack.org/admin-guide-cloud/compute-flavors.html

I am pretty sure thought you can't set what CPU type/flags to present to the vm 
through them though. (Maybe with custom code)

___
Kris Lindgren
Senior Linux Systems Engineer
GoDaddy

From: Mike Smith <mism...@overstock.com<mailto:mism...@overstock.com>>
Date: Thursday, March 3, 2016 at 2:06 PM
To: Jonathan Proulx <j...@csail.mit.edu<mailto:j...@csail.mit.edu>>
Cc: 
"openstack-operators@lists.openstack.org<mailto:openstack-operators@lists.openstack.org>"
 
<openstack-operators@lists.openstack.org<mailto:openstack-operators@lists.openstack.org>>
Subject: Re: [Openstack-operators] libvirt cpu type per instance?

Jonathan -

There are some nova settings (at least for KVM that you are probably thinking 
of, such as:

cpu_mode
cpu_model

http://docs.openstack.org/liberty/config-reference/content/kvm.html



Mike Smith
Lead Cloud Systems Architect
Overstock.com<http://Overstock.com>



On Mar 3, 2016, at 1:52 PM, Jonathan Proulx 
<j...@csail.mit.edu<mailto:j...@csail.mit.edu>> wrote:


I have a user who wants to specify their libvirt CPU type to restrict
performance because they're modeling embeded systems.

I seem to vaguely recall there is/was a way to specify this either in
the instance type or maybe even in the image metadata, but I can't
seem to find it.

Am I delusional or blind?

-Jon

--

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org<mailto:OpenStack-operators@lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


Re: [Openstack-operators] libvirt cpu type per instance?

2016-03-03 Thread Mike Smith
Jonathan -

There are some nova settings (at least for KVM that you are probably thinking 
of, such as:

cpu_mode
cpu_model

http://docs.openstack.org/liberty/config-reference/content/kvm.html



Mike Smith
Lead Cloud Systems Architect
Overstock.com



On Mar 3, 2016, at 1:52 PM, Jonathan Proulx 
> wrote:


I have a user who wants to specify their libvirt CPU type to restrict
performance because they're modeling embeded systems.

I seem to vaguely recall there is/was a way to specify this either in
the instance type or maybe even in the image metadata, but I can't
seem to find it.

Am I delusional or blind?

-Jon

--

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators


[Openstack-operators] libvirt cpu type per instance?

2016-03-03 Thread Jonathan Proulx

I have a user who wants to specify their libvirt CPU type to restrict
performance because they're modeling embeded systems.

I seem to vaguely recall there is/was a way to specify this either in
the instance type or maybe even in the image metadata, but I can't
seem to find it.

Am I delusional or blind?

-Jon 

-- 

___
OpenStack-operators mailing list
OpenStack-operators@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-operators