{"id":6365,"date":"2021-09-09T00:27:42","date_gmt":"2021-09-09T00:27:42","guid":{"rendered":"https:\/\/swiv.com.br\/installing-stress-rpm\/"},"modified":"2026-05-27T20:02:29","modified_gmt":"2026-05-27T19:02:29","slug":"installing-stress-rpm","status":"publish","type":"post","link":"https:\/\/swiv.com.br\/index.php\/2021\/09\/09\/installing-stress-rpm\/","title":{"rendered":"Installing stress RPM"},"content":{"rendered":"\n<p>Para simular alguns cen\u00e1rios de performance em laborat\u00f3rio, vou fazer uso do utilit\u00e1rio de Sistema Operacional Linux chamado &#8220;stress&#8221;, que reproduz o consumo de recursos como CPU, mem\u00f3ria, I\/O, etc. O uso dele em si abordarei em outros artigos, e neste mostrarei apenas a sua instala\u00e7\u00e3o.<\/p>\n\n\n\n<p>O download para o Oracle Linux 6 pode ser feita&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/rpm.pbone.net\/info_idpl_54550731_distro_redhat_el_6_com_stress-1.0.4-6.1.x86_64.rpm.html\" target=\"_blank\">NESTE&nbsp;<\/a>link. J\u00e1 a vers\u00e3o 7, (que eu estou usando), pode ser feito&nbsp;<a rel=\"noreferrer noopener\" href=\"http:\/\/rpm.pbone.net\/info_idpl_54550627_distro_redhatel7_com_stress-1.0.4-6.7.x86_64.rpm.html\" target=\"_blank\">NESTE&nbsp;<\/a>link.<\/p>\n\n\n\n<p>Identificando o arquivo na m\u00e1quina:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel7 ~]$ cd \/oracle\n&#x5B;oracle@oel7 oracle]$ ll\ntotal 72\ndrwxr-xr-x. 4 oracle oinstall  4096 Apr 27  2020 19.3.0\ndrwxr-xr-x. 2 oracle oinstall  4096 May 28 02:00 archives\ndrwxr-xr-x. 3 oracle oinstall  4096 May 27 05:55 BACKUP\ndrwxr-xr-x. 3 oracle oinstall  4096 May 27 20:25 dados\ndrwxr-xr-x. 3 oracle oinstall  4096 May 27 20:26 fra\ndrwxrwxr-x. 2 oracle oinstall 16384 Apr 25  2020 lost+found\ndrwxr-xr-x. 3 oracle oinstall  4096 May 27 21:02 PITR\n-rw-r--r--. 1 root   root     30880 Sep  8 21:22 stress-1.0.4-6.7.x86_64.rpm\n<\/pre><\/div>\n\n\n<p>Realizando a instala\u00e7\u00e3o do pacote rpm com o usu\u00e1rio root:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;oracle@oel7 oracle]$ su -\nPassword:\nLast login: Wed Sep  8 21:16:45 -03 2021 on pts\/0\n&#x5B;root@oel7 ~]# cd \/oracle\/\n&#x5B;root@oel7 oracle]# rpm -ivh \/oracle\/stress-1.0.4-6.7.x86_64.rpm\nwarning: \/oracle\/stress-1.0.4-6.7.x86_64.rpm: Header V3 DSA\/SHA1 Signature, key ID cd7ac182: NOKEY\nPreparing...                          ################################# &#x5B;100%]\nUpdating \/ installing...\n   1:stress-1.0.4-6.7                 ################################# &#x5B;100%]\n&#x5B;root@oel7 oracle]#\n<\/pre><\/div>\n\n\n<p>Utilit\u00e1rio pronto para uso:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \\&quot;wp-block-syntaxhighlighter-code\\&quot;\"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&#x5B;root@oel7 oracle]# stress --version\nstress 1.0.4\n&#x5B;root@oel7 oracle]#\n&#x5B;root@oel7 oracle]# stress --help\n`stress&#039; imposes certain types of compute stress on your system\n \nUsage: stress &#x5B;OPTION &#x5B;ARG]] ...\n -?, --help         show this help statement\n     --version      show version statement\n -v, --verbose      be verbose\n -q, --quiet        be quiet\n -n, --dry-run      show what would have been done\n -t, --timeout N    timeout after N seconds\n     --backoff N    wait factor of N microseconds before work starts\n -c, --cpu N        spawn N workers spinning on sqrt()\n -i, --io N         spawn N workers spinning on sync()\n -m, --vm N         spawn N workers spinning on malloc()\/free()\n     --vm-bytes B   malloc B bytes per vm worker (default is 256MB)\n     --vm-stride B  touch a byte every B bytes (default is 4096)\n     --vm-hang N    sleep N secs before free (default none, 0 is inf)\n     --vm-keep      redirty memory instead of freeing and reallocating\n -d, --hdd N        spawn N workers spinning on write()\/unlink()\n     --hdd-bytes B  write B bytes per hdd worker (default is 1GB)\n \nExample: stress --cpu 8 --io 4 --vm 2 --vm-bytes 128M --timeout 10s\n \nNote: Numbers may be suffixed with s,m,h,d,y (time) or B,K,M,G (size).\n&#x5B;root@oel7 oracle]#\n<\/pre><\/div>\n\n\n<p>Obs: Este procedimento foi criado pelo senhor Ahmed Baraka (www.ahmedbaraka.com) e foi apenas reproduzido por mim em um laborat\u00f3rio pessoal para fins de aprendizado.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Para simular alguns cen\u00e1rios de performance em laborat\u00f3rio, vou fazer uso do utilit\u00e1rio de Sistema Operacional Linux chamado &#8220;stress&#8221;, que reproduz o consumo de recursos como CPU, mem\u00f3ria, I\/O, etc. O uso dele em si abordarei em outros artigos, e neste mostrarei apenas a sua instala\u00e7\u00e3o. O download para o Oracle Linux 6 pode ser [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,10],"tags":[],"class_list":["post-6365","post","type-post","status-publish","format-standard","hentry","category-linux","category-performance"],"_links":{"self":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/comments?post=6365"}],"version-history":[{"count":1,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6365\/revisions"}],"predecessor-version":[{"id":9049,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/posts\/6365\/revisions\/9049"}],"wp:attachment":[{"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/media?parent=6365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/categories?post=6365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swiv.com.br\/index.php\/wp-json\/wp\/v2\/tags?post=6365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}