From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22955 invoked by alias); 4 Feb 2011 15:13:43 -0000 Received: (qmail 22946 invoked by uid 22791); 4 Feb 2011 15:13:41 -0000 X-SWARE-Spam-Status: No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,MSGID_FROM_MTA_HEADER,SPF_SOFTFAIL,TW_EG,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mtagate6.uk.ibm.com (HELO mtagate6.uk.ibm.com) (194.196.100.166) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 04 Feb 2011 15:13:36 +0000 Received: from d06nrmr1707.portsmouth.uk.ibm.com (d06nrmr1707.portsmouth.uk.ibm.com [9.149.39.225]) by mtagate6.uk.ibm.com (8.13.1/8.13.1) with ESMTP id p14FDXrx022498 for ; Fri, 4 Feb 2011 15:13:33 GMT Received: from d06av02.portsmouth.uk.ibm.com (d06av02.portsmouth.uk.ibm.com [9.149.37.228]) by d06nrmr1707.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p14FDaAg1863738 for ; Fri, 4 Feb 2011 15:13:36 GMT Received: from d06av02.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p14FDWYr030520 for ; Fri, 4 Feb 2011 08:13:33 -0700 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d06av02.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with SMTP id p14FDV8I030471; Fri, 4 Feb 2011 08:13:31 -0700 Message-Id: <201102041513.p14FDV8I030471@d06av02.portsmouth.uk.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Fri, 04 Feb 2011 16:13:31 +0100 Subject: Re: performance of multithreading gets gradually worse under gdb To: pedro@codesourcery.com (Pedro Alves) Date: Fri, 04 Feb 2011 15:13:00 -0000 From: "Ulrich Weigand" Cc: tromey@redhat.com (Tom Tromey), markus@hyperion-imrt.org (Markus Alber), msnyder@vmware.com (Michael Snyder), gdb@sourceware.org In-Reply-To: <201102041455.20607.pedro@codesourcery.com> from "Pedro Alves" at Feb 04, 2011 02:55:20 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00025.txt.bz2 Pedro Alves wrote: > > (Actually, now that every thread always has a thread_info, the > > best thing would probably be anyway to hang each thread's regcaches > > off the thread_info, and do away with the global list completely.) > > Not sure we can do that yet, at least as sole mechanism to > keep track of regcache pointers. > We have targets that do thread<->lwp ptid translation between > thread/proc stratum layers, and random places that do > get_thread_regcache (ptid) behind the core's back -- it appears > aix-thread.c could be one of those. > Another example: linux-nat.c:cancel_breakpoint builds > regcaches for lwps before linux-thread-db.c (if active at all) > has had a chance of telling the core about new > threads (in all-stop mode). Ah, I see. Yes, this looks like some more work is needed ... Thanks, Ulrich -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE Ulrich.Weigand@de.ibm.com