﻿# OpenVINO Model Server nireq: inference-request resources are not the input batch size

Distinguish OVMS nireq from input batch configuration and transport workers, using queue and inference metrics to locate waiting before tuning concurrency.

Author: Retrivium editorial team
Updated: 2026-11-04
Canonical URL: https://retrivium.ai/journal/fg2-ovms-nireq-infer-request-pool-not-batch-size/
Language: en

## A larger batch is confused with more execution requests

An operator changes nireq expecting the model to receive larger input batches. The accepted tensor shape remains unchanged while resource use and waiting behavior differ. The setting concerns internal inference-request capacity rather than rewriting the caller's tensor contract. Name the layer being tuned before comparing results. A model request, a transport connection, an OpenVINO inference request and a collection of samples inside a tensor are different units that can coexist in the same serving path.

## The parameter reference separates these controls

The [OVMS parameters](https://docs.openvino.ai/2026/model-server/ovms_docs_parameters.html) describe nireq alongside batch_size, shape, target device and transport worker settings. Review their distinct scopes and the effective automatic behavior when a value is not specified. Increasing one control does not prove an equivalent change to every other layer. In particular, keep the supported input shape identifiable so an apparent concurrency improvement is not actually a comparison between workloads with different record counts or preparation behavior inside each submitted request.

## Performance policy remains workload-dependent

The [tuning guide](https://docs.openvino.ai/2026/model-server/ovms_docs_performance_tuning.html) distinguishes classic-model performance hints and execution configuration from generative continuous batching. Apply the guidance to the actual served model path rather than assuming every endpoint uses the same scheduler. [Tensor data layout](/journal/learn-aos-soa-kernel-layout/) offers related background on separating logical samples from runtime representation. A count of internal request resources cannot independently describe the work represented by a particular tensor or the memory used while its model computation executes.

## Queue metrics reveal another boundary

The [metrics reference](https://docs.openvino.ai/2026/model-server/ovms_docs_metrics.html) distinguishes total requests being processed, active inference requests and waiting for inference-request resources. It also provides inference duration separately from request duration. [Latency-stage diagnosis](/journal/triton-latency-stage-diagnosis/) explains why these measurements should be combined without treating them as interchangeable. A busy internal request object can be loading data or running inference; a large caller population does not automatically mean equally many accelerator kernels are executing simultaneously on the intended target device.

## Tune with fixed inputs and final outcomes

Keep artifact, input shapes and arrival pattern fixed while changing the intended internal capacity. Observe waiting, useful completion rate, memory and final client latency. Test both isolated requests and overlapping traffic so a pool change is evaluated where it actually matters. A useful conclusion explains which boundary became less constrained and what resource cost increased. It does not claim that nireq enlarged input batches or guaranteed proportional throughput merely because the configuration accepted a larger internal-capacity value.
