论文笔记 CPU Accounting for Multicore Processors

news/2024/11/3 5:26:49/

Abstract

  • 确定了对CPU utilization的不准确测量是如何影响OS的几个关键方面的
  • 这篇文章提出来了一个比CPU utilization更准确的性能评估指标

In this paper, we identify how an inaccurate measurement of the CPU utilization affects several key aspects of the system such as OS statistics or the charging mechanism in data centers.

We propose a new hardware CPU accounting mechanism to improve the accuracy when measuring the CPU utilization in CMPs and compare it with the previous accounting mechanisms.

Question

作者在后文中举例:在锁定一个固定的,排除了 “OS noise” 的核上运行SPEC CPU 2,000 benchmark 171.swim, it completes its execution in 117 seconds. when swim runs together with other applications in the same core, its real execution time increases up to 4x due to task switches forced by the OS. (cache data eviction or process switch)

所以似乎是指对于一个固定的计算系统对于同一workload所花的计算时间大致相同。

Tricks

  • We move all the OS activity to the first core, leaving the other cores as isolated as possible from “OS noise.”

Points

  • processors with shared on-chip resources, such as CMPs 会因为其他正在运行的任务而导致不同的性能、时间和方差
  • processors with shared on-chip resources, such as CMPs 由于空间上的cache共享而使得 the time spent running on the CPU 这种衡量方式不准确

QA

  1. What is the CPU Accounting Problem they are addressing?

The Classical Approach(CA) has been proved to work well for single-threaded uniprocessor and SMP systems, as the amount of hardware resources spatially shared is limited.
However, processors with shared on-chip resources, such as CMPs , make CPU accounting more complex because the progress of an application depends on the activity of the other applications running at the same time.
The inaccuracy measuring per-task CPU utilization may affect several key components of a computing system, such as several commonly used programs (i.e., top or time) which may not properly account applications’ progress. Finally, CPU accounting can be also used in data centers to charge users (together with other factor such as used amount of memory, disk space, I/O activity, etc.), according to their effective use of the system.

  • CPU utilization 在衡量single-threaded uniprocessor and SMP systems性能时表现良好,因为硬件资源在空间上的分享比较有限
  • 但它在衡量 共享片上资源 的CPU时就会存在误差
  • 这一误差会导致很多工具包括基础软件和计费工具不准确

在这里插入图片描述
比如说我这个CPU,可以看到时6个core但是有12个逻辑处理器。

逻辑处理器指的就是支持 超线程 技术的处理器在一个单核心的CPU内,利用其中空闲的执行单元,模拟出另外一个核心,使整个CPU有两个逻辑核心,从而提高整个CPU的 工作效率 。

超线程技术应用的场景下,CPU utilization会导致偏差。一个计算负载,在其他正在运行的进程不同的情况下,也会出现CPU utilization不同的情况。

  1. What is their solution? Software? Hardware?
  • a hardware mechanism, Intertask Conflict-Aware (ITCA) accounting
  • cal solution : full share & fair share
  1. How do they validate their solution?
  2. What are the strengths and limiations of their solution?
  3. They did their work on Intel CPU with Hyper-Threading. Did Intel use their solution? Why or why not?
  4. What did Intel do?
  5. Do we still have the problem of misleading CPU utilization?

http://www.ppmy.cn/news/687702.html

相关文章

android车机手机黑屏闪黑终结者-Winscope工具使用介绍

背景: 设想一下,假如我们又如下场景,一个闪黑一瞬间的问题,正常我们看到黑屏冻屏问题,是不是时刻想到是要来dumpsys SurfaceFlinger和dumpsys window windows相关的信息来辅助我们分析问题,但奈何这个是个…

纯CSS3炫酷3D星空动画特效

效果&#xff1a; 源码&#xff1a; <!DOCTYPE html> <html lang"zh"> <head><meta charset"UTF-8"><meta http-equiv"X-UA-Compatible" content"IEedge,chrome1"><meta name"viewport" …

机器视觉(图像处理)入门金典之图像数字化及处理方法

图像的数字化 一般的图像(模拟图像)不能直接用计算机来处理,必须首先转化为数字图像 把模拟图像分割成一个个称为像素的小区域,每个像素的亮度或灰度值用一个整数表示 数字化的含义: 使模拟图像的灰度、亮度和色彩数据化 图像数字化的步骤: 两个步骤: 1、在空间坐标…

python接口自动化(七)--状态码详解对照表(详解)

简介 我们为啥要了解状态码&#xff0c;从它的作用&#xff0c;就不言而喻了。如果不了解&#xff0c;我们就会像个无头苍蝇&#xff0c;横冲直撞。遇到问题也不知道从何处入手&#xff0c;就是想找别人帮忙&#xff0c;也不知道是找前端还是后端的工程师。 状态码的作用是&…

仿微信.QQ聊天界面

仿微信.QQ聊天界面,气泡图 自适应箭头图片 最近做了一个IM的项目.关于实现IM有很多方法.毕竟协议就那么几种.开源的可以用XMPPFramework等, 第三方有融云、环信等.若只是实现临时通信还可以用WebSocket. 这些技术网上实现的demo多的一笔.但是只是实现了功能.作为客户端很多UI实…

JavaScript_制作简易QQ聊天界面

题目&#xff1a; 制作一个简易聊天界面&#xff0c;当用户在界面下方的文本框中输入信息后&#xff0c;点击发送按钮&#xff0c;文本框中的信息发送到界面中部的信息显示区域&#xff0c;同时信息输入文本框中的信息被清空&#xff0c;等待下次信息录入。信息从上往下一条条显…

JAVA 仿QQ聊天程序

转载请标明出处&#xff1a;牟尼的专栏 http://blog.csdn.net/u012027907 一、设计内容及要求 1.1综述 A.系统概述 我们要做的就是类似QQ这样的面向企业内部的聊天软件&#xff0c;基本功能和QQ类似。首先&#xff0c;系统分为两大部分&#xff0c;第一部分是客户端&#x…

android qq功能实现原理,Android QQ、微信聊天消息界面设计原理与实现

 Android QQ、微信聊天消息界面设计原理与实现 原理:Android平台上,典型的以腾讯的QQ、微信这些聊天消息界面通常可以采用ListView设计与实现,需要使用ListView 适配器Adapter的getItemViewType()和getViewTypeCount()。 在ListView的适配器中,每一次getView时候,首先…