A Threshold Autoregressive Model for Software Aging

做面板数据分位数回归模型_面板数据门限回归模型 来源 | 数量经济学综合整理转载请联系进行回归分析,一般需要研究系数的估计值是否稳定。很多经济变量都存在结构突变问题,使用普通回归的做法就是确定结构突变点,进行分段回归。这就像我们高中学习的分段函数。但是对于大样本、面板数据如何寻找结构突变点。所以本文在此讲解面板门限回归的问题,门限回归也适用于时间序列(文章后面将介绍stata15.0新命令进行时间序列的门限回归)。门限效应,是指当一个... 阅读详情

 A Threshold Autoregressive Model for Software Aging

 

Xiu-E Chen, Quan Quan, Yun-Fei Jia and Kai-Yuan Cai

Department of Automatic Control

Beijing University of Aeronautics and Astronautics

Beijing 100083, China

xiuechen@asee.buaa.edu.cn  

xiuechen@gmail.com

Abstract

 

Long running software systems such as client-server type systems are known to experience an aging phenomenon called software aging, one in which the accumulation of errors during the execution of software leads to performance degradation and eventually results in failure. To study and counteract the phenomenon of software aging, we collect and log data on several system resource usage and activity parameters of a web server. Based on the experimental results, we argue that software aging process could be divided into four stages: robust stage, transition stage, failure-probable stage and failure stage. A non-linear threshold autoregressive (TAR) model is then proposed to model and forecast the resource usage in the respective stages. In comparison with AR model, this modeling method is more effective.

 

1. Introduction

 

The phenomenon of “software aging” in which the state of the software degrades with time has been reported in recent literature [1, 2, 3].

Software researches could be classified into theoretical researches, experimental researches, and engineering researches [5]. Present study on software aging could also be divided into two classes: model-based and measurement-based. Measurement-based approaches primarily validate the existence of software aging through measuring various parameters of computer system. Ref. [2] monitors various parameters of a server and then construct ARX model for resource parameters to estimate resource exhaustion time due to software aging. The methods of fractal analysis are applied online to detect the trend of performance degradation [3].

Compared with previous work, the main contribution of our paper is as follows: first, in our experiments, we adopt the experimental platform in [2] and improve it. Three client machines instead of one are used to simulate concurrent requests in real world; second, a non-linear TAR model is proposed to analyze and forecast the resource usage in different system stages. Compared with previously developed linear models, a non-linear model better reveals the heavily irregular and nonlinear nature of monitored resource usage. TAR model is also more efficient to describe resource usage in the respective stages in process of software aging.

 

2. Experiments

 

2.1. Experimental setup

 

The components and the system structure are illustrated in Figure 1.

 

Figure 1. Experimental setup

 

Different from [2], the system consists of three clients instead of one to simulate concurrent requests in real world and accelerate the process of software aging.

Within all the parameters monitored by top utility and httperf [4], we only concentrate on six of them:

 


1.        phymemfree-the amount of free physical memory.

2.        buffers-the amount of memory used for buffers.

3.        cache-the amount of memory used as page cache.

4.        swapused-the amount of used swap space.

5.        replytime-the interval between the time httperf sends out the first byte of request and the time it receives the first byte of reply.

 

2.2. Experiment I: variable workload          

 

In Experiment I, we imposed variable workload on the web server. The connection rate generated by httperf varied between 30 requests/sec and 960 requests/sec.

Figure 2. Connection rate in experiment I

(a)

(b)

Figure 3.Test results in Experiment I

 

From the plots in Figure 3, one can conclude that resource usage does reflect the performance of the server. The coefficients of correlation between the performance index replytime and other parameters monitored are shown in Table 1.

Table 1. Coefficients of correlation between response time and other parameters

 

replytime

loadavg

0.99

phymemfree

-0.08

buffers

-0.25

cache

-0.36

swapused

0.19

 

2.3. Experiment II: long duration

 

In Experiment II, the web server was run without rejuvenation for a long time until it crashed. Each of the clients generated 270 requests per second to get an html file from the server.

Figure  4 shows that the server goes through sudden performance degradation with replytime abruptly increases after running reliably for a period of time, which is referred to as base longevity interval in [1]. The performance of the server quickly degrades and goes into a failure probable stage.

Other long duration experiments showed the same characteristic of abrupt performance degradation as in Experiment II.

Figure 4.Test results in experiment II

 

Other runs of this experiment also validate the existence of software aging, in which the state of software degrades with time. Instead of being a gradual process, software aging observed in our experiments is an abrupt one.

 

