<div dir="ltr"> Ari,<div>1 - Seu sistema Operacional é 32 bits. Mude para um de 64 .</div><div>2 - Então compre mais memora RAM</div><div>3 - Caso não funcione precisará aprender a fazer as coisas em paralelo.</div><div><br></div><div>Abs e Boa sorte</div></div><div class="gmail_extra"><br><div class="gmail_quote">Em 23 de setembro de 2014 22:06, Ari Clecius <span dir="ltr"><<a href="mailto:ari072000@yahoo.com.br" target="_blank">ari072000@yahoo.com.br</a>></span> escreveu:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:8px"><div><span>Prezados colegas da lista, estava tentando rodar este exemplo quando tive problema de alocação de memória, alguém poderia me ajudar a resolver?</span></div><div style="color:rgb(0,0,0);font-size:8px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><span><br></span></div><div style="color:rgb(0,0,0);font-size:8px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:normal;background-color:transparent"><span>Att,</span></div><div></div><div> </div><div><span style="font-weight:bold;font-style:italic">Ari Clecius Alves de Lima</span><br style="font-weight:bold;font-style:italic"><span style="font-weight:bold;font-style:italic">Engenheiro Químico</span><br style="font-weight:bold;font-style:italic"><span style="font-weight:bold;font-style:italic">Me. Engenharia Civil</span><br style="font-weight:bold;font-style:italic"><span style="font-weight:bold;font-style:italic"><a href="tel:%28085%2988412345" value="+558588412345" target="_blank">(085)88412345</a></span><br style="font-weight:bold;font-style:italic"><span style="font-weight:bold;font-style:italic"><a href="tel:%28085%2933669042" value="+558533669042" target="_blank">(085)33669042</a></span></div><div style="color:rgb(0,0,0);font-size:8px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:italic;background-color:transparent"><span style="font-weight:bold;font-style:italic"><br></span></div><div style="color:rgb(0,0,0);font-size:8px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:italic;background-color:transparent"><span style="font-weight:bold;font-style:italic">#CMR</span></div><div style="color:rgb(0,0,0);font-size:8px;font-family:HelveticaNeue,'Helvetica Neue',Helvetica,Arial,'Lucida Grande',sans-serif;font-style:italic;background-color:transparent"><span style="font-weight:bold;font-style:italic"><br></span></div><div style="background-color:transparent"><b><i>processador: Intel(R) Core(TM) i3 CPU M380 @2.53GHz</i></b></div><div style="background-color:transparent"><b><i>Memória instalada(RAM): 4,00 GB (utilizável:2,93)</i></b></div><div style="background-color:transparent"><b><i>Sistema oeracional de 32 Bits</i></b></div><div style="background-color:transparent"><b><i><br></i></b></div><div style="background-color:transparent"><b><i>R version 3.1.1 (2014-07-10) -- "Sock it to Me"</i></b></div><div style="background-color:transparent"><b><i>Copyright (C) 2014 The R Foundation for Statistical Computing</i></b></div><div style="background-color:transparent"><b><i>Platform: i386-w64-mingw32/i386 (32-bit)</i></b></div><div style="background-color:transparent"><b><i><br></i></b></div><div style="background-color:transparent"><b><i>N <- 100000000</i></b></div><div style="background-color:transparent"><b><i>x <- runif(N)</i></b></div><div style="background-color:transparent"><b><i>y <- runif(N)</i></b></div><div style="background-color:transparent"><b><i>ok <- sum(x^2 + y^2 < 1)</i></b></div><div style="background-color:transparent"><b><i>mc.pi <- 4 * ok / N</i></b></div><div style="background-color:transparent"><b><i>sprintf("pi = %.6lf\n", mc.pi)</i></b></div><div style="background-color:transparent"><b><i><br></i></b></div><div style="background-color:transparent"><b><i>#1ª tentativa</i></b></div><div style="background-color:transparent"><b><i><br></i></b></div><div style="background-color:transparent"><b><i>>N <- 100000000</i></b></div><div style="background-color:transparent"><b><i>>x <- runif(N)</i></b></div><div style="background-color:transparent"><b><i>> y <- runif(N)</i></b></div><div style="background-color:transparent"><b><i>Error: cannot allocate vector of size 762.9 Mb</i></b></div><div style="background-color:transparent"><b><i>In addition: Warning messages:</i></b></div><div style="background-color:transparent"><b><i>1: In runif(N) : Reached total allocation of 1535Mb: see help(memory.size)</i></b></div><div style="background-color:transparent"><b><i>2: In runif(N) : Reached total allocation of 1535Mb: see help(memory.size)</i></b></div><div style="background-color:transparent"><b><i>3: In runif(N) : Reached total allocation of 1535Mb: see help(memory.size)</i></b></div><div style="background-color:transparent"><b><i>4: In runif(N) : Reached total allocation of 1535Mb: see help(memory.size)</i></b></div><div style="background-color:transparent"><b><i>> ok <- sum(x^2 + y^2 < 1)</i></b></div><div style="background-color:transparent"><b><i>Error: cannot allocate vector of size 762.9 Mb</i></b></div><div style="background-color:transparent"><b><i>In addition: Warning messages:</i></b></div><div style="background-color:transparent"><b><i>1: Reached total allocation of 1535Mb: see help(memory.size) </i></b></div><div style="background-color:transparent"><b><i>2: Reached total allocation of 1535Mb: see help(memory.size) </i></b></div><div style="background-color:transparent"><b><i>3: Reached total allocation of 1535Mb: see help(memory.size) </i></b></div><div style="background-color:transparent"><b><i>4: Reached total allocation of 1535Mb: see help(memory.size) </i></b></div><div style="background-color:transparent"><b><i>> mc.pi <- 4 * ok / N</i></b></div><div style="background-color:transparent"><b><i>Error: object 'ok' not found</i></b></div><div style="background-color:transparent"><b><i>> sprintf("pi = %.6lf\n", mc.pi)</i></b></div><div style="background-color:transparent"><b><i>Error in sprintf("pi = %.6lf\n", mc.pi) : object 'mc.pi' not found</i></b></div><div style="background-color:transparent"><b><i><br></i></b></div><div style="background-color:transparent"><b><i>memory.size(2900)</i></b></div><div style="background-color:transparent"><b><i><br></i></b></div><div style="background-color:transparent"><b><i>2ª tentativa</i></b></div><div style="background-color:transparent"><b><i>> N <- 100000000</i></b></div><div style="background-color:transparent"><b><i>> x <- runif(N)</i></b></div><div style="background-color:transparent"><b><i>Error: cannot allocate vector of size 762.9 Mb</i></b></div><div style="background-color:transparent"><b><i>> y <- runif(N)</i></b></div><div style="background-color:transparent"><b><i>Error: cannot allocate vector of size 762.9 Mb</i></b></div><div style="background-color:transparent"><b><i>> ok <- sum(x^2 + y^2 < 1)</i></b></div><div style="background-color:transparent"><b><i>Error: cannot allocate vector of size 762.9 Mb</i></b></div><div style="background-color:transparent"><b><i>> mc.pi <- 4 * ok /
N</i></b></div><div style="background-color:transparent"><b><i>Error: object 'ok' not found</i></b></div><div style="background-color:transparent"><b><i>> sprintf("pi = %.6lf\n", mc.pi)</i></b></div><div style="background-color:transparent"><b><i><span></span></i></b></div><div style="background-color:transparent"><b><i>Error in sprintf("pi = %.6lf\n", mc.pi) : object 'mc.pi' not found</i></b></div></div></div><br>_______________________________________________<br>
R-br mailing list<br>
<a href="mailto:R-br@listas.c3sl.ufpr.br">R-br@listas.c3sl.ufpr.br</a><br>
<a href="https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br" target="_blank">https://listas.inf.ufpr.br/cgi-bin/mailman/listinfo/r-br</a><br>
Leia o guia de postagem (<a href="http://www.leg.ufpr.br/r-br-guia" target="_blank">http://www.leg.ufpr.br/r-br-guia</a>) e forneça código mínimo reproduzível.<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><i>Vinicius Brito Rocha.</i><br><i style="font-weight:bold">Estatístico e Atuário </i><i style="font-weight:bold"><br>M.Sc. Engenharia de Produção/PO</i><br><br><br></div>
</div>