DK 'Log


Forensic database performance optimizations
Fri, 14 Mar 2008

Remember the couple of posts I made back in November in the tuning section ? Well, I finally got the time to look into this issue again and have made some interesting discoveries the last couple of days. I'm really enjoying this.

The following table illustrates some comparisons between a stock Base 1.3.9 (ossim patched) and the tuned rewrite I've got running right now. These optimizations are now part of our appliance offering (updates for already deployed ones on the way) and will be released to the public afterwards. Thanks to everybody that has been helping me on this, specially to the people at #ossim in freenode ;-).

::start here

Just for statistical issues, the current contents of the database are (links are broken of course):


Sensors/Total: 470 / 1692
Unique Alerts: 844
Categories: 21
Total Number of Alerts: 1620567
  • Src IP addrs: 106821
  • Dest. IP addrs: 34411
  • Unique IP links 178934
  • Source Ports: 63254

    • TCP ( 61782)  UDP ( 46206)
  • Dest Ports: 36514
    • TCP ( 25886)  UDP ( 22436)
Traffic Profile by Protocol
TCP (67%)
  
UDP (32%)
  
ICMP (1%)
  

Portscan Traffic (0%)
 

Here are the results of some tests I've made, you'll have to trust my word on these :-). The testing host is a Pentium M 2.0Ghz with 1GB RAM, with query caching disabled. If you want me to post some specific test or logs as proof of concept please don't hesitate to ask.

Loading Times (in seconds)
 ACID/BASE 1.3.9 (ossim patched)AV Tuned ACID/BASE
Front Page1851
Unique Alerts444
Source IPs323
Source IPs (order by count(dest))766
Dest Ports (order by ocurrences)1056
Random Event Detail421
Next Event Detail231

Those numbers are with a couple of days worth of data on a Mysql 5.0.32, not taking other optimizations into account which vastly improve that performance on the applliances such as:

  • MySQL Partitioning.
  • Multiple discs performance increase.
  • Cache hints
  • Some more query rewrites

Well, just wanted to share those numbers since forensic database performance has been a real pita for many years and I'm really happy it's starting to work right now on large amounts of data.

Happy spring break to everyone. Aaah, and check the GSOC page on monday, hopefully we're eligible as a mentoring organization for this years summer of code, check out our ideas here.

posted at: 09:10 | path: /ossim/tuning | permanent link to this entry | 0 comments |
Tags: mysql, acid, base, optimization



Name:


E-mail:


URL:


Comment:


Categories

/ (66)
    code/ (1)
    feed/ (1)
    friends/ (1)
    ossim/ (41)
        installer/ (3)
        plugins/ (2)
        tuning/ (3)
        tutorials/ (8)
    personal/ (20)
        campus/ (2)
        opinion/ (1)
        travel/ (1)
    rants/ (1)



Dominique Karg
(feel free to get in touch)
  • Mail (gpg key)
  • Linkedin
  • Twitter
  • Forums

Friend's blogs:
  • /blog/jaime
  • /blog/juanma
  • /blog/santiago






Certified Application Security Specialist




RSS




< March 2008 >
MoTuWeThFrSaSu
      1 2
3 4 5 6 7 8 9
10111213141516
17181920212223
24252627282930
31      




Archives

2010-Apr
2010-Mar
2010-Feb
2009-Dec
2009-Sep
2009-Aug
2009-Jul
2009-Jun
2009-May
2009-Apr
2009-Mar
2009-Feb
2009-Jan
2008-Dec
2008-Oct
2008-Aug
2008-Jul
2008-May
2008-Mar
2008-Feb
2008-Jan
2007-Dec
2007-Nov




Tags

installer ossim tutorial untagged




Made with PyBlosxom