3. Modeling and Data Analysis

 

In Table 1, it has been noticed that average CPU load correlates strongly with system performance, so the amount of average CPU load on the server is our modeling target. The parameters in Experiment II are used as the modeling object.

 

3.1. Software aging process

 

Based on the experimental results, we conjecture that the process of software aging could be divided into four stages:

1. A highly robust stage Sr

2. A transition stage St

3. A failure probable stage Sp

4. A failure stage SF

The probabilistic stage transition diagram is shown in Figure 5. Where ,  is a function of elapsed time t, denotes the transition probability from stage Si to stage Sj.

Figure 5. Probabilistic stage transition model for system performance

 

When the application starts, it stays in a highly robust stage Sr, and Prr(t), Ptr(t) and Ppt(t) is nearly 1; Prr(t), Ptr(t) and Ppt(t) decreases with time, and Prt(t) increases correspondingly which will lead the system into the transition stage St. The experimental results show that St  is a relatively transitory stage. The system will then enter Sp.With the increased value of PpF(t), the system will finally crashes.

 

3.2. Modeling

 

Since loadavg correlates strongly with response time, the variable loadavg can be deemed as an indicator of system stage. To simplify the process of modeling, two constants A and B are used in the paper to partition different system stages: when loadavg is below A, the system is at stage Sr; when loadavg is above B, the system stage is Sp; when loadavg is between A and B, the system is at a transition stage St.

To describe resource usage in different stages, a 3-threshold model is constructed:

   (1)

The delay parameter d is determined by investigating the Partial Autocorrelation Function (PACF) of loadavg. The lag at which PACF has the peak value is selected as d.

The optimal values of A, B and are selected by varying A and B over a selected range. For each pair of A and B, the optimum order  pj for the jth submodel corresponds to the value p that yields the minimum value for the Akaike  Information    Criteria (AIC) statistics AIC(pj) [6].The total AIC is computed by . This process is repeated for all subregions for each pair of A and B. The optimal values of A, B and are those that yield the minimum AICtotal. The process resulted in d=1, A=5,B=16, p1 = p2 = p3=2.

Figure 6. Measured and modeled average CPU load in Experiment II

 

3.3. Comparison with AR model

 

From Table 2 one can see that TAR model is superior to AR model in every subregion. The total AIC of TAR model is also lower than that of AR model.

In the second submodel, the square sum of residues is reduced about 67% by TAR. Since the second region mostly consists of points that change rapidly, the capability of TAR models to respond more rapidly to sudden changes than AR models is validated.

 The advantage of TAR model over AR model lies in that the AR modeling in threshold models is more accurate in each region than a single AR model. Furthermore, the threshold AR model is more capable to respond rapidly to sudden changes.


Table 2.Comparison of AR and TAR model

Model

Model poles

Square sum of  residues

AIC

AR:

[ 0.177,0 .979]

11.28

TAR:

[0 .017,0 .845]

[-0.170,1.217]

[0 .534-0.1516*i,

0 .534+0.1516*i]

10.71


 


From the poles of TAR model, one can conclude that:

a) The stage Sr is a stationary and robust process with both poles inside the unit circle.

b) The stage St is an unstable process with one pole outside the unit circle.

c) The stage Sp is an oscillation process.

Therefore, TAR model is also better in model explanation which reveals the kinetic property of each stage during software aging process.

 

4. Conclusions

 

In our experiments, we monitor system resource usage and activity parameters on a web server to study the phenomenon of software aging. We find that the server tends to go through sudden performance degradation after it runs reliably for a period. Therefore, we argue that the aging process could be divided into four stages: a highly robust stage Sr, a transition stage St, a failure probable stage Sp and the failure stage SF. A non-linear TAR model is used to estimate and forecast resource usage in respective stages. The results show that TAR model is superior to AR model in fitting the curve of resource usage in respective stages and TAR model has better performance in describing the kinetic property of software aging process as well. The modeling process of TAR model still needs to be improved along with new experimental results coming out. However, to our knowledge, this paper is the first study attempting to use threshold autoregressive method to model and forecast resource usage in respective stages. Actually, the concept of “threshold” is commonplace in computer system, e.g.

 

 

 

 

saturated load is the threshold of server capability above which the server behaves totally differently. So we do believe that the concept of bringing thresholds into hierarchical resource usage modeling will further verify its effectiveness in the future.

Here we also note that the work presented in this paper fall in the scope of empirical studies of software, rather than that of model-based studies. In a wider sense, this paper contributes to the emerging area of experimental softwarics [5], which is supposed to be the software counterpart to experimental physics.

 

