前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >fio基础26

fio基础26

作者头像
franket
发布2022-04-24 00:31:27
6990
发布2022-04-24 00:31:27
举报
文章被收录于专栏:技术杂记

The write state is relatively small, on the order of hundreds of bytes to single kilobytes. It contains information on the number of completions done, the last X completions, etc. A trigger is invoked either through creation ('touch') of a specified file in the system, or through a timeout setting. If fio is run with --trigger-file=/tmp/trigger-file, then it will continually check for the existence of /tmp/trigger-file. When it sees this file, it will fire off the trigger (thus saving state, and executing the trigger command). For client/server runs, there'sbothalocalandremotetrigger.Iffioisrunningasaserverbackend,itwillsendthejobstatesbacktotheclientforsafestorage,thenexecutetheremotetrigger,ifspecified.Ifalocaltriggerisspecified,theserverwillstillsendbackthewritestate,buttheclientwillthenexecutethetrigger.10.1Verificationtriggerexample---------------------------------Letssaywewanttorunapowercuttestontheremotemachine'server'.Ourwriteworkloadisinwrite-test.fio.Wewanttocutpowerto'server'atsomepointduringtherun,andwe'll run this test from the safety or our local machine, 'localbox'. On the server, we'llstartthefiobackendnormally:server#fio--serverandontheclient,we'll fire off the workload: localbox$ fio --client=server --trigger-file=/tmp/my-trigger --trigger-remote="bash -c \"echo b > /proc/sysrq-triger\"" We set /tmp/my-trigger as the trigger file, and we tell fio to execute echo b > /proc/sysrq-trigger on the server once it has received the trigger and sent us the write state. This will work, but it'snot_really_cuttingpowertotheserver,it's merely abruptly rebooting it. If we have a remote way of cutting power to the server through IPMI or similar, we could do that through a local trigger command instead. Lets assume we have a script that does IPMI reboot of a given hostname, ipmi-reboot. On localbox, we could then have run fio with a local trigger instead: localbox$ fio --client=server --trigger-file=/tmp/my-trigger --trigger="ipmi-reboot server" For this case, fio would wait for the server to send us the write state, then execute 'ipmi-rebootserver' when that happened. 10.1 Loading verify state ------------------------- To load store write state, read verification job file must contain the verify_state_load option. If that is set, fio will load the previously stored state. For a local fio run this is done by loading the files directly, and on a client/server run, the server backend will ask the client to send the files over and load them from there. [root@iZ116haf49sZ fio]#

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档