Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Oct 2002 10:20:42 -0400
From:      Nathan Hawkins <utsl@quic.net>
To:        Wes Peters <wes@softweyr.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: Database indexes and ram (was Re: using mem above 4Gb was:swapon some regular file)
Message-ID:  <3DA82FBA.9070607@quic.net>
References:  <Pine.BSF.4.21.0210081209010.11243-100000@root.org>				<1034105993.913.1.camel@vbook.express.ru> 				<200210082015.g98KFFrq084625@apollo.backplane.com> <1034109053.913.7.camel@vbook.express.ru> <200210082051.g98KpjU1084793@apollo.backplane.com> <3DA4C271.37AACAA3@softweyr.com> <3DA4C632.325F2EBE@mindspring.com> <3DA7C997.95F3C4FF@softweyr.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Wes Peters wrote:
> Some?  You've seen a production database that was normalized at ALL?
> Gee, that'd be...  nice?  astonishing?  like seeing the pope tour temple
> square?  DBA stands for Data Base A.....

Sigh. Apparently some actually believe that denormalizing a database is 
an optimization.

I should become a DBA. They get paid more than I do, and most seem to 
know less. :(

> The key to accelerating database access rarely has much to do with I/O
> speed.  How many Oracle servers do you know that can stuff a Gigabit 
> channel full, even doing straight selects?  Memory usage is VERY important
> and DBAs are not famous for optimizing queries to make effecient use of
> the processor cache.  Or anything else, for that matter.

Hmm. I have seen I/O speed become a problem. But that's generally when 
the DBA did a poor job of placing data volumes. Putting logs on the same 
disk with the filesystem where the online backups get dumped was 
spectacular. User imported some data while a backup was going, and that 
particular disk saw more activity than the other 30 or so combined... 
(Striping would have helped, but then, separating heavily used regions 
of disk onto different spindles is what striping is _for_.)

Memory usage is critical, and so is correct processor use. Oracle and 
Sybase require correct tuning on SMP machines, or they waste CPU. Lock 
tuning, IIRC can be more critical to performance than memory, at least 
with Sybase. (i.e. You can add more memory and CPUs and performance gets 
worse.)  Informix either worked vastly better, or we had a better DBA... :)

The worst performance problem I ever saw was one where the DBA insisted 
on creating a shared memory segment that was larger than physical memory 
in the machine. Keeping half your database's cache in swap is a _bad_ idea.


	---Nathan



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DA82FBA.9070607>