References

 

[1] Y. Huang, C. Kintala, N. Kolettis , and N.D. Fulton,“ Software Rejuvenation: Analysis, Module and Applications,” Proc. The

25th International Symposium on Fault-Tolerant Computing, 1995, pp381-390.

[2] L. Li, K. Vaidyanathan, and K.S. Trivedi, “An Approach to Estimation of Software Aging in a Web Server ,”  Proc.

International Symposium on Empirical Software Engineering, 2002, pp91-100.

[3] M. Shereshevsky, J. Crowell, B. Cukic, V. Gandikota, Y. Liu, “Software Aging and Multifractality of Memory Resources,” Proc. the 2003 International Conference on Dependable Systems and Networks, 2003, pp721-730.

[4] D. Mosberger, T. Jin, “httperf-A Tool for Measuring Web Server Performance ,” In First Workshop on Internet Server Performance, 1998, pp59-67.

[5] K.Y.Cai, “Software Reliability Experimentation and Control”, Journal of Computer Science and Technology, Vol.21, No.5, 2006.

[6] M.B. Priestley, Non-linear and Non-stationary Time Series Analysis. Academic Press, 1989, pp 73-77.

 

太赫兹不可信无人机中继的最低保密能量效率最大化附Matlab代码.rar 立即下载

相关推荐

多目标优化的差分进化Matlab代码.rar

多目标优化的差分进化Matlab代码.rar

QYR-18900-2026-2032全球与中国光片显微镜市场现状及未来发展趋势 Sample zhangxiong.pdf

QYR-18900-2026-2032全球与中国光片显微镜市场现状及未来发展趋势 Sample zhangxiong.pdf

多智能体动态系统的群集 附matlab代码.rar

多智能体动态系统的群集 附matlab代码.rar

全自动马达组装生产线.rar

全自动马达组装生产线.rar

基于模型预测人工势场的船舶运动规划方法,考虑复杂遭遇场景下的COLREG(Matlab代码实现)

内容概要:本文提出了一种融合模型预测控制(MPC)与人工势场法的船舶运动规划方法,旨在解决复杂海上多船遭遇场景下的避碰问题,并严格遵循国际海上避碰规则(COLREG)。该方法通过构建人工势场模型,综合考虑他船、静态障碍物、航道边界产生的排斥力以及目标点的吸引力,形成动态环境势场;同时引入MPC框架,基于船舶非线性动力学模型进行滚动时域优化,实时求解最优航向与航速指令,确保路径的安全性、平滑性与合规性。研究设计了对遇、交叉、追越及多船混杂等多种典型复杂会遇场景,并通过Matlab仿真验证了该方法在有效规避碰撞、保持航行稳定性以及准确执行COLREG规定避让行为方面的优越性能。; 适合人群:从事智能航运、海洋工程、自动驾驶船舶、智能交通系统及相关路径规划算法研究的科研人员与研究生;具备控制理论、优化算法基础及Matlab编程能力的技术开发者。; 使用场景及目标:① 实现复杂动态海况下多船智能避碰决策与自主导航;② 开发符合国际航行法规的无人船自主航行核心算法;③ 为智能港口、海上交通管理系统(SMARTS)及无人艇集群协同提供算法支持;④ 用于科研仿真验证、算法对比测试及高校相关课程的教学演示。; 阅读建议:此资源以Matlab代码实现为核心,强调理论建模与工程实践的深度融合,建议读者在深入理解MPC与人工势场耦合机制的基础上,动手运行并调试所提供的仿真程序,重点分析不同势场参数、预测时域与权重系数对避碰行为的影响,从而掌握算法的设计精髓与优化策略。

两索柔性光伏支架静风响应分析软件

两索柔性光伏支架静风响应分析软件

虚谷数据库集群部署-k8s

虚谷数据库集群部署-k8s

手机FFC冲裁检测机.rar

手机FFC冲裁检测机.rar

基于观测器异构冗余与柔性切换的永磁同步电机宽速域无传感器控制关键技术研究(Simulink仿真实现)

