[Oisf-users] Performance on multiple CPUs

Victor Julien victor at inliniac.net
Fri Aug 26 07:52:46 UTC 2011


On 08/25/2011 08:12 PM, Gene Albin wrote:
> Does anyone know how Suricata determines the number of CPU's available on
> the machine?  I'm asking because I need to know how to tell Suricata how
> many to use when submitting jobs on this research computer.  /proc/cpuinfo
> always returns the total number of physical CPU's, and in my case I want to
> test performance on a subset of the maximum (48).

> What environment variable, or other parameter, do I need to pass to Suricata
> in order to specify the number of CPUs available.

It seems we get it from the system using:

nprocs = sysconf(_SC_NPROCESSORS_ONLN);

This can't be controlled in Suricata. Maybe it can in the system, but I
wouldn't know how. If you figure it out, please let us know.

Cheers,
Victor

-- 
---------------------------------------------
Victor Julien
http://www.inliniac.net/
PGP: http://www.inliniac.net/victorjulien.asc
---------------------------------------------




More information about the Oisf-users mailing list