List:Commits« Previous MessageNext Message »
From:Guilhem Bichot Date:March 23 2009 1:33pm
Subject:Instrumenting Maria system threads Re: [Fwd: Review of the performance
View as plain text  
Hi Marc,

about the instrumentation of Maria threads; there are currently these 
background threads (I grepped for pthread_create):

- one in maria_backup_engine.cc; lives for a period during online 
backup, you can test by doing BACKUP with a Maria table

- one in ma_checkpoint.c: that's the checkpoint thread, it is created 
when Maria starts and goes to sleep; it takes a checkpoint every 30th 
second if there has been significant activity in Maria (for example, 
more than 2 MB written to the transaction log) since the previous 
checkpoint. This thread also takes a checkpoint when it is killed, which 
can be done by entering "set global maria_checkpoint_interval=X" (this 
kills the thread, restarts it with a period of X seconds instead of 30).

- one in ma_sort.c (ma_thr_find_all_keys), it's only used by Maria's 
parallel table repair functionality. To test this you need to create a 
table with CREATE TABLE ... ROW_FORMAT=DYNAMIC (the default data format 
of Maria disables parallel repair), and start mysqld with 
--maria-parallel-repair-threads=X with X>1. Note that the table will not 
generate any logging because DYNAMIC isn't crash-safe (so you cannot 
test that in the same go as testing checkpoints).

-- 
Mr. Guilhem Bichot <guilhem@stripped>
Sun Microsystems / MySQL, Lead Software Engineer
Bordeaux, France
www.sun.com / www.mysql.com
Thread
[Fwd: Review of the performance schema instrumentation interface (was:moins de remplacements)]Marc Alff19 Mar
  • Re: [Fwd: Review of the performance schema instrumentation interface(was: moins de remplacements)]Guilhem Bichot23 Mar
    • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff23 Mar
      • Re: [Fwd: Review of the performance schema instrumentation interfaceGuilhem Bichot7 Apr
        • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff7 Apr
          • Re: [Fwd: Review of the performance schema instrumentation interfaceGuilhem Bichot7 Apr
            • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff7 Apr
              • Re: [Fwd: Review of the performance schema instrumentation interfaceGuilhem Bichot8 Apr
                • Re: [Fwd: Review of the performance schema instrumentation interfaceMarc Alff20 Jun
  • Instrumenting Maria system threads Re: [Fwd: Review of the performanceschema instrumentation interface (was: moins de remplacements)]Guilhem Bichot23 Mar
  • Re: Review of the performance schema instrumentation interfaceSergei Golubchik10 Apr
    • Re: Review of the performance schema instrumentation interfaceMichael Widenius13 Apr