内容概要:本文围绕永磁同步电机(PMSM)在宽速域范围内的无传感器控制技术展开研究,提出了一种基于观测器异构冗余与柔性切换的复合控制策略。该策略融合高频信号注入法(适用于零低速区)与自适应滑模观测器(SMO,适用于中高速区),通过设计动态加权融合机制实现全速域内转子位置与速度的精确估计。系统在静止和低速状态下采用脉振方波高频注入实现初始定位,在中高速运行时则利用模糊超螺旋滑模观测器提升鲁棒性与动态响应性能,并引入相位同步校正与平滑切换算法以有效抑制模式切换过程中的抖动与误差累积。研究在Simulink平台构建了完整的控制系统仿真模型,全面验证了所提方法在启动精度、稳态性能、动态响应及抗负载扰动等方面的优越性。; 适合人群:具备电机控制、现代控制理论及MATLAB/Simulink仿真基础的电气工程、自动化及相关专业的研究生、科研人员和工程技术人员。; 使用场景及目标:①解决永磁同步电机在无机械传感器条件下全速域运行的控制难题;②为高性能电机驱动系统(如电动汽车、精密伺服系统)提供可靠的速度与位置估算方案;③深入理解高频注入、滑模观测器、多观测器融合与平滑切换等先进控制算法的设计与实现。; 阅读建议:此资源以Simulink仿真实现为核心,不仅提供了详细的算法原理与模型架构,还包含了完整的运行结果分析。建议读者结合文中框架在MATLAB环境中动手复现仿真模型,重点关注不同速度区间下观测器的切换逻辑与参数整定过程,并通过对比实验深入理解各模块的作用机理与系统整体性能。

【C语言系统编程】基于内存机制与手写数据结构的算法优化:底层原理剖析与工程实战指南

内容概要:本文是一份系统性的C语言底层编程与数据结构实战指南,深入剖析C语言在系统级编程中的核心地位,全面讲解内存管理、指针机制、动态内存分配、系统调用等底层原理,并通过纯手写方式实现线性结构、树形结构、图形结构及经典算法,融合系统编程接口完成工程化落地。教程强调从内存布局到数据结构设计、从算法实现到性能优化的全链路贯通,配套工业级可编译源码,覆盖考研、竞赛、嵌入式开发、操作系统研发等高阶应用场景。; 适合人群:具备C语言基础,目标从事底层开发、系统编程、嵌入式、操作系统或参加计算机考研与算法竞赛的研发人员或在校学生。; 使用场景及目标:①深入理解C语言内存分区、指针寻址、动态内存管理等底层机制;②独立手写实现主流数据结构与算法(如链表、AVL树、哈夫曼编码、Dijkstra最短路径等);③掌握系统调用与数据结构融合的工程实践能力,如日志系统、文件压缩、导航路径规划等项目开发; 阅读建议:学习过程中应结合代码编写、GDB调试与内存检测工具(如valgrind)进行实践验证,注重每一步的内存变化与性能分析,建议按模块循序渐进学习,强化“原理—实现—优化”三位一体的学习模式。

设备线体.rar

设备线体.rar

在具有储能的排放感知经济调度中弥合机会约束和鲁棒优化的差距Matlab代码.rar

在具有储能的排放感知经济调度中弥合机会约束和鲁棒优化的差距Matlab代码.rar

【半导体制造】基于SECS/GEM标准的设备通信协议实现:工厂自动化系统中设备状态监控与远程控制集成方案设计

内容概要:本文档为SECS-GEM规格说明书,详细定义了半导体制造设备与主机系统之间通信的标准化接口规范。文档涵盖了通信协议(如HSMS)、状态模型(通信、控制及设备处理状态)、设备能力实现(事件通知、数据采集、报警管理、远程控制、过程程序管理等)以及具体的消息类型和数据格式。通过状态图和消息交互场景,明确了设备在不同通信和控制状态下的行为逻辑,并规定了TCP/IP超时参数、变量命名、报警分类等级等关键技术细节,确保设备与主机间的可靠通信与协同控制。 适合人群:半导体设备制造商的技术工程师、自动化系统集成商、工厂MES系统开发人员,以及需要对接SECS/GEM协议的研发与运维人员。 使用场景及目标:①用于指导设备端GEM功能的开发与调试;②支持主机系统(如MES)正确解析设备状态、采集实时数据、下发控制指令;③实现设备报警监控、工艺程序管理、时间同步及终端信息交互等功能,提升产线自动化与信息化水平。 阅读建议:本规格书技术性强,建议结合实际通信抓包工具(如Wireshark)和SECS模拟器进行对照学习与测试验证,重点关注消息流向、状态转换条件及异常处理机制,以确保系统集成的准确性与稳定性。

上一篇: Linux下的Apache性能参数在线调节系统
下一篇: perl多线程,想说爱你不容易。。。
chenxe69
博客等级 码龄21年 0粉丝 4原创
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值