Project

General

Profile

Actions

Bug #632

closed
LC

tcp.reassembly_memuse incorrectly reported

Bug #632: tcp.reassembly_memuse incorrectly reported

Added by Ludovico Cavedon over 13 years ago. Updated almost 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Affected Versions:
Effort:
Difficulty:
Label:

Description

tcp.reassembly_memuse seems to be incorrectly multipled by the number of detector threads.

The static variable ra_memeuse holds the amount of memory used by the TcpSegmentPool, which is shared across all threads.
This global variable is used to set the value of the rtv->counter_tcp_reass_memuse counter (in StreamTcpReassembleMemuseCounter()), which is in the per-thread context.

However, when tcp.reassembly_memuse is printed on stats.log it is summed across all threads, therefore reporting the actual value of ra_memuse multipiled by the number of detector threads.

Verified on version suricata 1.3.4.

VJ Updated by Victor Julien over 13 years ago Actions #1

  • Status changed from New to Assigned
  • Assignee set to Anoop Saldanha

VJ Updated by Victor Julien over 12 years ago Actions #2

  • Target version set to TBD

KS Updated by Ken Steele over 11 years ago Actions #3

Now (suricat 2.0.x) stats.log reports the value of ra_memuse for each thread. So it is no longer summed incorrectly, but it no implies that threads * ra_memuse amount of memory is being used, which is wrong.

VJ Updated by Victor Julien almost 10 years ago Actions #4

  • Status changed from Assigned to Closed
  • Assignee deleted (Anoop Saldanha)
  • Target version deleted (TBD)

This has been addressed in 3.0 I believe.

Actions

Also available in: PDF Atom