VM Services

Sizing a workspace without overpaying for it

Monthly cloud pricing teaches you to take the smallest box that fits. When you are billed by the minute, that habit is often wrong, and the bigger machine is cheaper.

Everyone arrives with a rule learned from monthly billing: pick the smallest machine your work fits on, because you are paying for it whether or not you are using it. On a monthly instance that rule is correct and it saves real money.

Here it is backwards, and the reason is simple enough to do in your head.

You are paying for finished work

When billing is per minute, the thing you are actually paying for is the time it takes to finish. A machine that costs twice as much per minute and gets you there in a third of the time is cheaper, and you spend a third as long waiting.

Suppose a build takes forty minutes on NanoBoost and fifteen on MegaFuse. Nobody’s build scales that neatly, but the shape is what matters:

The same job on two machines. Rates are the published ones at the time of writing; the durations are illustrative.
Machine Rate Time Cost of the job
NanoBoost ₹6.27/hr 40 min ₹4.18
MegaFuse ₹12.50/hr 15 min ₹3.13

Twice the rate, and it still comes out cheaper, because you bought twenty-five fewer minutes. The rule of thumb: compare the cost of the job, not the cost of the hour.

Where the rule stops

It only holds while the extra cores are doing something. Three places it breaks:

Work that does not parallelise. A single-threaded job finishes at much the same time on four cores as on sixteen, and you have simply paid four times as much per minute for cores that sat there. Doubling cores helps a parallel build and does nothing at all for a script that runs one thing after another.

Time you are not computing. Reading, writing, thinking, being in a meeting with the workspace open. None of that goes faster on a bigger machine, and all of it is billed. If most of your session is a desktop sitting there with an editor open, take the small machine and spend the difference on nothing.

Memory, which is a cliff rather than a slope. Cores trade against time smoothly. Memory does not: you either have enough and the job runs, or you do not and it swaps, thrashes, or is killed outright. Read the catalogue this way: the memory column picks your machine, and the vCPU column then picks how fast it goes. CosmicCascade is meant for that case: two cores and eight gigabytes, for work that needs more memory than parallelism.

A practical way to choose

Don’t try to model it; just run it. Pick something from the middle of the table, do a real hour of your actual work, and watch what runs out first, the cores or the memory. An hour of MegaFuse costs twelve and a half rupees, which is a cheaper experiment than an afternoon of reasoning about it, and switching machines later costs nothing because your home directory follows you.

Then size for the work you do most often rather than the worst thing you have ever run. The occasional heavy job can go on a bigger machine for the hour it needs, and with per-minute billing that hour costs an hour.

Every machine and what it costs

Try an hour of the real thing.

Cheaper than reasoning about it, and your files stay with the workspace between sessions.