Project

General

Profile

Actions

Feature #7830

closed

hyperscan: support cache invalidation and removal

Added by Lukas Sismis 6 months ago. Updated 7 days ago.

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

Description

To avoid cluttering machines with (hyperscan) cache files, Suricata should also support automatic removal of unused cache files.
This can mean removal of unused caches right away or removal of unused caches in the last, e.g., 10 days.

needs backport to 8 when the label will be available.


Related issues 2 (2 open0 closed)

Related to Suricata - Bug #8243: hyperscan: address stat path check warningAssignedLukas SismisActions
Copied to Suricata - Feature #7893: hyperscan: support cache invalidation and removal (8.0.x backport)AssignedLukas SismisActions
Actions #1

Updated by Victor Julien 4 months ago

  • Copied to Feature #7893: hyperscan: support cache invalidation and removal (8.0.x backport) added
Actions #2

Updated by Lukas Sismis 4 months ago

I identified three different scenarios that are possible to trigger cache eviction:
- on startup, delete every cache that is not used in the current run.
- delete every cache file older than <time in days/minutes/seconds>.
- set a disk memcap on the cache folder. Do not save more cache files than what is specified.

The first two are the main priority. The third can be an extension as it would stop creating the caches on memcap hit, and over time, it would fill in the right caches.

Suricata will likely need to keep a side file where metainformation about the last caches used will be noted, as we cannot rely on atime (it might be turned off).

Actions #3

Updated by Lukas Sismis 4 months ago

  • Status changed from Assigned to In Progress
Actions #4

Updated by Philippe Antoine about 2 months ago

  • Status changed from In Progress to In Review
Actions #5

Updated by Lukas Sismis 7 days ago

  • Status changed from In Review to Closed
Actions #6

Updated by Lukas Sismis 2 days ago

  • Related to Bug #8243: hyperscan: address stat path check warning added
Actions

Also available in: Atom PDF