[R-SIG-Finance] R memory management
Brian G. Peterson
brian at braverock.com
Mon Dec 3 15:21:12 CET 2007
Yuri Volchik wrote:
> I'm using R to collect data for a number of exchanges through a socket
> connection and constantly running into memory problems even though task I
> believe is not that memory consuming. I guess there is a miscommunication
> between R and WinXP about freeing up memory.
<snip code example and gc stats>
> But the end result is in Task Manager:
>
> RGui.exe Mem Usage 470,472K VM Size 541,988K
>
> Even though R reports
>
> Garbage collection 16808 = 15754+802+252 (level 0) ...
>
> 6.1 Mbytes of cons cells used (7%)
>
> 1.8 Mbytes of vectors used (1%)
>
> Has anybody encountered this problem and how you guys deal with it? It
> seems like a memory leak to me, as tasks are not memory demandind, the
> biggest amount of data in a single file is about 40MB.
Yuri,
This probably belongs on the R users list. Most of the R core
developers are on that list. Even though you are working with exchange
data, your question isn't really finance related, and you'll probably
get more assistance on r-users.
Regards,
- Brian
More information about the R-SIG-Finance
mailing list