X-Original-To: pgsql-admin@postgresql.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id F0E5A4762EF; Thu, 27 Mar 2003 10:12:15 -0500 (EST) Received: from ackind.net (starkiller.ackind.net [216.218.245.135]) by postgresql.org (Postfix) with ESMTP id DAB90476241; Thu, 27 Mar 2003 10:12:14 -0500 (EST) X-AntiVirus-RAV: not checked at mailgate Received: by ackind.net (CommuniGate Pro PIPE 4.0.6) with PIPE id 1582844; Thu, 27 Mar 2003 07:12:18 -0800 Received: from [167.127.24.25] (account ) by ackind.net (CommuniGate Pro WebUser 4.0.6) with HTTP id 1582843; Thu, 27 Mar 2003 07:12:09 -0800 From: "Loki" Subject: PostgreSQL + IDS load/latency help To: focus-ids@securityfocus.com, pgsql-general@postgresql.org, pgsql-admin@postgresql.org X-Mailer: CommuniGate Pro Web Mailer v.4.0.6 Date: Thu, 27 Mar 2003 07:12:09 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format="flowed" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, hits=-3.1 required=5.0 tests=BAYES_20 version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200303/458 X-Sequence-Number: 8098 Lists: We have a PostgreSQL database full of over 500,000 events.=20 When the database has a small number of events, to=20 retrieve a specific event stored in that db takes a mere=20 few seconds.=20 However, as the database grew in size to where it is now,=20 it takes over 15-20 seconds to get information back from a=20 query to that database. We have tried everything,=20 including vacuum, which someone else recommended to me. I noticed when running top(exec) on the system that the=20 PostgreSQL process eventually eats up ALL available RAM=20 (half a gig of RAM) and forces the system into scratch=20 space. When rebooting the machine the query time is=20 greatly improved back down to a reasonable query time,=20 (obviously because it hasnt eaten up all the memory yet.) Am I correct in saying that 500,000 events shouldn't be a=20 problem? Is there anyone out there with more than 500,000=20 events in their DB than what we currently have? Can anyone recommend anything to try or do to rectify the=20 situation. 15-20 seconds to get the information queried=20 from the database is unacceptable and can not work. Please=20 advise. * We are running Snort 1.9.1 storing events to a custom=20 PostgreSQL database. Dumping the database and creating a=20 new one every so often is also not an option. Can anyone=20 provide assistance? Please advise. For those needing more details on our setup, etc. I am not=20 currently able to log into the system. Please email me and=20 I can provide you more details offline. Sincerely, Eric Hines Internet Warfare and Intelligence Fate Research Labs http://www.fatelabs.com