How many workflow based voice calls can a 4core 8g...
# ask-ai
d
How many workflow based voice calls can a 4core 8gb instance handle concurrently? The number of active jobs using turn detector
t
Thanks for reaching out, akshat. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Regarding how many workflow-based voice calls a 4‑core, 8GB instance can handle (with active jobs using a turn detector): A 4‑core, 8GB instance typically supports about 10–25 concurrent workflow-based voice calls when using a turn detector. This estimate comes from a real-world load test where similar agents (using Silero VAD/turn detection) ran 30 agents and peaked at ~3.8 CPU cores and ~2.8GB RAM. Factors that move you toward the lower or higher end: • Using the LiveKit turn detector plugin (higher CPU/memory cost) vs a lighter VAD • Workflow complexity (noise cancellation, speech-to-text, function calls, logging) • Instance type (burstable instances like t3/t4g may throttle; compute-optimized instances are more consistent) If you want, tell me: • Which turn detector you use (LiveKit plugin, Silero, or other) • Typical call length and processing per call (STT, NLP, audio effects) • Cloud/instance family (burstable vs compute-optimized) I can then give a tighter concurrency estimate or a recommended instance size. Would you like that? Sources: Deploying to custom environments | LiveKit docs | LiveKit turn detector plugin | LiveKit docs | Troubleshooting Latency and Timeout Errors with Turn Detection on AWS
d
Using smart turn v3
t
Thanks — since you’re using Smart Turn v3 (LiveKit turn detector), here’s a clear estimate and what affects it. • Expected concurrency on a 4‑core, 8GB instance: about 10–25 concurrent workflow-based voice calls with active turn detection. • Why that range: Smart Turn v3 runs in a shared local process and is CPU‑heavy (adds overhead vs lighter VADs). Real-world tests with similar setups peaked near full CPU on a 4‑core, 8GB host. • Key factors that reduce concurrency: ◦ Heavy workflow logic (STT/TTS, NLP, function calls) ◦ Extra audio processing (noise cancellation, transcription) ◦ Burstable instance types (t3/t4g) which can throttle and cause timeouts • Recommendations: ◦ Use compute‑optimized instances (e.g., c6i/c7i) for predictable performance. ◦ Target non‑burstable instances to avoid throttling and keep inference latency around 50–160ms. ◦ If you want a tighter number, tell me: ▪︎ whether you also run STT/TTS per call, ▪︎ average call length and per-call processing steps, ▪︎ instance family (burstable vs compute-optimized). Would you like a tailored sizing estimate based on those details? Sources: LiveKit turn detector plugin | LiveKit docs | Troubleshooting Latency and Timeout Errors with Turn Detection on AWS | Deploying to custom environments | LiveKit docs
d
What about the memory usage per workflow call?
t
Using Smart Turn v3, expect roughly ~90–100 MB RAM per concurrent workflow-based voice call. Why: • Real-world tests show a 4‑core, 8GB instance used ~2.8 GB RAM for 30 concurrent calls (~93 MB/call). Drive‑thru examples report ~100 MB per conversation. • Smart Turn v3 runs in a shared local process and adds some overhead versus lighter VADs, so per-call memory is similar to that range. Factors that can raise per-call memory: • Running STT/TTS per call • Additional audio processing (noise reduction, feature extraction) • Extra logging or large buffers for long calls If you want a tighter per-call number, tell me: • whether you run STT/TTS alongside turn detection, • average call length, • whether you use compute‑optimized or burstable instances. Sources: Deploying to custom environments | LiveKit docs | examples/drive-thru | livekit/livekit_composite | DeepWiki
d
Is each livekit call a separate process and when I receive a message like "process memory usage is high" -> it's for a single job/call?
t
Regarding your two questions: • Each LiveKit call runs in its own isolated subprocess (one job → one subprocess). • A "process memory usage is high" alert refers to that individual subprocess/job, not the entire agent server. High memory in one job won't crash other jobs but does contribute to overall server load and can trigger load-based throttling if total load exceeds thresholds. If helpful, I can: • estimate how a single Smart Turn v3 job contributes to overall memory (roughly 90–100MB per call plus up to ~500MB shared turn-detector overhead), • or show how to interpret
load_fnc
/
load_threshold
values to predict when new jobs stop being accepted. Which would you like? Sources: Job lifecycle | LiveKit docs | LiveKit turn detector plugin | LiveKit docs | Deploying to custom environments | LiveKit docs
d
Do different jobs share memory?
t
Short answer: jobs are isolated but some memory is shared. • Each job runs in its own subprocess, so its heap and process memory are private to that job. • Shared memory/components: the agent server can host shared in‑process components (like a locally loaded Smart Turn v3 model instance or other shared libraries) that consume memory once for the host rather than once per job. The Smart Turn v3/turn detector runs in a shared process when self‑hosting, so its model footprint is not duplicated per call. • Practical effect: per‑call RAM (~90–100 MB) plus a shared model overhead (the turn detector uses up to ~500 MB) and any other shared services mean total memory = shared overhead + sum(per‑call memory). • A high memory alert on a subprocess refers to that job’s process; overall server load still increases as more jobs run and shared memory remains resident. If you want, I can estimate total memory for N concurrent calls given: • whether the turn detector is loaded once (shared) or per job, • whether you run STT/TTS per call, • instance type.