Why this matters
GPU instances are the fastest way to turn a small cloud bill into a large one. A single bare metal GPU shape left running over a weekend can cost more than a month of ordinary compute. And unlike web servers, GPU machines often sit idle for long stretches: a training run ends, a notebook stays open, a test cluster is forgotten.
Oracle Cloud has a few features that help here, and they work differently from other providers. Compartments, quotas, budgets and the Cost Analysis tool are all native, free to use, and they cover most of what you need. The hard part is rarely the tooling. It's deciding who is allowed to create GPU capacity, and making sure someone notices when it's still running with no work on it.
This guide is about control at the point of creation and at the point of idling. We'll set limits so costly shapes can't appear by accident, schedule shutdowns, and match the shape to the actual job.
Before you start
You need admin rights on the tenancy, or at least permission to manage quotas, budgets and instance pools in the compartments you care about. Quotas are set at the tenancy level by a user in the Administrators group, so check this early. It's the most common blocker.
Gather a list of every team or project that uses GPUs today. For each one, write down the shape in use (for example, a VM GPU shape versus a bare metal GPU shape), who launches it, and what it's for: training, fine-tuning, inference or experiments. If you can't answer that for a running instance, that instance is your first finding.
Also decide whether each workload can tolerate interruption. Batch training with checkpoints can often run on cheaper, interruptible capacity. A customer-facing inference endpoint usually can't. That split drives most of the savings choices below.
Finally, make sure your compartments reflect how you want to track spend. If GPU work from three teams all lands in one compartment, you'll struggle to attribute cost or set separate limits. Tags help, but compartments are the stronger boundary in Oracle Cloud.
How to do it
Start by isolating GPU work. Create a dedicated compartment, or one per team, for GPU and AI workloads. Move existing GPU instances, boot volumes and block volumes into it. Now you can see, limit and report on that spend without noise from everything else.
Next, apply compartment quotas. Quota policies let you cap how many instances of a given shape can exist in a compartment, and in which availability domains. Write a policy that sets the GPU shape count to zero everywhere except the compartments that need it, then allow a small number there. This stops a stray launch from creating an expensive machine. Quota statements use a simple syntax, and you can test them on a small compartment first.
Then add budgets and alerts on the GPU compartments. A budget in Oracle Cloud can target a compartment and trigger alert rules at a percentage of the monthly amount, based on actual or forecast spend. Send alerts to a group email, not one person's inbox. Set a forecast alert as well as an actual one, since forecast fires before the money is gone.
After that, tackle idle time. Notebooks and dev instances are the usual culprits. Use the Oracle Cloud Functions service with the Events service, or a scheduled script run through the CLI or SDK, to stop tagged instances in the evening and on weekends. Stopping a GPU instance does not always end all charges, so confirm how your shape and attached storage are billed after a stop. Terminating a throwaway instance is cleaner than stopping it.
Finally, match the shape to the job. Fine-tuning a small model rarely needs the largest bare metal GPU shape. Try a smaller VM GPU shape first and measure throughput. For training with checkpoints, look at preemptible instances, which cost less in exchange for being reclaimed when Oracle needs the capacity. For steady inference, compare on-demand against a commitment only after you've watched usage for a few weeks.
- Isolate GPU work in compartments. Create a dedicated compartment for GPU and AI workloads, one per team if you can. Move existing GPU instances and their volumes into it so spend is visible on its own.
- List every GPU resource and owner. Record each GPU shape in use, who launched it and what it does. Flag any running instance with no clear owner as a candidate for shutdown.
- Write compartment quota policies. Set GPU shape counts to zero in most compartments and allow a small number where needed. Test the policy on a small compartment before applying it widely.
- Create budgets with forecast alerts. Add a budget on each GPU compartment with alert rules for both actual and forecast spend. Route alerts to a group email address.
- Schedule evening and weekend shutdowns. Tag dev and notebook instances, then stop or terminate them on a schedule using Functions, Events or a CLI script. Confirm what still bills after a stop.
- Right-size the shape. Try a smaller VM GPU shape for fine-tuning and light inference, and measure throughput. Reserve large bare metal shapes for jobs that truly need them.
- Use preemptible capacity for checkpointed training. Move interruption-tolerant batch jobs to preemptible instances and save checkpoints often. Keep customer-facing inference on regular capacity.
- Clean up orphaned volumes. List boot and block volumes in the GPU compartments and delete any with no attachment. Turn off the preserve option for throwaway instances.
How to check it worked
Open Cost Analysis in the console and filter by your GPU compartments. Group by service, then by resource, and look at the daily view. After scheduling is in place, you should see spend flatten on nights and weekends instead of running level. If the line is still flat at full height, something isn't stopping.
Test the quota policy on purpose. Ask someone without admin rights to try launching a restricted GPU shape in a blocked compartment. The request should fail with a quota error. If it succeeds, the policy statement is scoped wrong or applied to the wrong compartment.
Trigger a budget alert deliberately by setting a very low threshold on a test compartment, then confirm the email arrives at the group address. An alert nobody receives is the same as no alert.
Check attached resources too. Boot volumes and block volumes from terminated instances can linger if the preserve option was selected. List volumes in the GPU compartments and look for ones with no attachment.
Mistakes to avoid
Don't rely on stop alone. Check what your shape continues to bill after a stop, and delete what you don't need. Preserved boot volumes and large block volumes holding old datasets quietly add up.
Don't set quotas only at the tenancy root and forget the child compartments. A broad allow somewhere upstream can undercut a strict rule you wrote lower down, so read how your policies combine.
Avoid committing before you understand usage. A commitment on a GPU shape you later outgrow, or stop using, is a fixed cost with no work behind it. Measure first, commit second, and commit to the baseline, not the peak.
Don't let experiments live in production compartments. A shared compartment with no owner is where forgotten GPU instances survive for months.
If your bill grew faster than your usage and you don't have time to dig through it yourself, a fixed-scope review can help. Cloudverg offers a Cloud cost audit at $4,500/month (two weeks, read-only, renews monthly until cancelled) that covers Oracle Cloud among other providers, as one option next to doing this review in-house.
Frequently asked questions
Does stopping a GPU instance on Oracle Cloud stop all charges?
Not always. Depending on the shape, compute billing may continue after a stop, and attached boot and block volumes keep billing either way. Check the billing behavior for your specific shape, and terminate instances you won't reuse.
How do I stop people from launching expensive GPU shapes by accident?
Use compartment quotas. A quota policy can set the allowed count of a GPU shape to zero in a compartment, so a launch attempt fails. Allow small numbers only in the compartments that have a real need.
Should I buy a commitment for GPU capacity right away?
No. Watch actual usage for a few weeks first, then commit only to your steady baseline. Committing to peak usage, or to a shape you may outgrow, locks in cost with nothing running against it.