guesstimate: Guesstimate the number of CPUs for cluster operations

View source: R/sysmem.R

guesstimateR Documentation

Guesstimate the number of CPUs for cluster operations

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

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% system memory use.

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

## Not run: 
guesstimate(4)
guesstimate(4, 0.90, "MB")

## End(Not run)


achubaty/amc documentation built on June 10, 2025, 1:10 p.m.