开发者

How to Profile R Code that Includes SNOW Cluster

开发者 https://www.devze.com 2022-12-26 07:29 出处:网络
I have a nested loop that I\'m using foreach, DoSNOW, and a SNOW socket cluster to solve for. How should I go about profiling the code to make sure I\'m not doing something grossly inefficient.

I have a nested loop that I'm using foreach, DoSNOW, and a SNOW socket cluster to solve for. How should I go about profiling the code to make sure I'm not doing something grossly inefficient.

Also is there anyway to measure the data flows going between the master and nodes in a Snow cluster?

开发者_如何学C

Thanks,

James


That is an excellent question. From the top of my head, start with a comparison between

  • a serial solution (no snow),
  • a serial solution with snow (to get an idea of overhead) and
  • a parallel solution maybe controlling N to see what type of increase you get.

The never-released-on-CRAN version 0.3.4 of snow also has additional plotting commands that are useful for analysis. You can get it from this directory at Luke Tierney's site.

Real profiling, of course, is hard given the distributed nature.

0

精彩评论

暂无评论...
验证码 换一张
取 消