[Oisf-devel] [PATCH 0/10] cpu affinity and misc fixes

Eric Leblond eleblond at edenwall.com
Sun Nov 21 13:30:43 UTC 2010


Hi,

This patchset rebased over 234656e5f67d89ad1fdc7877e4d2074cbd021ed3 contains
some misc fixes:
 - [PATCH 01/10] Import .gitignore file.
 - [PATCH 02/10] Convert thread PRIO to a enum
 - [PATCH 03/10] util-cpu: fix trivial typo in documentation

They are followed by my work on cpu affinity and priority. As far
as I can see, the win32 case should be handled easily. If 'exclusive'
is set on CPU set, everything should work normally. If not the affinity
setting is ignored in the win32 case.

Regarding the capability to setup runmode from the configuration file, I
think this patchset is a first step toward this target. It will be easily
extended to work with runmode configuration. I'm thus asking for inclusion
of this patchset (after of course a good review).

Pathset statistics:
 .gitignore          |   36 ++++++++
 src/Makefile.am     |    2 +-
 src/runmodes.c      |   68 ++++++--------
 src/runmodes.h      |    3 +
 src/threads.h       |   32 ++++---
 src/threadvars.h    |    2 +
 src/tm-threads.c    |   79 ++++++++++++++---
 src/tm-threads.h    |    1 +
 src/util-affinity.c |  241 +++++++++++++++++++++++++++++++++++++++++++++++++++
 src/util-affinity.h |   63 +++++++++++++
 src/util-cpu.c      |    2 +-
 suricata.yaml       |   19 ++++
 12 files changed, 481 insertions(+), 67 deletions(-)

BR,
--
Eric Leblond <eleblond at edenwall.com>



More information about the Oisf-devel mailing list