欢迎来到麦多课文档分享! | 帮助中心 海量文档,免费浏览,给你所需,享你所想!
麦多课文档分享
全部分类
  • 标准规范>
  • 教学课件>
  • 考试资料>
  • 办公文档>
  • 学术论文>
  • 行业资料>
  • 易语言源码>
  • ImageVerifierCode 换一换
    首页 麦多课文档分享 > 资源分类 > PPT文档下载
    分享到微信 分享到微博 分享到QQ空间

    AutoBash- Improving Configuration Management with .ppt

    • 资源ID:378732       资源大小:711KB        全文页数:32页
    • 资源格式: PPT        下载积分:2000积分
    快捷下载 游客一键下载
    账号登录下载
    微信登录下载
    二维码
    微信扫一扫登录
    下载资源需要2000积分(如需开发票,请勿充值!)
    邮箱/手机:
    温馨提示:
    如需开发票,请勿充值!快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。
    如需开发票,请勿充值!如填写123,账号就是123,密码也是123。
    支付方式: 支付宝扫码支付    微信扫码支付   
    验证码:   换一换

    加入VIP,交流精品资源
     
    账号:
    密码:
    验证码:   换一换
      忘记密码?
        
    友情提示
    2、PDF文件下载后,可能会被浏览器默认打开,此种情况可以点击浏览器菜单,保存网页到桌面,就可以正常下载了。
    3、本站不支持迅雷下载,请使用电脑自带的IE浏览器,或者360浏览器、谷歌浏览器下载即可。
    4、本站资源下载后的文档和图纸-无水印,预览文档经过压缩,下载后原文更清晰。
    5、试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。

    AutoBash- Improving Configuration Management with .ppt

    1、1,AutoBash: Improving Configuration Management with Operating System Causality Analysis,Ya-Yunn Su, Mona Attariyan, and Jason Flinn University of Michigan,2,Motivation,Configuration management is frustrating! Users may have to Change environment variables Edit configuration files Manage inter-applic

    2、ation dependenciesCurrent approach: Ask friends, search on-line, read manual, Try potential solutions Carefully undo wrong solutions,3,AutoBash solves these problems,Problems with current approach,Applying solutions is time-consumingUndoing a wrong solution can be hardHard to know how a problem was

    3、solvedA “solution” may cause new problems,Automatically tries many solutions,Provides undo capability,Explains solution to user,Automatically runs regression tests,4,AutoBash overview,Problem Detected,5,Outline,Motivation AutoBash design and implementation Observation mode Replay mode Health monitor

    4、ing mode Evaluation Conclusion,6,Observation mode,A modified bash shell User types in commands to solve the problem,% command 1,% test if app works,% undo testing,% undo command 1,% command 2,7,Verifying a solution is tedious,AutoBash automatically tests using predicates Predicate: Tests if an appli

    5、cation functions correctly Returns true/false if the test passes/fails,wget http:/localhost/$USER,Predicate example for a web server,% command 1,% test if app works,% undo testing,% rollback command 1,% command 2,8,Undoing testing is tedious,Predicate testing has no side effects Executed speculative

    6、ly and rolled back Speculator SOSP 05 Process-level speculative execution,Speculative execution makes predicate testing safe,9,Undo can be hard,AutoBash speculatively executes each action Light-weight checkpoint and rollback,Speculative execution makes undo easy,% command 1,% test if app works,% und

    7、o testing,% undo command 1,% command 2,% rollback command 1,10,Regression testing is hard,AutoBash automatically runs regression tests Executes predicates in the predicate database Ensures all predicates pass,P0,P1,P2,P3,P4,P5,CVS predicates,GCC cross-compiler predicates,Web server predicates,P6,P7,

    8、P8,11,Regression tests can be slow,Problem: running all predicates can be slowOnly need to run predicates affected by an action Uses causality tracking to find affected predicates,12,Tracking causality,Output set kernel objects an action causally affectsInput set kernel objects a predicate causally

    9、depends on,Predicate: grep “test” bar,Output set = file foo,Action: touch foo,Input set = file bar,13,Analyzing causality,AutoBash calculates the intersection Determines which predicates to run,Action: touch foo,file: foo,file: bar,Predicate: grep “test” bar,Do not run predicate,14,sh,Tracking outpu

    10、t sets,An output set is tracked for each action,Process sh,Output set,Action: sh create_file.sh create_file.sh: touch foo,15,sh,sh,Predicate: sh testfile.sh testfile.sh: grep “test” bar,Tracking input sets,An input set is tracked for each predicate,Predicates input set,Process sh,16,Understanding so

    11、lutions can be hard,AutoBash generates causal explanation Analyzes input and output sets,17,Causal explanation,ls l /home/$USER,metadata: /home/$USER/ public_html,wget index.html,metadata: /home/$USER,chmod +x /home/$USER,chmod +x /home/$USER/ public_html,wget $USER/cgi-bin/test.pl,wget $USER/index.

    12、html,Actions,Kernel objects,Predicates,18,Outline,Motivation AutoBash design and implementation Observation mode Replay mode Health monitoring mode Evaluation Conclusion,19,Replay mode,Problem: finding a solution is time-consumingAutomatically searches for a solution No user input neededSpeculative

    13、execution provides isolation User continues foreground task AutoBash runs replay mode in background,20,Initial predicate testing: Tracks input set for each predicate Determines passed/failed predicates,S2,S1,S0,How replay mode works,21,(2) Solution execution:Speculatively executes a solutionTracks s

    14、olution output set,S2,S1,S0,How replay mode works,22,S0,(3) Verifying solution:Calculates intersectionRuns predicates with intersection,S2,S1,How replay mode works,Predicate fails,23,S2,S1,S0,How replay mode works,Discards solution with no intersection,24,(4) Regression tests:Calculates intersection

    15、Runs predicates affected by solution,S2,S1,S0,How replay mode works,Predicates pass,Predicate passes,25,Speculative execution provides safetyCausality analysis provides speed,S2,S1,S0,How replay mode works,Predicate passes,S2,26,Health monitoring mode,Periodically executes all predicatesIf any predi

    16、cate fails, AutoBash Runs replay mode to search for a solution Reports to the user to run observation mode,27,Outline,Motivation AutoBash Design and Implementation Observation mode Replay mode Health monitoring mode Evaluation Conclusion,28,Evaluation,Questions: What is the overhead of speculative e

    17、xecution? How effective is causality analysis?Methodology: Evaluated CVS, gcc cross compiler, web server Manually created 10 bugs and 10 solutions Manually created 5-8 predicates,29,Total replay time (GCC),Without speculative executionWith speculative execution,Speculative execution overhead is negl

    18、igible,1 2 3 4 5 6 7 8 9 10,30,Total replay time (GCC),Causal analysis improves predicate re-testing time by 67-99%,Without causality analysisWith causality analysis,1 2 3 4 5 6 7 8 9 10,31,Conclusion,Configuration management is frustratingAutoBash automates most tedious partsSpeculative execution makes AutoBash safeCausality analysis makes AutoBash fast,32,Questions?,Supported by,


    注意事项

    本文(AutoBash- Improving Configuration Management with .ppt)为本站会员(confusegate185)主动上传,麦多课文档分享仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知麦多课文档分享(点击联系客服),我们立即给予删除!




    关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1 

    收起
    展开