spec cpu2006官网上的数据如何解释

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spec cpu2006官网上的数据如何解释相关的知识,希望对你有一定的参考价值。

http://www.spec.org/cpu2006/results/cpu2006.html#SPECfp_rate

这个链接上有各种型号的cpu测试结果,我想知道最上面
| CINT2006 | CFP2006 | CINT2006 Rates | CFP2006 Rates |
那个CINT2006 和CINT2006 Rates有什么区别吗?

参考技术A Q15. What is the difference between a "rate" and a "speed" metric?
There are several different ways to measure computer performance. One way is to measure how fast the computer completes a single task; this is a speed measure. Another way is to measure how many tasks a computer can accomplish in a certain amount of time; this is called a throughput, capacity or rate measure.
The SPECspeed metrics (e.g., SPECint2006) are used for comparing the ability of a computer to complete single tasks.
The SPECrate metrics (e.g., SPECint_rate2006) measure the throughput or rate of a machine carrying out a number of tasks.
For the SPECrate metrics, multiple copies of the benchmarks are run simultaneously. Typically, the number of copies is the same as the number of CPUs on the machine, but this is not a requirement. For example, it would be perfectly acceptable to run 63 copies of the benchmarks on a 64-CPU machine (thereby leaving one CPU free to handle system overhead).
Note: a speed run which uses a parallelizing compiler to distribute one copy of a benchmark over multiple CPUs is still a speed run, and uses the SPECspeed metrics. You can identify such runs by the field "Auto Parallel".
参考技术B Q15. What is the difference between a "rate" and a "speed" metric? There are several different ways to measure computer performance. 参考技术C   SPEC是标准性能评估公司(Standard Performance Evaluation Corporation)的简称。SPEC是由计算机厂商、系统集成商、大学、研究机构、咨询等多家公司组成的非营利性组织,这个组织的目标是建立、维护一套用于评估计算机系统的标准。
  SPEC CPU 2006是SPEC组织推出的CPU子系统评估软件最新版,在早些年,业界使用的是其上一个版本SPEC CPU 2000。和SPEC CPU 2000一样,SPEC CPU 2006包括了CINT2006和C FP2006两个子项目,前者用于测量和对比整数性能,而后者则用于测量和对比浮点性能,SPEC CPU 2006中对SPEC CPU 2000中的一些测试进行了升级,并抛弃/加入了一些测试,因此两个版本测试得分并没有可比较性。
  

Deployment.spec.selector.matchLables实验解释

Deployment.spec.selector.matchLables实验解释

作者: 张首富
时间: 2019-02-23
个人博客: www.zhangshoufu.com
QQ群: 895291458

正确的Deployment,让matchLabels 和template.metadata.lables完全比配不报错

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-nginx
spec:
  selector:
    matchLabels:
      app: my-nginx
  replicas: 2
  template:
    metadata:
      labels:
        app: my-nginx
    spec:
      containers:
      - name: my-nginx
        image: nginx
        ports:
        - containerPort: 80

pod创建成功

[[email protected] test_yaml]# kubectl get pods
NAME                      READY   STATUS    RESTARTS   AGE
my-nginx-9b44d8f5-d6n8z   1/1     Running   0          3s
my-nginx-9b44d8f5-zzv52   1/1     Running   0          3s

直接不写spec.mathlabels创建直接报错缺少缺少必要字段selector

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-nginx
spec:
  replicas: 2
  template:
    metadata:
      labels:
        run: my-nginx
    spec:
      containers:
      - name: my-nginx
        image: nginx
        ports:
        - containerPort: 80

运行报错结果如下:

[[email protected] test_yaml]# kubectl create -f test_pod_svc.yaml
error: error validating "test_pod_svc.yaml": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation off with --validate=false

#当把matchLables匹配的和下面pod模板不相对应,也会直接报错,选择的和模板标签不匹配

apiVersion: apps/v1
kind: Deployment
metadata:
  name: my-nginx
spec:
  selector:
    matchLabels:
      app: my-nginx-add
  replicas: 2
  template:
    metadata:
      labels:
        app: my-nginx
    spec:
      containers:
      - name: my-nginx
        image: nginx:1.14
        ports:
        - containerPort: 80

运行报错结果如下:

The Deployment "my-nginx" is invalid: spec.template.metadata.labels: Invalid value: map[string]string{"app":"my-nginx"}: `selector` does not match template `labels`

查看帮助手册

 kubectl explain Deployment.spec

    selector  <Object>
     Label selector for pods. Existing ReplicaSets whose pods are selected by
     this will be the ones affected by this deployment.

     pod的标签选择器。 由此选择其pod的现有ReplicaSet(副本集)将受此部署影响的副本。

#总结:
1,在Deployment中必须写matchLables,
2,在定义模板的时候必须定义labels,因为Deployment.spec.selector是必须字段,而他又必须和template.labels对应,
3,template里面定义的内容会应用到下面所有的副本集里面,在template.spec.containers里面不能定义labels标签.

以上是关于spec cpu2006官网上的数据如何解释的主要内容,如果未能解决你的问题,请参考以下文章

SPEC CPU2006怎么用,http://www.spec.org/cpu2006/Docs/

speccpu2006安装

SPEC CPU 2006的测试项目

[百度贴吧]部分CPU的SPEC2006int 结果

Spec2006使用说明

Deployment.spec.selector.matchLables实验解释