Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

temp data area tuning question: msg#00062

db.maxdb

Subject: temp data area tuning question

Hi,

We have some pretty complex queries that need tuning of the database. I
think we have done everything possible to tune the stored procedure (It
is already a whole lot better, 9 times faster), but it still needs to be
faster
My first thought was that we had not enough RAM and swapping was the
problem. But looking a little deeper revealed this:
(/dev/sdb1 is data disk, /dev/sda2 is swap disk)

iostat -d -x /dev/sdb1 /dev/sda2 1

Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s rkB/s wkB/s
avgrq-sz avgqu-sz await svctm %util
/dev/sdb1 0.00 111.20 0.00 167.30 0.00 2228.00 0.00
1114.00 13.32 4294688.98 0.41 0.60 10.00
/dev/sda2 0.00 0.00 0.00 0.00 0.00 0.00 0.00
0.00 0.00 0.00 0.00 0.00 0.00

Swapping is not the problem (0.00 during the whole query run), neither
is excesive reading from the datadisk, but writing to the datadisk.
I then noticed that while running these queries, the TEMP area is
growing massively: 400 / 500 MB and then going back again.

What parameters can I tune to have more of what is going on in TEMP on
disk to be in memory?
I could not find straight answers in the documentation neither via
google, so hope somebody is more knowledgeable than either two.

Thanx in advance,

Filip

--
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
* System Engineer, Verzekeringen NV *
* www.verzekeringen.be *
* Oostkaai 23 B-2170 Merksem *
* 03/6416673 - 0477/340942 *
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo