Re: [R] CPU usage on Windows (R 2.7.1)

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Wed, 05 Nov 2008 18:36:38 +0100

Borja Soto Varela wrote:
> Dear R-users,
>
> I'm using R (2.7.1) under windows and I've got a function written in R that
> calls a Fortran 77 subroutine using both interface function (.C and
> .Fortran). The Fortran 77 source was compiled to a shared library using g77
> (3.4.5).
> When I call the R wrapper function, it will use the 100% of my CPU during 25
> minutes (the fortran algorithm require a lot of time of execution) . The
> same thing if you try the next code:
>

>> vec=rexp(20000000)
>> fitdistr(vec,"exponential")

>
> that also use the 100% of my cpu during 30 seconds. In both cases, it makes
> R crash when running another program but If I don't do anything, it runs
> fine.
> Is there any solution to this?. It runs better using Linux?.

Might be a bug in R, the package (i.e. Fortran code) or even with your hardware (CPU temperature).

Hence I suggest to try again with a *recent* version of R (i.e. R-2.8.0) and a recent version of the package. It would also be nice if you can make it better reproducible (I haven't seen it during some quick tries).

Uwe Ligges

> Thanks
> Borja
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed 05 Nov 2008 - 17:38:36 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 05 Nov 2008 - 18:30:22 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive