Skip to main content

Updated 6 min readSemiconductor CAD Infrastructure

Compute farm scheduling for EDA

Scheduling an EDA compute farm with LSF or Slurm: workload classes, fair share, per-user caps, license-aware dispatch, environment classes and wait metrics.

By the SkyCadEda engineering teamHow these notes are written

  • Semiconductor CAD Infrastructure
  • EDA Infrastructure
  • Job Scheduling
  • Compute Capacity

ShareLinkedInX

On this page

Scheduling an EDA farm well comes down to four things: queues that match what the work means for the schedule, fair share with hard per-user caps, license counts the scheduler can see, and wait-time numbers per class that someone reviews. The examples below use IBM Spectrum LSF and Slurm, the two schedulers we see most on chip-design farms; PBS Professional and Grid Engine have equivalents for all of it.

Policy changes are also cheap compared with buying hardware. A queue rule or fair-share weight can be changed in an afternoon, measured for a week and rolled back, so it is usually the first thing to fix.

Classify the workload first

EDA jobs differ in urgency, duration and resource shape. A cell-level DRC is short and light. A full-chip Calibre or extraction run is long, needs a lot of memory on one host, and has a hard deadline. A nightly regression is thousands of short jobs. An interactive Virtuoso or waveform session has a person waiting on it and does not tolerate preemption.

Name classes by what they mean for the schedule, not by tool or team: signoff (gates tapeout), regression (validates changes), interactive (a human is waiting), batch (everything else). Tools change between projects; the meaning of a class does not. Give each class a default priority, expected runtime, memory profile and license list, so users do not have to hand-tune every submission. Per-project queues feel fair but hide the real question, which is what the job does for the schedule.

Queues, fair share and caps

Keep the structure small: one queue per class plus a long-job lane if you need it. Inside a queue, order jobs by fair share (consumption over a decaying window per user or group) rather than submission order, so a user who has been running all day yields to one who has not. In LSF this lives in lsb.queues:

Begin Queue
QUEUE_NAME   = regress
PRIORITY     = 30
FAIRSHARE    = USER_SHARES[[default,1]]
UJOB_LIMIT   = 400
DESCRIPTION  = Nightly regression, equal share per user, capped per user
End Queue

In Slurm, fair share comes from the multifactor priority plugin (PriorityType=priority/multifactor and PriorityWeightFairshare in slurm.conf), and the per-user cap from a QOS:

sacctmgr modify qos regress set MaxJobsPerUser=400

The cap matters more than any fair-share weight. One regression can submit thousands of jobs; without a per-user or per-suite limit it fills every queue it can reach. Preemption is the other policy to write down: interactive work should be able to take slots back from batch work quickly, and batch jobs should be safe to requeue.

Submitting with explicit resources

Make jobs say what they need. A full-chip DRC job on LSF that wants 16 cores on one host and a large memory reservation:

bsub -q signoff -n 16 -R "span[hosts=1] rusage[mem=64000]" \
     -o drc.%J.log calibre -drc -hier -turbo 16 rules.svrf

The mem value is in the unit set by LSF_UNIT_FOR_LIMITS on your cluster (often MB). The Slurm equivalent:

sbatch -p signoff -c 16 --mem=64G run_drc.sh

Wrap these in the flow scripts so the class defaults are applied automatically and users only override when they have a reason.

License-aware dispatch

Slots and licenses are separate limited resources. If the scheduler only knows about slots, a job starts, blocks on a license checkout and holds the slot doing nothing. The fix is to give the scheduler the license count and have it keep the job pending until the feature is free.

  • LSF: IBM Spectrum LSF License Scheduler polls the FlexNet servers and allocates features by project share. Without it, a site-defined shared resource can stand in for a feature, requested as -R "rusage[calibre_drc=1]".
  • Slurm: declare counts with Licenses=calibre_drc:20 in slurm.conf (or as remote licenses through sacctmgr add resource) and request them with sbatch --licenses=calibre_drc:1. Slurm does not query FlexNet itself, so these counts are bookkeeping you have to keep in line with the real license file.

Model the features a tool actually checks out, not just the top-level one; many tools pull several option features per run, and scheduling against only the base feature oversubscribes. Recheck the map after each tool upgrade and alert when denials cluster on one feature. Grouping jobs with the same license signature also cuts checkout churn when a pool is nearly full.

Environment classes as a constraint

