Project

General

Profile

Actions

Optimization #573

open
VJ OD

Task #570: tracking: memory fragmentation

reduce allocs in signature parsing

Optimization #573: reduce allocs in signature parsing

Added by Victor Julien over 13 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
Target version:
Effort:
Difficulty:
Label:

Description

Looks like we avg to over a 100 allocs per sig.

[14488] 1/10/2012 -- 16:17:26 - (detect.c:607) <Info> (SigLoadSignatures) -- allocs 80434, frees 491
[14488] 1/10/2012 -- 16:17:26 - (detect.c:681) <Info> (SigLoadSignatures) -- Loading rule file: emerging-all.rules
[14488] 1/10/2012 -- 16:17:28 - (detect.c:712) <Info> (SigLoadSignatures) -- 1 rule files processed. 11592 rules successfully loaded, 0 rules failed
[14488] 1/10/2012 -- 16:17:28 - (detect.c:719) <Info> (SigLoadSignatures) -- allocs 1549841, frees 1104965

Related issues 1 (0 open1 closed)

Related to Suricata - Optimization #3544: Have small signature match context without allocationRejectedCommunity TicketActions

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

  • Target version changed from 2.0rc2 to 3.0RC2

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

  • % Done changed from 0 to 10

VJ Updated by Victor Julien over 10 years ago Actions #3

  • Target version changed from 3.0RC2 to 70

PA Updated by Philippe Antoine almost 7 years ago Actions #4

How can we reproduce the logs you quoted ?

VJ Updated by Victor Julien almost 7 years ago Actions #5

I don't think there is an easy way to do that anymore. Right now I would probably go with callgrind. (valgrind --tool=callgrind)

VJ Updated by Victor Julien over 5 years ago Actions #6

  • Target version changed from 70 to TBD

PA Updated by Philippe Antoine almost 3 years ago Actions #7

  • Related to Optimization #3544: Have small signature match context without allocation added
Actions

Also available in: PDF Atom