guesstimate: Guesstimate the number of CPUs for cluster operations

Description Usage Arguments Details Value Note Author(s) Examples

View source: R/sysmem.R

Description

Take a wild stab at guessing how many CPUs to use in cluster when you have some idea of how much RAM is needed per CPU.

Usage

1
guesstimate(ram, prop = 0.8, units = "gb")

Arguments

ram

How much ram is required per CPU.

prop

Proportion of overall RAM to devote to R. Default 0.80.

units

Units of memory. One of either "KB", "MB", "GB".

Details

Tries to be conservative by assuming no more than 80

Value

Integer. Number of CPUs to allocate to cluster.

Note

You should take these numbers with several grains of salt.

Author(s)

Alex Chubaty

Examples

1
2
3
4
5
## Not run: 
guesstimate(4)
guesstimate(4, 0.90, "MB")

## End(Not run)

achubaty/amc documentation built on April 6, 2021, 6:56 a.m.