List:Internals« Previous MessageNext Message »
From:Mauricio Breternitz Date:January 24 2001 4:08pm
Subject:Re: parallel Mysql ?
View as plain text  
Sasha:
     Replication means keeping multiple copies of the database, each
copy being serviced by one server running in one processor. Also, each query 
in one database is repeated on the second one. From this understanding, I 
dont see any potential performance improvement. (I have not read the 
replication code in MySQL yet, though). But this way
each query would have to be done twice.

     Our system allows for having a single copy of the database, visible to 
all processors.
As you said in your note, the key is to get the locking right.

     Can you suggest which files I should look for placing the 
inter-processor locks ? (I am leery of making every call to pthread_mutex
into a global lock, since this may hinder parallelism un-necessarily).
I think we only need to lock around opening and closing files (tables) by 
each processor. What do you think ? (& Thanks for taking the time
to help with this issue).

          regards
                        Mauricio

>From: Sasha Pachev <sasha@stripped>
>To: "Mauricio Breternitz" <mbjsql@stripped>, internals@stripped
>Subject: Re: parallel Mysql ?
>Date: Tue, 23 Jan 2001 19:19:19 -0700
>
>
> >
> >Any suggestions at which files should I look into as reasonable place to 
>put
> >inter-processor locks ?
> >(I'm currently delving in the sql/*.cc files and looking at things
> >like open_and_lock_tables ),
>
>I have only one suggestion. Try replication. If it is not fast enough,
>explain why. MySQL works best when the disk is local and there is no 
>external
>lock contention.
>
>--
>MySQL Development Team
>    __  ___     ___ ____  __
>   /  |/  /_ __/ __/ __ \/ /   Sasha Pachev <sasha@stripped>
>  / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
>/_/  /_/\_, /___/\___\_\___/  Provo, Utah, USA
>        <___/
>
>---------------------------------------------------------------------
>Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail internals-thread365@stripped
>To unsubscribe, e-mail <internals-unsubscribe@stripped>
>

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

Thread
parallel Mysql ?Mauricio Breternitz23 Jan
  • Re: parallel Mysql ?Sasha Pachev23 Jan
    • Re: parallel Mysql ?Russell E Glaue23 Jan
      • Re: parallel Mysql ?Sasha Pachev24 Jan
        • RE: parallel Mysql ?Steven Roussey24 Jan
          • Re: parallel Mysql ?Jeremy D. Zawodny24 Jan
            • Re: parallel Mysql ?Michael Widenius25 Jan
          • Re: parallel Mysql ?Sasha Pachev25 Jan
        • Re: parallel Mysql ?Paul Cadach25 Jan
Re: parallel Mysql ?Mauricio Breternitz24 Jan
  • Re: parallel Mysql ?Sasha Pachev24 Jan
  • Re: parallel Mysql ?Michael Widenius25 Jan
Re: parallel Mysql ?Mauricio Breternitz24 Jan
  • Re: parallel Mysql ?Sasha Pachev25 Jan