Hosts are rarely uniform: a new OS image or tool release rolls out gradually. Define a few environment classes, each mapped to a qualified OS, tool and PDK set, tag hosts with them, and make jobs request their class: a boolean host resource in LSF (-R "select[rhel9]") or a node feature in Slurm (--constraint=rhel9). A job then cannot land on a host where its tool build was never qualified. Per-job overrides should be the exception and should be logged.

Storage-aware placement

Physical verification and full-chip STA are often limited by I/O, not CPU: they read large libraries and design databases repeatedly. Many of them starting at once against one NFS filer slow down every job on the farm. Cap concurrent heavy jobs per filesystem (a shared resource or limit per mount works in both schedulers), stagger the start of large sweeps, and stage read-mostly libraries to local disk on the compute host where the flow allows it.

Reserved capacity for interactive work

Interactive layout, schematic and debug sessions need to start within seconds. If they queue behind a regression, engineers start running them out of band on whatever host they can find. Reserve a small pool for interactive jobs that batch work cannot claim, size it from measured daytime demand, and shrink it outside working hours.

Signals worth tracking

Report queue wait per class as a distribution, not an average: a two-minute median can hide signoff jobs waiting two hours. Alongside it, track slot utilization (is capacity the constraint, or policy?), license denials per feature, and requested versus used memory. The commands that answer most "why is my job not running" questions:

# LSF
bjobs -p                      # pending jobs with pending reasons
bjobs -l <jobid>              # full detail for one job
bqueues                       # per-queue pending and running counts

# Slurm
squeue -u $USER -t PD -o "%.10i %.20j %.30r"   # pending jobs with reason
squeue --start                                 # estimated start times
sacct -j <jobid> --format=JobID,ReqMem,MaxRSS,Elapsed

Give each signal a threshold that triggers review: wait-time growth in a class, utilization pinned above ninety percent for weeks, a denial spike after a tool upgrade. Watch trends; longer runtimes on larger designs can turn a comfortable margin into a standing queue within a quarter.

An audited lane for urgent signoff work

Fair share is right most of the time, but a signoff fix found at noon in tapeout week has to run before ten thousand regression jobs. Reserve a small slice of capacity for a priority lane that any signoff-class job can enter, keep it small enough that misuse has limited impact, and log every use with a reason. Review the log monthly: if the lane is always full, the farm is short of capacity; if it is never used, the priority setup is probably wrong.

Keep the policy under review

Farms drift. Suites request memory they never use, old project queues outlive their projects, a priority override set for a demo becomes permanent. Hold a short recurring review: wait-time trends by class, top consumers, jobs whose requests diverge from usage, and every exception granted since the last review. Keep the scheduler configuration in version control, check resource requests at submission, and put expiry dates on temporary priorities.

If you are changing an existing farm, roll out in this order: license-aware admission first (it is usually the most visible pain and easy to measure), then class-based queues and caps, then storage limits, then the reserved interactive pool. Ship each step with its wait-time and denial numbers so you can tell whether it helped or just moved the bottleneck.

We set up and tune LSF and Slurm queues as part of our CAD infrastructure services.

Frequently asked questions

How many queues should an EDA compute farm have?

One queue (LSF) or partition (Slurm) per workload class, not per team or per tool. Most farms end up with three to six: interactive, regression, physical verification and extraction, and signoff, plus perhaps a long-job lane. Every extra queue is policy someone has to maintain, so each one needs a stated purpose and an owner.

How do you stop jobs from holding a slot while they wait for a license?

Make the scheduler aware of the license count, so it keeps the job pending until the feature is free. In LSF that is License Scheduler or a shared resource requested with rusage; in Slurm it is the Licenses= setting in slurm.conf (or sacctmgr remote licenses) requested with sbatch --licenses. The job then starts only when both the slot and the license are available.

How do we measure whether the compute farm is efficient?

Track queue wait time per class as a distribution (median and 95th percentile), slot utilization, license denials per feature, and the gap between requested and used memory (sacct MaxRSS or bhist/bacct). Low wait for signoff and interactive work combined with high utilization is the goal; utilization alone says nothing.

What is the fastest way to reduce EDA queue wait times?

Classify workloads, then fix the policy mistakes that dominate waits: unbounded fan-out from a single user or regression, jobs that request far more memory than they use, and jobs that take a slot and then wait for a license. Adding hosts before fixing these usually just moves the bottleneck.

More engineering notes

Working through a problem like this?

Tell us about your flow: the tools, the PDK, what is failing and when it needs to be clean.