Sooner or later every cluster request asks the same three questions: how many cores, how much memory, and how long. If you guess wildly, you pay for it. Too little and the job gets killed halfway. Too much and it sits in line while smaller requests slide past. The good news is that a short test usually gets you close.
Start with a small run
Take a slice of your data, maybe one file, one subject, or one simulation, and run it on your laptop or a single cluster node. Note how long it took and how much memory it used. Task Manager, Activity Monitor, or a command such as top will show memory while it runs. This one number is worth more than any guess.
Scale up in steps
Now run two slices, then four. Watch what happens to time and memory. If time doubles when the data doubles, you can project the full run with some confidence. If memory grows faster than the data, that's worth knowing before you submit the big job. If it does, why analyses run out of memory covers what to try.
Cores: only ask for what your code can use
Many scripts run on a single core no matter how many you request. Others, like some model fits, can spread across cores. Read the documentation for your package or ask the people who wrote it. When you have many independent pieces (a hundred subjects, a thousand parameter settings), running them as separate small jobs often beats one big job with lots of cores.
Add a cushion, then check what you used
Add a margin to your test numbers, around 20 to 30 percent is a common habit, because real runs vary. After the job finishes, look up what it actually used and tighten your next request. If a job is stuck or fails anyway, how to read the clues when a job is pending or failed is a good next stop.
Putting numbers in a grant
Funders and campus computing groups both like a reasoned estimate. Say what you tested, what it used, and how you scaled it to the full project. If you're also budgeting for storage and staff time, how to budget for data management and sharing helps with the rest. New to the vocabulary? Start with what a research computing cluster is, and your first job on a cluster shows how a request is written.
The research computing guide collects these articles in one place.
Common questions
Should I just request the maximum to be safe? Not usually. Big requests wait longer in line and can use up an allocation fast. Ask for a bit more than your test showed, not ten times more.
Do more cores always make a job faster? No. If your code runs one task at a time, extra cores sit idle. Check that your software can actually use them before asking for many.
How do I see what a finished job used? Most schedulers keep a record of memory and time used. On Slurm, a command such as seff or sacct can show it. Ask your research computing group which one your site supports.
What goes in a grant if I can't know the numbers yet? Give a reasoned estimate from a small test run, say how you got it, and state your assumptions. Reviewers care more about a clear method than a perfect number.