[Cdash] Database performance

Tim Gallagher tim.gallagher at gatech.edu
Fri Jan 27 22:05:03 UTC 2012

Working on the phppgadmin part, but here are the table sizes:

cdash=> select count(*) from build;
(1 row)

cdash=> select count(*) from build2test;
(1 row)

cdash=> select count(*) from test;
(1 row)

I'll check the admin as soon as I get it installed.


----- Original Message -----
From: "Julien Jomier" <julien.jomier at kitware.com>
To: "tim gallagher" <tim.gallagher at gatech.edu>
Cc: cdash at public.kitware.com
Sent: Friday, January 27, 2012 4:15:52 PM
Subject: Re: [Cdash] Database performance

Hi Tim,

If you install phppgadmin you should be able to monitor the Processes 
for the CDash database and it should display the SQL query that is 
taking a long time.

You might also need to vacuum/reindex the database and see if that helps 
a little bit. How big (number of rows in the build, build2test and test 
tables) is your current database?


On 27/01/2012 20:47, Tim Gallagher wrote:
> I'll try the asynchronous submission which will help the timeout issue, but the huge growth in insertions should still be there which is really the problem. Inserting one build report was taking 2.5 hours before I finally killed it.
> How can I get the queries? I was just watching the processes in top which shows "postgresql: cdash cdash [processid] UPDATE". Is there some option to log queries?
> Tim
> ----- Original Message -----
> From: "Julien Jomier"<julien.jomier at kitware.com>
> To: "tim gallagher"<tim.gallagher at gatech.edu>
> Cc: cdash at public.kitware.com
> Sent: Friday, January 27, 2012 2:06:16 PM
> Subject: Re: [Cdash] Database performance
> Hi Tim,
> I would recommend to enable asynchronous submissions in your
> config.local.php:
> This will let CDash receive the XML files and then process the
> submission asynchronously, without having time-outs (hopefully). The
> only minor drawback is that submissions are not instantly showing up on
> the dashboard.
> Could you send us the queries that might be taking up some time and
> we'll try to investigate.
> Julien
> On 27/01/2012 04:08, Tim Gallagher wrote:
>> Hi,
>> We have the following setup for tests in our code:
>>         ctest_configure(BUILD "${CTEST_REPO_DIRECTORY}" APPEND)
>>         set(CTEST_BUILD_COMMAND "./setup.py -t ${TESTCASE} '{${LESLIE_BUILD_DICT_BASE}}'")
>>         ctest_build(BUILD "${CTEST_REPO_DIRECTORY}" APPEND)
>>         ctest_submit(PARTS Configure Build)
>>       endforeach()
>> Each build process generates something like 20K of data based on the output from CTest. After about 10 test cases, the submissions begin to time-out with:
>>      Error when uploading file: /data/CTestScripts/leslie-release/leslie-TestData/Testing/20120127-0230/Build.xml
>>      Error message was: Operation too slow. Less than 1 bytes/sec transfered the last 120 seconds
>> When looking at the processes running on the server during this time, postgresql is busy running UPDATE and it takes progressively longer each time a submission comes in. There are over 200 tests, so only making it through 10 is a problem.
>> Are there any suggestions on how to improve the performance here? Is this a problem with postgresql or with the SQL statements CDash uses? Has anybody come across this?
>> Tim
>> _______________________________________________
>> Cdash mailing list
>> Cdash at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/cdash

More information about the CDash mailing list