From: Steve Grubb <sgrubb@redhat.com>
To: Clif Flynt <clif@cflynt.com>
Cc: linux-audit@redhat.com
Subject: Re: SQLite Clarification
Date: Mon, 31 Jul 2006 17:13:57 -0400 [thread overview]
Message-ID: <200607311713.57472.sgrubb@redhat.com> (raw)
In-Reply-To: <20060731200523.GA1183@clif.cflynt.com>
On Monday 31 July 2006 16:05, Clif Flynt wrote:
> > The database file is only locked for the duration
> > of the write operation - not while the database is open. A write
> > normally takes a few milliseconds, then the lock goes away.
The issue here is that you may need write to have priority since there is
potentially a backlog building in the kernel. If the backlog gets too big you
will get a panic. The write operation has to be fast.
But suppose there are readers. Does the write block or fail? More of a
curiosity to me.
> > Why is 256 bytes of data for each 1MiB of database a problem?
> > Is memory so short and databases so large that this might cause
> > a problem?
Database could be huge. A paranoid admin could easily get gigabytes of data in
a short time. Or maybe someone that wrote a rule that captures too much data
could run into a problem.
> > If it is, then increase the page size from the default 1K.
> > The actually usage is 2 bits per page of data. So if pages
> > are 32KiB bytes instead of 1KiB, a 1MiB database only needs
> > 8 bytes of storage for the bitmap.
This is good to know. That would probably help.
-Steve
next prev parent reply other threads:[~2006-07-31 21:13 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-31 17:14 New List Member: Intro & comments Clif Flynt
2006-07-31 17:54 ` Steve Grubb
2006-08-07 9:37 ` Marcus Meissner
2006-07-31 20:05 ` SQLite Clarification Clif Flynt
2006-07-31 21:13 ` Steve Grubb [this message]
2006-08-02 20:49 ` auditctl question Lane Williams
2006-08-02 22:03 ` Steve Grubb
2006-08-02 22:15 ` Linda Knippers
2006-08-02 22:29 ` Steve Grubb
2006-08-03 0:22 ` Klaus Weidner
2006-08-03 13:00 ` Williams, P. Lane
2006-08-03 15:18 ` Klaus Weidner
2006-08-03 20:02 ` Williams, P. Lane
2006-08-03 20:29 ` Klaus Weidner
2006-08-03 21:06 ` Steve Grubb
2006-08-04 1:50 ` Williams, P. Lane
2006-08-04 10:28 ` Steve Grubb
2006-08-04 12:48 ` Lane Williams
2006-07-31 22:05 ` SQLite Clarification Clif Flynt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200607311713.57472.sgrubb@redhat.com \
--to=sgrubb@redhat.com \
--cc=clif@cflynt.com \
--cc=linux-audit@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.