From owner-freebsd-threads@FreeBSD.ORG Sun Mar 21 01:31:13 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44E5316A4CE; Sun, 21 Mar 2004 01:31:13 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23E2C43D1D; Sun, 21 Mar 2004 01:31:13 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc13) with ESMTP id <2004032109311201500kr3one>; Sun, 21 Mar 2004 09:31:12 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id BAA19047; Sun, 21 Mar 2004 01:31:12 -0800 (PST) Date: Sun, 21 Mar 2004 01:31:10 -0800 (PST) From: Julian Elischer To: Scott Long Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Who can commit this.. kse vs ULE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 09:31:13 -0000 Scott here's the patch I mentioned... ---------- Forwarded message ---------- Date: Wed, 17 Mar 2004 18:30:45 -0800 From: David O'Brien To: Taku YAMAMOTO Cc: freebsd-current@freebsd.org Subject: Re: [PATCH] for SCHED_ULE & libpthread issue (was Re: I like SCHED_4BSD) On Fri, Mar 12, 2004 at 09:23:47AM +0900, Taku YAMAMOTO wrote: > Until the problem is fully addressed, I will propose following patch > to be applied. (the least intrusive one attached in the former message) Do people think we should commit this? --- sched_ule.c.orig Fri Feb 13 05:24:48 2004 +++ sched_ule.c Fri Feb 13 05:37:53 2004 @@ -186,7 +186,7 @@ #define SCHED_INTERACTIVE(kg) \ (sched_interact_score(kg) < SCHED_INTERACT_THRESH) #define SCHED_CURR(kg, ke) \ - (ke->ke_thread->td_priority != kg->kg_user_pri || \ + (ke->ke_thread->td_priority < kg->kg_user_pri || \ SCHED_INTERACTIVE(kg)) /* @@ -1166,11 +1166,8 @@ */ if ((ke->ke_flags & KEF_ASSIGNED) == 0) { if (TD_IS_RUNNING(td)) { - if (td->td_proc->p_flag & P_SA) { - kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); - setrunqueue(td); - } else - kseq_runq_add(KSEQ_SELF(), ke); + kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); + setrunqueue(td); _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-threads@FreeBSD.ORG Sun Mar 21 01:45:56 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7EE0E16A4CE for ; Sun, 21 Mar 2004 01:45:56 -0800 (PST) Received: from smtp.mho.com (smtp.mho.net [64.58.4.5]) by mx1.FreeBSD.org (Postfix) with SMTP id 4F50943D41 for ; Sun, 21 Mar 2004 01:45:56 -0800 (PST) (envelope-from scottl@freebsd.org) Received: (qmail 31469 invoked by uid 1002); 21 Mar 2004 09:45:55 -0000 Received: from unknown (HELO freebsd.org) (64.58.1.252) by smtp.mho.net with SMTP; 21 Mar 2004 09:45:55 -0000 Message-ID: <405D637A.2060307@freebsd.org> Date: Sun, 21 Mar 2004 02:42:18 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.6) Gecko/20040304 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: threads@freebsd.org Subject: Re: Who can commit this.. kse vs ULE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 09:45:56 -0000 Thanks. What is the problem that is referred to in the email? This patch looks to be a hack. Scott Julian Elischer wrote: > Scott here's the patch I mentioned... > ---------- Forwarded message ---------- > Date: Wed, 17 Mar 2004 18:30:45 -0800 > From: David O'Brien > To: Taku YAMAMOTO > Cc: freebsd-current@freebsd.org > Subject: Re: [PATCH] for SCHED_ULE & libpthread issue (was Re: I like > > SCHED_4BSD) > > On Fri, Mar 12, 2004 at 09:23:47AM +0900, Taku YAMAMOTO wrote: > >>Until the problem is fully addressed, I will propose following patch >>to be applied. (the least intrusive one attached in the former message) > > > Do people think we should commit this? > > --- sched_ule.c.orig Fri Feb 13 05:24:48 2004 > +++ sched_ule.c Fri Feb 13 05:37:53 2004 > @@ -186,7 +186,7 @@ > #define SCHED_INTERACTIVE(kg) \ > (sched_interact_score(kg) < SCHED_INTERACT_THRESH) > #define SCHED_CURR(kg, ke) \ > - (ke->ke_thread->td_priority != kg->kg_user_pri || \ > + (ke->ke_thread->td_priority < kg->kg_user_pri || \ > SCHED_INTERACTIVE(kg)) > > /* > @@ -1166,11 +1166,8 @@ > */ > if ((ke->ke_flags & KEF_ASSIGNED) == 0) { > if (TD_IS_RUNNING(td)) { > - if (td->td_proc->p_flag & P_SA) { > - kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > - setrunqueue(td); > - } else > - kseq_runq_add(KSEQ_SELF(), ke); > + kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > + setrunqueue(td); > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > From owner-freebsd-threads@FreeBSD.ORG Sun Mar 21 07:10:06 2004 Return-Path: Delivered-To: freebsd-threads@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4AA5316A4CE for ; Sun, 21 Mar 2004 07:10:06 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FD4C43D45 for ; Sun, 21 Mar 2004 07:10:06 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i2LFA5bv032223 for ; Sun, 21 Mar 2004 07:10:05 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2LFA5Tb032222; Sun, 21 Mar 2004 07:10:05 -0800 (PST) (envelope-from gnats) Date: Sun, 21 Mar 2004 07:10:05 -0800 (PST) Message-Id: <200403211510.i2LFA5Tb032222@freefall.freebsd.org> To: freebsd-threads@FreeBSD.org From: Valentin Nechayev Subject: Re: kern/64313: FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOCK flag X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Valentin Nechayev List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 15:10:06 -0000 The following reply was made to PR kern/64313; it has been noted by GNATS. From: Valentin Nechayev To: Lars =?iso-8859-1?Q?K=F6ller?= Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: kern/64313: FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOCK flag Date: Sun, 21 Mar 2004 17:04:41 +0200 Mon, Mar 15, 2004 at 21:32:43, lkoeller (Lars Koeller) wrote about "kern/64313: FreeBSD (OpenBSD) pthread implicit set/unset O_NONBLOCK flag": LKl> * The pthreads implementation under the hood sets O_NONBLOCK LKl> * implicitly on all fds. This setting is not visible to the user LKl> * application but is relied upon by the pthreads library to prevent LKl> * blocking syscalls in one thread from halting all threads in the LKl> * process. When a process exit()s or exec()s, the implicit LKl> * O_NONBLOCK flags are removed from all fds, EVEN THOSE IT INHERITED. This is unavoidable feature of libc_r. It can't detect whether O_NONBLOCK was set by itself or by another application, and can't organize thread sleeping without O_NONBLOCK. If this is critical, use another thread library (e.g. linuxthreads on 4.x, libkse or libthr on 5.x). Libc_r is unrepairable for your request (unless brain-damaged unix api with its per-opened-object O_NONBLOCK will be fixed). So your PR is meaningless and should be closed. -netch- From owner-freebsd-threads@FreeBSD.ORG Sun Mar 21 12:06:29 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CA0A716A4CE; Sun, 21 Mar 2004 12:06:29 -0800 (PST) Received: from sccrmhc12.comcast.net (sccrmhc12.comcast.net [204.127.202.56]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05EF043D2D; Sun, 21 Mar 2004 12:06:27 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc12) with ESMTP id <2004032120062601200a4roge>; Sun, 21 Mar 2004 20:06:26 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id MAA24657; Sun, 21 Mar 2004 12:06:24 -0800 (PST) Date: Sun, 21 Mar 2004 12:06:23 -0800 (PST) From: Julian Elischer To: Scott Long In-Reply-To: <405D637A.2060307@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Who can commit this.. kse vs ULE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 20:06:29 -0000 ULE makes KSE threaded processes slow, unresposive and soemtimes unusably so. On Sun, 21 Mar 2004, Scott Long wrote: > Thanks. What is the problem that is referred to in the email? This > patch looks to be a hack. > > Scott > > Julian Elischer wrote: > > Scott here's the patch I mentioned... > > ---------- Forwarded message ---------- > > Date: Wed, 17 Mar 2004 18:30:45 -0800 > > From: David O'Brien > > To: Taku YAMAMOTO > > Cc: freebsd-current@freebsd.org > > Subject: Re: [PATCH] for SCHED_ULE & libpthread issue (was Re: I like > > > > SCHED_4BSD) > > > > On Fri, Mar 12, 2004 at 09:23:47AM +0900, Taku YAMAMOTO wrote: > > > >>Until the problem is fully addressed, I will propose following patch > >>to be applied. (the least intrusive one attached in the former message) > > > > > > Do people think we should commit this? > > > > --- sched_ule.c.orig Fri Feb 13 05:24:48 2004 > > +++ sched_ule.c Fri Feb 13 05:37:53 2004 > > @@ -186,7 +186,7 @@ > > #define SCHED_INTERACTIVE(kg) \ > > (sched_interact_score(kg) < SCHED_INTERACT_THRESH) > > #define SCHED_CURR(kg, ke) \ > > - (ke->ke_thread->td_priority != kg->kg_user_pri || \ > > + (ke->ke_thread->td_priority < kg->kg_user_pri || \ > > SCHED_INTERACTIVE(kg)) > > > > /* > > @@ -1166,11 +1166,8 @@ > > */ > > if ((ke->ke_flags & KEF_ASSIGNED) == 0) { > > if (TD_IS_RUNNING(td)) { > > - if (td->td_proc->p_flag & P_SA) { > > - kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > > - setrunqueue(td); > > - } else > > - kseq_runq_add(KSEQ_SELF(), ke); > > + kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > > + setrunqueue(td); > > _______________________________________________ > > freebsd-current@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > > > > > From owner-freebsd-threads@FreeBSD.ORG Sun Mar 21 14:41:54 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1939816A4CE for ; Sun, 21 Mar 2004 14:41:54 -0800 (PST) Received: from smtp.mho.com (smtp.mho.net [64.58.4.5]) by mx1.FreeBSD.org (Postfix) with SMTP id DCC4F43D39 for ; Sun, 21 Mar 2004 14:41:53 -0800 (PST) (envelope-from scottl@freebsd.org) Received: (qmail 63389 invoked by uid 1002); 21 Mar 2004 22:41:51 -0000 Received: from unknown (HELO ?10.4.1.17?) (64.58.1.252) by smtp.mho.net with SMTP; 21 Mar 2004 22:41:51 -0000 Date: Sun, 21 Mar 2004 15:46:03 -0700 (MST) From: Scott Long X-X-Sender: scottl@pooker.samsco.home To: Julian Elischer In-Reply-To: Message-ID: <20040321154513.Q30715@pooker.samsco.home> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Who can commit this.. kse vs ULE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Mar 2004 22:41:54 -0000 This is a qualitative statement. What exactly is the problem, on a technical level? Scott On Sun, 21 Mar 2004, Julian Elischer wrote: > ULE makes KSE threaded processes slow, unresposive and soemtimes > unusably so. > > On Sun, 21 Mar 2004, Scott Long wrote: > > > Thanks. What is the problem that is referred to in the email? This > > patch looks to be a hack. > > > > Scott > > > > Julian Elischer wrote: > > > Scott here's the patch I mentioned... > > > ---------- Forwarded message ---------- > > > Date: Wed, 17 Mar 2004 18:30:45 -0800 > > > From: David O'Brien > > > To: Taku YAMAMOTO > > > Cc: freebsd-current@freebsd.org > > > Subject: Re: [PATCH] for SCHED_ULE & libpthread issue (was Re: I like > > > > > > SCHED_4BSD) > > > > > > On Fri, Mar 12, 2004 at 09:23:47AM +0900, Taku YAMAMOTO wrote: > > > > > >>Until the problem is fully addressed, I will propose following patch > > >>to be applied. (the least intrusive one attached in the former message) > > > > > > > > > Do people think we should commit this? > > > > > > --- sched_ule.c.orig Fri Feb 13 05:24:48 2004 > > > +++ sched_ule.c Fri Feb 13 05:37:53 2004 > > > @@ -186,7 +186,7 @@ > > > #define SCHED_INTERACTIVE(kg) \ > > > (sched_interact_score(kg) < SCHED_INTERACT_THRESH) > > > #define SCHED_CURR(kg, ke) \ > > > - (ke->ke_thread->td_priority != kg->kg_user_pri || \ > > > + (ke->ke_thread->td_priority < kg->kg_user_pri || \ > > > SCHED_INTERACTIVE(kg)) > > > > > > /* > > > @@ -1166,11 +1166,8 @@ > > > */ > > > if ((ke->ke_flags & KEF_ASSIGNED) == 0) { > > > if (TD_IS_RUNNING(td)) { > > > - if (td->td_proc->p_flag & P_SA) { > > > - kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > > > - setrunqueue(td); > > > - } else > > > - kseq_runq_add(KSEQ_SELF(), ke); > > > + kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > > > + setrunqueue(td); > > > _______________________________________________ > > > freebsd-current@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > > > > > > > > > > > > > From owner-freebsd-threads@FreeBSD.ORG Sun Mar 21 16:56:27 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2CAF216A4CE; Sun, 21 Mar 2004 16:56:27 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id CA2EC43D2F; Sun, 21 Mar 2004 16:56:26 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc13) with ESMTP id <2004032200562501600a7s0oe>; Mon, 22 Mar 2004 00:56:25 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA27085; Sun, 21 Mar 2004 16:56:36 -0800 (PST) Date: Sun, 21 Mar 2004 16:56:35 -0800 (PST) From: Julian Elischer To: Scott Long In-Reply-To: <20040321154513.Q30715@pooker.samsco.home> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Who can commit this.. kse vs ULE X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 00:56:27 -0000 On Sun, 21 Mar 2004, Scott Long wrote: > > This is a qualitative statement. What exactly is the problem, on a > technical level? This is how it was described to me.. Obrien just committedit.. > > Scott > > On Sun, 21 Mar 2004, Julian Elischer wrote: > > > ULE makes KSE threaded processes slow, unresposive and soemtimes > > unusably so. > > > > On Sun, 21 Mar 2004, Scott Long wrote: > > > > > Thanks. What is the problem that is referred to in the email? This > > > patch looks to be a hack. > > > > > > Scott > > > > > > Julian Elischer wrote: > > > > Scott here's the patch I mentioned... > > > > ---------- Forwarded message ---------- > > > > Date: Wed, 17 Mar 2004 18:30:45 -0800 > > > > From: David O'Brien > > > > To: Taku YAMAMOTO > > > > Cc: freebsd-current@freebsd.org > > > > Subject: Re: [PATCH] for SCHED_ULE & libpthread issue (was Re: I like > > > > > > > > SCHED_4BSD) > > > > > > > > On Fri, Mar 12, 2004 at 09:23:47AM +0900, Taku YAMAMOTO wrote: > > > > > > > >>Until the problem is fully addressed, I will propose following patch > > > >>to be applied. (the least intrusive one attached in the former message) > > > > > > > > > > > > Do people think we should commit this? > > > > > > > > --- sched_ule.c.orig Fri Feb 13 05:24:48 2004 > > > > +++ sched_ule.c Fri Feb 13 05:37:53 2004 > > > > @@ -186,7 +186,7 @@ > > > > #define SCHED_INTERACTIVE(kg) \ > > > > (sched_interact_score(kg) < SCHED_INTERACT_THRESH) > > > > #define SCHED_CURR(kg, ke) \ > > > > - (ke->ke_thread->td_priority != kg->kg_user_pri || \ > > > > + (ke->ke_thread->td_priority < kg->kg_user_pri || \ > > > > SCHED_INTERACTIVE(kg)) > > > > > > > > /* > > > > @@ -1166,11 +1166,8 @@ > > > > */ > > > > if ((ke->ke_flags & KEF_ASSIGNED) == 0) { > > > > if (TD_IS_RUNNING(td)) { > > > > - if (td->td_proc->p_flag & P_SA) { > > > > - kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > > > > - setrunqueue(td); > > > > - } else > > > > - kseq_runq_add(KSEQ_SELF(), ke); > > > > + kseq_load_rem(KSEQ_CPU(ke->ke_cpu), ke); > > > > + setrunqueue(td); > > > > _______________________________________________ > > > > freebsd-current@freebsd.org mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-current > > > > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > > > > > > > > > > > > > > > > > > > > > > > From owner-freebsd-threads@FreeBSD.ORG Sun Mar 21 23:33:15 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 950D016A4CE for ; Sun, 21 Mar 2004 23:33:15 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F7EE43D31 for ; Sun, 21 Mar 2004 23:33:13 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004032207331301300dqp5de>; Mon, 22 Mar 2004 07:33:13 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id XAA30237; Sun, 21 Mar 2004 23:33:43 -0800 (PST) Date: Sun, 21 Mar 2004 23:33:42 -0800 (PST) From: Julian Elischer To: Thomas Hurst In-Reply-To: <20040322045339.GA43881@voi.aagh.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 07:33:15 -0000 On Mon, 22 Mar 2004, Thomas Hurst wrote: > Just thought I'd make a little note to let people know that we're > successfully running MySQL 4.0.18 on 5.2.1-RELEASE-p3 dated Mar 18 using > libkse, after having raised thread limits to 500 per proc/150 per group: > > Uptime: 233816 > Threads: 45 > Questions: 33388272 > Slow queries: 597 > Opens: 2725 > Flush tables: 1 > Open tables: 429 > Queries per second avg: 142.797 > > This is running on 2*1266MHz Pentium III's with 4GB of memory, although > MySQL is "only" using about 1GB of it. Main issue we've noticed is top > shows the main process as using 0.00% CPU; ps does too, but setting it > to display threads works as expected. > > We did try -CURRENT dated around the same time, but we were plagued with > MySQL lockups and such even using linuxthreads, which we've ran for over > a year fine on 4-STABLE, MySQL bugs notwithstanding. > > We're open to suggestions for improving performance and happy to test > things (within reason.. this is a production server ;) it's a pitty we can't see -current limits are increased to 500 and 1500 and code improved in several places. it would also be interesting to see how it differs with the package compiled to use process scope threads intead of system scope threads. Dan had instructions to do that somewhere I think. is 142 Queries per second ok or slow? what were you getting before? > > fwiw imho omfg wp gg np gtg k pls tnx lol! Ahem. > > -- > Thomas 'Freaky' Hurst - newzBin Developer & Admin - freaky@newzbin.com > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 06:57:54 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 763D716A4CE for ; Mon, 22 Mar 2004 06:57:54 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0FDAA43D1D for ; Mon, 22 Mar 2004 06:57:54 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2MEvitf008103; Mon, 22 Mar 2004 09:57:44 -0500 (EST) Date: Mon, 22 Mar 2004 09:57:44 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Julian Elischer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: Thomas Hurst Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 14:57:54 -0000 On Sun, 21 Mar 2004, Julian Elischer wrote: > On Mon, 22 Mar 2004, Thomas Hurst wrote: > > > Just thought I'd make a little note to let people know that we're > > successfully running MySQL 4.0.18 on 5.2.1-RELEASE-p3 dated Mar 18 using > > libkse, after having raised thread limits to 500 per proc/150 per group: > > > > Uptime: 233816 > > Threads: 45 > > Questions: 33388272 > > Slow queries: 597 > > Opens: 2725 > > Flush tables: 1 > > Open tables: 429 > > Queries per second avg: 142.797 > > > > This is running on 2*1266MHz Pentium III's with 4GB of memory, although > > MySQL is "only" using about 1GB of it. Main issue we've noticed is top > > shows the main process as using 0.00% CPU; ps does too, but setting it > > to display threads works as expected. > > > > We did try -CURRENT dated around the same time, but we were plagued with > > MySQL lockups and such even using linuxthreads, which we've ran for over > > a year fine on 4-STABLE, MySQL bugs notwithstanding. > > > > We're open to suggestions for improving performance and happy to test > > things (within reason.. this is a production server ;) > > it's a pitty we can't see -current Since 5.2[.1] doesn't have libpthread (it's still libkse), I wonder if folks having problems don't have it compiled and linked properly, or don't have a correct /etc/libmap.conf. For instance, and libmap.conf entry of: # Or whereever mysqld lives... [/usr/local/libexec/mysqld] libc_r.so.5 libpthread.so.1 libc_r.so.1 libpthread.so may not be correct if mysqld depends on other libraries that are also linked to any threads library other than libpthread. 'ldd /path/to/mysqld' will show you what libraries it is linked to. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 09:08:19 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D89E16A4CE for ; Mon, 22 Mar 2004 09:08:19 -0800 (PST) Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8862C43D3F for ; Mon, 22 Mar 2004 09:08:18 -0800 (PST) (envelope-from tom@hur.st) Received: from voi.aagh.net ([81.104.55.176]) by mta01-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040322170801.ENUW2185.mta01-svc.ntlworld.com@voi.aagh.net>; Mon, 22 Mar 2004 17:08:01 +0000 Received: from freaky by voi.aagh.net with local (Exim 4.30; FreeBSD) id 1B5SuP-000Eni-13; Mon, 22 Mar 2004 17:08:17 +0000 Date: Mon, 22 Mar 2004 17:08:16 +0000 From: Thomas Hurst To: Julian Elischer Message-ID: <20040322170816.GA56747@voi.aagh.net> Mail-Followup-To: Julian Elischer , threads@freebsd.org References: <20040322045339.GA43881@voi.aagh.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Not much. User-Agent: Mutt/1.5.6i Sender: Thomas Hurst cc: threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 17:08:19 -0000 * Julian Elischer (julian@elischer.org) wrote: > On Mon, 22 Mar 2004, Thomas Hurst wrote: > > > Just thought I'd make a little note to let people know that we're > > successfully running MySQL 4.0.18 on 5.2.1-RELEASE-p3 dated Mar 18 using > > libkse, after having raised thread limits to 500 per proc/150 per group: [..] Spoke too soon; few hours ago we got: Fatal trap 12: page fault while in kernel mode cpuid = 0; apic id = 01 fault virtual address = 0xea3db028 fault code = supervisor read, page not present instruction pointer = 0x8:0xc061e937 stack pointer = 0x10:0xea3f6d74 frame pointer = 0x10:0xbf93499c code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = resume, IOPL = 0 current process = 93103 (mysqld) We are not amused, especially since the kernel seemed to ignore our PANIC_REBOOT_WAIT_TIME=5, and now we have MySQL churning through 65 million records, which looks like it's going to take hours. This seems to be a result of a load spike caused by a cronjob. We have DSIZ/SSIZ both set to 1GB; I'm wondering if a 1GB stack is desirable, given NOTES only has it set to 128M while the DSIZ example is at 1GB... and I *really* hope it's not a hardware issue. Given it's got more fans than the latest boy band and has good quality ECC memory in it, it shouldn't be... > it's a pitty we can't see -current > > limits are increased to 500 and 1500 and code improved in several > places. Hey, we tried :) > it would also be interesting to see how it differs with the package > compiled to use process scope threads intead of system scope > threads. Dan had instructions to do that somewhere I think. Will look into this. Further pointers gratefully received :) > is 142 Queries per second ok or slow? what were you getting before? About the same. If it were slower than before I wouldn't have said it was successful. And given the latest development, maybe it's not :/ -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 09:38:48 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 55AE516A4CE for ; Mon, 22 Mar 2004 09:38:48 -0800 (PST) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 38CD643D39 for ; Mon, 22 Mar 2004 09:38:48 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc12) with ESMTP id <2004032217384701400p8kt9e>; Mon, 22 Mar 2004 17:38:47 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id JAA35364; Mon, 22 Mar 2004 09:39:45 -0800 (PST) Date: Mon, 22 Mar 2004 09:39:44 -0800 (PST) From: Julian Elischer To: Thomas Hurst In-Reply-To: <20040322170816.GA56747@voi.aagh.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 17:38:48 -0000 On Mon, 22 Mar 2004, Thomas Hurst wrote: > * Julian Elischer (julian@elischer.org) wrote: > > > On Mon, 22 Mar 2004, Thomas Hurst wrote: > > > > > Just thought I'd make a little note to let people know that we're > > > successfully running MySQL 4.0.18 on 5.2.1-RELEASE-p3 dated Mar 18 using > > > libkse, after having raised thread limits to 500 per proc/150 per group: > [..] > > Spoke too soon; few hours ago we got: > > Fatal trap 12: page fault while in kernel mode > cpuid = 0; apic id = 01 > fault virtual address = 0xea3db028 > fault code = supervisor read, page not present > instruction pointer = 0x8:0xc061e937 > stack pointer = 0x10:0xea3f6d74 > frame pointer = 0x10:0xbf93499c > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, def32 1, gran 1 > processor eflags = resume, IOPL = 0 > current process = 93103 (mysqld) > > We are not amused, especially since the kernel seemed to ignore our > PANIC_REBOOT_WAIT_TIME=5, and now we have MySQL churning through 65 > million records, which looks like it's going to take hours. I'm guessing that you don't have a debug kernel or a core dump right? The big difference between 5.2.1 and -current is that (assuming you select the BSD4 scheduler) the threads code has been cleaned up somewhat. Some edge cases have been cleened up for example. a core-dump would be great however! failing that you could do: (if you have a kernel.debug in your build tree) gdb -k kernel.debug /dev/mem x/i 0xc061e937 and see what function the pagefault occured in even without the kernel.debug there MAY be enough info in /kernel to give us a clue. > This seems to be a result of a load spike caused by a cronjob. We have > DSIZ/SSIZ both set to 1GB; I'm wondering if a 1GB stack is desirable, > given NOTES only has it set to 128M while the DSIZ example is at 1GB... > and I *really* hope it's not a hardware issue. Given it's got more fans > than the latest boy band and has good quality ECC memory in it, it > shouldn't be... > > > it's a pitty we can't see -current > > > > limits are increased to 500 and 1500 and code improved in several > > places. > > Hey, we tried :) > > > it would also be interesting to see how it differs with the package > > compiled to use process scope threads intead of system scope > > threads. Dan had instructions to do that somewhere I think. > > Will look into this. Further pointers gratefully received :) > > > is 142 Queries per second ok or slow? what were you getting before? > > About the same. If it were slower than before I wouldn't have said it > was successful. And given the latest development, maybe it's not :/ > > -- > Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ > From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 09:56:45 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 57EBB16A4CE for ; Mon, 22 Mar 2004 09:56:45 -0800 (PST) Received: from mta01-svc.ntlworld.com (mta01-svc.ntlworld.com [62.253.162.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6F9743D2D for ; Mon, 22 Mar 2004 09:56:44 -0800 (PST) (envelope-from tom@hur.st) Received: from voi.aagh.net ([81.104.55.176]) by mta01-svc.ntlworld.com (InterMail vM.4.01.03.37 201-229-121-137-20020806) with ESMTP id <20040322175626.IWGE2185.mta01-svc.ntlworld.com@voi.aagh.net>; Mon, 22 Mar 2004 17:56:26 +0000 Received: from freaky by voi.aagh.net with local (Exim 4.30; FreeBSD) id 1B5TfB-000Ewu-3a; Mon, 22 Mar 2004 17:56:37 +0000 Date: Mon, 22 Mar 2004 17:56:37 +0000 From: Thomas Hurst To: Julian Elischer Message-ID: <20040322175637.GA57230@voi.aagh.net> Mail-Followup-To: Julian Elischer , threads@freebsd.org References: <20040322170816.GA56747@voi.aagh.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Not much. User-Agent: Mutt/1.5.6i Sender: Thomas Hurst cc: threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 17:56:45 -0000 * Julian Elischer (julian@elischer.org) wrote: > I'm guessing that you don't have a debug kernel or a core dump right? You guess right; we'll make one and use that before we try to reproduce though. > The big difference between 5.2.1 and -current is that (assuming you > select the BSD4 scheduler) the threads code has been cleaned up > somewhat. Some edge cases have been cleened up for example. Hehe, my collegue says "cleaned up, broke, what's the difference ;)" > a core-dump would be great however! Well, hopefully we won't have one, or it'll mean we managed to crash again.. but otherwise sure ;) > failing that you could do: (if you have a kernel.debug in your build > tree) > > gdb -k kernel.debug /dev/mem > > x/i 0xc061e937 > > and see what function the pagefault occured in No kernel.debug either; sorry. Nice idea though; I'll remember that :) > even without the kernel.debug there MAY be enough info in /kernel > to give us a clue. I'm listening.. :) -- Thomas 'Freaky' Hurst - newzBin Developer & Admin - freaky@newzbin.com From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 11:01:36 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D58F816A4D4 for ; Mon, 22 Mar 2004 11:01:36 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B64BC43D41 for ; Mon, 22 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) i2MJ1abv058406 for ; Mon, 22 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i2MJ1aR8058400 for freebsd-threads@freebsd.org; Mon, 22 Mar 2004 11:01:36 -0800 (PST) (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 22 Mar 2004 11:01:36 -0800 (PST) Message-Id: <200403221901.i2MJ1aR8058400@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-threads@FreeBSD.org Subject: Current problem reports assigned to you X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 19:01:37 -0000 Current FreeBSD problem reports Critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/06/13] kern/19247 threads uthread_sigaction.c does not do anything o [2004/03/15] kern/64313 threads FreeBSD (OpenBSD) pthread implicit set/un 2 problems total. Serious problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/07/18] kern/20016 threads pthreads: Cannot set scheduling timer/Can o [2000/08/26] misc/20861 threads libc_r does not honor socket timeouts o [2001/01/19] bin/24472 threads libc_r does not honor SO_SNDTIMEO/SO_RCVT o [2001/01/25] bin/24632 threads libc_r delicate deviation from libc in ha o [2001/01/25] misc/24641 threads pthread_rwlock_rdlock can deadlock o [2001/11/26] bin/32295 threads pthread dont dequeue signals o [2002/02/01] i386/34536 threads accept() blocks other threads o [2002/05/25] kern/38549 threads the procces compiled whith pthread stoppe o [2002/06/27] bin/39922 threads [PATCH?] Threaded applications executed w o [2002/08/04] misc/41331 threads Pthread library open sets O_NONBLOCK flag o [2003/03/02] bin/48856 threads Setting SIGCHLD to SIG_IGN still leaves z o [2003/03/10] bin/49087 threads Signals lost in programs linked with libc a [2003/04/08] bin/50733 threads buildworld won't build, because of linkin o [2003/05/07] bin/51949 threads thread in accept cannot be cancelled 14 problems total. Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/05/25] misc/18824 threads gethostbyname is not thread safe o [2000/10/21] misc/22190 threads A threaded read(2) from a socketpair(2) f o [2001/09/09] bin/30464 threads pthread mutex attributes -- pshared o [2002/05/02] bin/37676 threads libc_r: msgsnd(), msgrcv(), pread(), pwri s [2002/07/16] misc/40671 threads pthread_cancel doesn't remove thread from 5 problems total. From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 11:49:50 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26A6216A4CE for ; Mon, 22 Mar 2004 11:49:50 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6F0543D1D for ; Mon, 22 Mar 2004 11:49:49 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2MJnitf026390; Mon, 22 Mar 2004 14:49:44 -0500 (EST) Date: Mon, 22 Mar 2004 14:49:44 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Thomas Hurst In-Reply-To: <20040322175637.GA57230@voi.aagh.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org cc: Julian Elischer Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 19:49:50 -0000 On Mon, 22 Mar 2004, Thomas Hurst wrote: > * Julian Elischer (julian@elischer.org) wrote: > > > I'm guessing that you don't have a debug kernel or a core dump right? > > You guess right; we'll make one and use that before we try to reproduce > though. > > > The big difference between 5.2.1 and -current is that (assuming you > > select the BSD4 scheduler) the threads code has been cleaned up > > somewhat. Some edge cases have been cleened up for example. > > Hehe, my collegue says "cleaned up, broke, what's the difference ;)" I suspect it's not broke; it's something that you are doing WRT compiling/linking/libmap.conf. I have Mysql 4.0 running on -current just fine, and so does the mysql maintainer. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 12:26:36 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 804AF16A4CE for ; Mon, 22 Mar 2004 12:26:36 -0800 (PST) Received: from mail.asn.net (mail.asn.net [66.235.231.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 393B043D31 for ; Mon, 22 Mar 2004 12:26:36 -0800 (PST) (envelope-from kris-fbsd@asn.net) Received: (qmail 8040 invoked by uid 80); 22 Mar 2004 20:26:35 -0000 Received: from 68.14.252.60 (SquirrelMail authenticated user kgale) by mail.asn.net with HTTP; Mon, 22 Mar 2004 13:26:35 -0700 (MST) Message-ID: <51617.68.14.252.60.1079987195.squirrel@mail.asn.net> In-Reply-To: <20040322170816.GA56747@voi.aagh.net> References: <20040322045339.GA43881@voi.aagh.net> <20040322170816.GA56747@voi.aagh.net> Date: Mon, 22 Mar 2004 13:26:35 -0700 (MST) From: "Kris Gale" To: freebsd-threads@freebsd.org User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 20:26:36 -0000 > Spoke too soon; few hours ago we got: > > Fatal trap 12: page fault while in kernel mode It's probably not a hardware issue. I was having the same problem, and posted about it extensively on this list. I even posted a backtrace a little while ago. A recent sync to -CURRENT (2 weeks ago) fixed the problem with panics for me, but made MySQL so slow in responding to surges of threads that I've given up on 5.x for now. Sorry for not keeping this list updated on those specifics, but I didn't get any interest in the crash dump, so I figured people were done hearing about my experiences with MySQL. Kris From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 12:34:32 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8AB3D16A4CF for ; Mon, 22 Mar 2004 12:34:32 -0800 (PST) Received: from mail.asn.net (mail.asn.net [66.235.231.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 44D9943D2D for ; Mon, 22 Mar 2004 12:34:32 -0800 (PST) (envelope-from kris-fbsd@asn.net) Received: (qmail 9375 invoked by uid 80); 22 Mar 2004 20:34:32 -0000 Received: from 68.14.252.60 (SquirrelMail authenticated user kgale) by mail.asn.net with HTTP; Mon, 22 Mar 2004 13:34:32 -0700 (MST) Message-ID: <51632.68.14.252.60.1079987672.squirrel@mail.asn.net> In-Reply-To: References: <20040322175637.GA57230@voi.aagh.net> Date: Mon, 22 Mar 2004 13:34:32 -0700 (MST) From: "Kris Gale" To: "Daniel Eischen" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 20:34:32 -0000 > WRT compiling/linking/libmap.conf. I have Mysql 4.0 running > on -current just fine, and so does the mysql maintainer. This is something I've said on this list quite a few times, but it may help shed some light on this situation: MySQL does run very well on -current, even handling huge loads in terms of queries per second. The problem is with surges of incoming connections. If multiple clients try to connect simultaneously, things bog down terribly. Up until a few weeks ago, a surge of incoming connections would end up causing my -current system to panic and reboot about half of the time. A recent fix must have corrected this, because I can't reproduce the kernel panic (which I could do very consistently before). However, the problem with things bogging down has gotten much, much worse. I've posted a backtrace of the crash dump to the list, and also a perl script which I was using to see the problems. If someone is just using a small number of clients (or script that just makes few connections) to test MySQL, it will appear to run beautifully. The performance in such a scenario is drastically better than under 4.x. Kris From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 12:43:21 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0711716A4CE for ; Mon, 22 Mar 2004 12:43:21 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id AD1F743D39 for ; Mon, 22 Mar 2004 12:43:20 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2MKhGtf012327; Mon, 22 Mar 2004 15:43:16 -0500 (EST) Date: Mon, 22 Mar 2004 15:43:16 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Kris Gale In-Reply-To: <51632.68.14.252.60.1079987672.squirrel@mail.asn.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 20:43:21 -0000 On Mon, 22 Mar 2004, Kris Gale wrote: > > WRT compiling/linking/libmap.conf. I have Mysql 4.0 running > > on -current just fine, and so does the mysql maintainer. > > This is something I've said on this list quite a few times, but it > may help shed some light on this situation: > > MySQL does run very well on -current, even handling huge loads > in terms of queries per second. The problem is with surges of > incoming connections. If multiple clients try to connect > simultaneously, things bog down terribly. > > Up until a few weeks ago, a surge of incoming connections > would end up causing my -current system to panic and reboot > about half of the time. > > A recent fix must have corrected this, because I can't reproduce > the kernel panic (which I could do very consistently before). > However, the problem with things bogging down has gotten > much, much worse. > > I've posted a backtrace of the crash dump to the list, and also > a perl script which I was using to see the problems. And I use still use your script to test MySQL, except that I use don't override the default for key_buffer, and I also patch MySQL to use process scope threads. > If someone is just using a small number of clients (or script that > just makes few connections) to test MySQL, it will appear to run > beautifully. The performance in such a scenario is drastically > better than under 4.x. $ cat /etc/my.cnf [client] port = 3306 socket = /tmp/mysql.sock [mysqld] set-variable = max_connections=6000 port = 3306 socket = /tmp/mysql.sock skip-locking #set-variable = key_buffer=1024M set-variable = max_allowed_packet=1M set-variable = table_cache=512 set-variable = sort_buffer=1M set-variable = record_buffer=1M set-variable = myisam_sort_buffer_size=128M set-variable = thread_cache=1 set-variable = thread_concurrency=1 server-id = 1 skip-innodb tmpdir = /usr/tmp/ [mysql] no-auto-rehash From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 12:47:53 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 707F716A4CE for ; Mon, 22 Mar 2004 12:47:53 -0800 (PST) Received: from mail.asn.net (mail.asn.net [66.235.231.4]) by mx1.FreeBSD.org (Postfix) with SMTP id 39C8E43D3F for ; Mon, 22 Mar 2004 12:47:53 -0800 (PST) (envelope-from kris-fbsd@asn.net) Received: (qmail 11311 invoked by uid 80); 22 Mar 2004 20:47:53 -0000 Received: from 68.14.252.60 (SquirrelMail authenticated user kgale) by mail.asn.net with HTTP; Mon, 22 Mar 2004 13:47:53 -0700 (MST) Message-ID: <51683.68.14.252.60.1079988473.squirrel@mail.asn.net> In-Reply-To: References: <51632.68.14.252.60.1079987672.squirrel@mail.asn.net> Date: Mon, 22 Mar 2004 13:47:53 -0700 (MST) From: "Kris Gale" To: "Daniel Eischen" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 20:47:53 -0000 > And I use still use your script to test MySQL, except that > I use don't override the default for key_buffer, and I also > patch MySQL to use process scope threads. Is there any talk of adding an option to the MySQL port to automatically add that patch? Kris From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 12:52:24 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 47BAC16A4CE for ; Mon, 22 Mar 2004 12:52:24 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B606843D53 for ; Mon, 22 Mar 2004 12:52:23 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2MKqJtf015440; Mon, 22 Mar 2004 15:52:20 -0500 (EST) Date: Mon, 22 Mar 2004 15:52:19 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Kris Gale In-Reply-To: <51683.68.14.252.60.1079988473.squirrel@mail.asn.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 20:52:24 -0000 On Mon, 22 Mar 2004, Kris Gale wrote: > > And I use still use your script to test MySQL, except that > > I use don't override the default for key_buffer, and I also > > patch MySQL to use process scope threads. > > Is there any talk of adding an option to the MySQL port to > automatically add that patch? The maintainer has sent the patch (or reported that we'd like to use process scope threads) to the mysql guys, and they're supposedly benchmarking it. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 15:31:53 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6D37D16A4CE for ; Mon, 22 Mar 2004 15:31:53 -0800 (PST) Received: from rwcrmhc11.comcast.net (rwcrmhc11.comcast.net [204.127.198.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5211643D2F for ; Mon, 22 Mar 2004 15:31:51 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc11) with ESMTP id <2004032223314601300drf44e>; Mon, 22 Mar 2004 23:31:50 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id PAA39065; Mon, 22 Mar 2004 15:33:00 -0800 (PST) Date: Mon, 22 Mar 2004 15:32:59 -0800 (PST) From: Julian Elischer To: Thomas Hurst In-Reply-To: <20040322175637.GA57230@voi.aagh.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2004 23:31:53 -0000 On Mon, 22 Mar 2004, Thomas Hurst wrote: > * Julian Elischer (julian@elischer.org) wrote: > > > I'm guessing that you don't have a debug kernel or a core dump right? > > You guess right; we'll make one and use that before we try to reproduce > though. > > > The big difference between 5.2.1 and -current is that (assuming you > > select the BSD4 scheduler) the threads code has been cleaned up > > somewhat. Some edge cases have been cleened up for example. > > Hehe, my collegue says "cleaned up, broke, what's the difference ;)" > > > a core-dump would be great however! > > Well, hopefully we won't have one, or it'll mean we managed to crash > again.. but otherwise sure ;) > > > failing that you could do: (if you have a kernel.debug in your build > > tree) > > > > gdb -k kernel.debug /dev/mem > > > > x/i 0xc061e937 > > > > and see what function the pagefault occured in > > No kernel.debug either; sorry. Nice idea though; I'll remember that :) > > > even without the kernel.debug there MAY be enough info in /kernel > > to give us a clue. > > I'm listening.. :) try the same but using /kernel instead of kernel.debug > > -- > Thomas 'Freaky' Hurst - newzBin Developer & Admin - freaky@newzbin.com > From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 16:46:33 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 05D9D16A4CE for ; Mon, 22 Mar 2004 16:46:33 -0800 (PST) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80F2443D2F for ; Mon, 22 Mar 2004 16:46:30 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc11) with ESMTP id <2004032300462901100iubnse>; Tue, 23 Mar 2004 00:46:29 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA39818; Mon, 22 Mar 2004 16:47:46 -0800 (PST) Date: Mon, 22 Mar 2004 16:47:45 -0800 (PST) From: Julian Elischer To: Kris Gale In-Reply-To: <51617.68.14.252.60.1079987195.squirrel@mail.asn.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 00:46:33 -0000 On Mon, 22 Mar 2004, Kris Gale wrote: > > Spoke too soon; few hours ago we got: > > > > Fatal trap 12: page fault while in kernel mode > > It's probably not a hardware issue. I was having the same problem, > and posted about it extensively on this list. I even posted a backtrace > a little while ago. > > A recent sync to -CURRENT (2 weeks ago) fixed the problem with panics > for me, but made MySQL so slow in responding to surges of threads > that I've given up on 5.x for now. please try again... a scheduler change was committed that may have a big effect. > > Sorry for not keeping this list updated on those specifics, but I didn't > get any interest in the crash dump, so I figured people were done > hearing about my experiences with MySQL. > > Kris > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 16:50:24 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 933C716A4D0 for ; Mon, 22 Mar 2004 16:50:24 -0800 (PST) Received: from rwcrmhc13.comcast.net (rwcrmhc13.comcast.net [204.127.198.39]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F3C543D48 for ; Mon, 22 Mar 2004 16:50:24 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (rwcrmhc13) with ESMTP id <2004032300502201500kthp3e>; Tue, 23 Mar 2004 00:50:23 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id QAA39859; Mon, 22 Mar 2004 16:51:40 -0800 (PST) Date: Mon, 22 Mar 2004 16:51:39 -0800 (PST) From: Julian Elischer To: Kris Gale In-Reply-To: <51632.68.14.252.60.1079987672.squirrel@mail.asn.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 00:50:24 -0000 On Mon, 22 Mar 2004, Kris Gale wrote: > > WRT compiling/linking/libmap.conf. I have Mysql 4.0 running > > on -current just fine, and so does the mysql maintainer. > > This is something I've said on this list quite a few times, but it > may help shed some light on this situation: > > MySQL does run very well on -current, even handling huge loads > in terms of queries per second. The problem is with surges of > incoming connections. If multiple clients try to connect > simultaneously, things bog down terribly. > > Up until a few weeks ago, a surge of incoming connections > would end up causing my -current system to panic and reboot > about half of the time. > > A recent fix must have corrected this, because I can't reproduce > the kernel panic (which I could do very consistently before). > However, the problem with things bogging down has gotten > much, much worse. you need to help us here.. if you have the ability to simulate this then contact me and we can try various debugging techniques to see what is going on. > > I've posted a backtrace of the crash dump to the list, and also > a perl script which I was using to see the problems. > > If someone is just using a small number of clients (or script that > just makes few connections) to test MySQL, it will appear to run > beautifully. The performance in such a scenario is drastically > better than under 4.x. WHat if you artificially give it one burst of heavy load first? does it handle subsequent loads well? does it act any differently when you use process scope threads instead of system scope threads? (I think Dan sent you the patch to mysql to try this) From owner-freebsd-threads@FreeBSD.ORG Mon Mar 22 17:34:05 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BBFB16A4CE for ; Mon, 22 Mar 2004 17:34:05 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C01F643D2F for ; Mon, 22 Mar 2004 17:34:04 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2N1Xwtf006971; Mon, 22 Mar 2004 20:33:58 -0500 (EST) Date: Mon, 22 Mar 2004 20:33:58 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Julian Elischer In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: KSE/mysql X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 01:34:05 -0000 [ -threads added ] On Mon, 22 Mar 2004, Julian Elischer wrote: > > can you post the patch to mysql to make it process-scope? I already did in this recent message to -current: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=2082642+0+archive/2004/freebsd-current/20040321.freebsd-current and this message to -threads: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=122174+0+archive/2004/freebsd-threads/20040222.freebsd-threads The actual patch to mysql40-server is at: http://people.freebsd.org/~deischen/mysql40-server.diffs -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 04:22:54 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A45D16A4CE; Tue, 23 Mar 2004 04:22:54 -0800 (PST) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C0EC43D45; Tue, 23 Mar 2004 04:22:53 -0800 (PST) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with asmtp (Exim 4.30; FreeBSD) id 1B5kql-0009E0-2I; Tue, 23 Mar 2004 20:17:43 +0800 Message-Id: <6.0.3.0.2.20040323201836.02b09cc8@202.179.0.80> X-Sender: ganbold@micom.mng.net@202.179.0.80 X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Tue, 23 Mar 2004 20:27:50 +0800 To: freebsd-ports@freebsd.org From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-current@freebsd.org cc: freebsd-threads@freebsd.org Subject: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 12:22:54 -0000 Hi, Today I wanted to upgrade mysql-4.0.17 to mysql-4.0.18 in FreeBSD-5.2-CURRENT. I used following options to compile from ports collection: make WITH_CHARSET=cp1251 WITH_LINUXTHREADS=yes BUILD_STATIC=yes install However when I tried to run mysql server log says: ------------------------------------------------ ... 040323 19:52:50 mysqld restarted 040323 19:52:50 InnoDB: Started /usr/local/libexec/mysqld: ready for connections. Version: '4.0.18-log' socket: '/tmp/mysql.sock' port: 3306 mysqld got signal 11; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. key_buffer_size=402653184 read_buffer_size=2093056 max_used_connections=0 max_connections=1000 threads_connected=0 It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections = 290904 K bytes of memory Hope that's ok; if not, decrease some variables in the equation. Number of processes running now: 0 040323 19:52:54 mysqld restarted 040323 19:52:55 InnoDB: Started /usr/local/libexec/mysqld: ready for connections. Version: '4.0.18-log' socket: '/tmp/mysql.sock' port: 3306 mysqld got signal 11; This could be because you hit a bug. It is also possible that this binary or one of the libraries it was linked against is corrupt, improperly built, or misconfigured. This error can also be caused by malfunctioning hardware. We will try our best to scrape up some info that will hopefully help diagnose the problem, but since we have already crashed, something is definitely wrong and this may fail. ... --------------------------------------------------------------- I tried with linuxthreads-2.2.3_15 and linuxthreads-2.2.3_13 but mysql server says same error. I even tried to build without linuxthreads but it says same error. I even tried to downgrade mysql server to 4.0.17 but same error. FreeBSD was updated on March 3 2004. I tried when it was update on March 3, same problem. Then I updated FreeBSD server using cvsup and the tried to install and run mysql. Same problem. Before mysql update was really easy, but now I have big problem. What should do in this case? Is there anybody solved this problem before? tia, Ganbold From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 05:41:58 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3538F16A4CE; Tue, 23 Mar 2004 05:41:58 -0800 (PST) Received: from server.alexdupre.com (host245-49.pool8288.interbusiness.it [82.88.49.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7551143D5F; Tue, 23 Mar 2004 05:41:57 -0800 (PST) (envelope-from ale@FreeBSD.org) Received: from FreeBSD.org (thunder.alexdupre.com [192.168.0.101]) i2NDfqg0069342; Tue, 23 Mar 2004 14:41:55 +0100 (CET) (envelope-from ale@FreeBSD.org) Message-ID: <40603EA0.1090608@FreeBSD.org> Date: Tue, 23 Mar 2004 14:41:52 +0100 From: Alex Dupre User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040312) X-Accept-Language: en MIME-Version: 1.0 To: Ganbold References: <6.0.3.0.2.20040323201836.02b09cc8@202.179.0.80> In-Reply-To: <6.0.3.0.2.20040323201836.02b09cc8@202.179.0.80> X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@FreeBSD.org cc: freebsd-ports@FreeBSD.org cc: freebsd-threads@FreeBSD.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 13:41:58 -0000 Ganbold wrote: > Before mysql update was really easy, but now I have big problem. > What should do in this case? Is there anybody solved this problem before? You should read the mailing lists before posting on them...btw, it seems to be a problem with CPUTYPE not set in /etc/make.conf.....currently it is known to work with CPUTYPE=p3 and to not work without CPUTYPE....otherwise you can remove --with-libwrap from your Makefile and loose the tcpwrapper support. -- Alex Dupre From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 07:59:58 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A895716A4CE; Tue, 23 Mar 2004 07:59:58 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DD9543D45; Tue, 23 Mar 2004 07:59:58 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2NFxutf002960; Tue, 23 Mar 2004 10:59:56 -0500 (EST) Date: Tue, 23 Mar 2004 10:59:56 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Alex Dupre In-Reply-To: <40603EA0.1090608@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@freebsd.org cc: freebsd-ports@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 15:59:58 -0000 On Tue, 23 Mar 2004, Alex Dupre wrote: > Ganbold wrote: > > > Before mysql update was really easy, but now I have big problem. > > What should do in this case? Is there anybody solved this problem before? > > You should read the mailing lists before posting on them...btw, it seems > to be a problem with CPUTYPE not set in /etc/make.conf.....currently it > is known to work with CPUTYPE=p3 and to not work without > CPUTYPE....otherwise you can remove --with-libwrap from your Makefile I don't set CPUTYPE and it works just fine. The only flags I have are CFLAGS=-O -pipe. > and loose the tcpwrapper support. ldd on my mysqld shows that libwrap is referenced (first entry shown when displayed). -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 08:29:21 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F3FD516A4CE; Tue, 23 Mar 2004 08:29:20 -0800 (PST) Received: from server.alexdupre.com (host245-49.pool8288.interbusiness.it [82.88.49.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id 41DD343D39; Tue, 23 Mar 2004 08:29:20 -0800 (PST) (envelope-from ale@FreeBSD.org) Received: from FreeBSD.org (thunder.alexdupre.com [192.168.0.101]) i2NGTFlN000496; Tue, 23 Mar 2004 17:29:16 +0100 (CET) (envelope-from ale@FreeBSD.org) Message-ID: <406065DB.4030005@FreeBSD.org> Date: Tue, 23 Mar 2004 17:29:15 +0100 From: Alex Dupre User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040312) X-Accept-Language: en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@FreeBSD.org cc: freebsd-ports@FreeBSD.org cc: freebsd-threads@FreeBSD.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 16:29:21 -0000 Daniel Eischen wrote: > I don't set CPUTYPE and it works just fine. The only flags > I have are CFLAGS=-O -pipe. Strange...are you sure *tcp* connections work? I personally tested with p3 and p4 (work) and without cputype (not work). -- Alex Dupre From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 09:07:59 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4F56616A4CF; Tue, 23 Mar 2004 09:07:59 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id D30DB43D49; Tue, 23 Mar 2004 09:07:58 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2NH7vtf020130; Tue, 23 Mar 2004 12:07:57 -0500 (EST) Date: Tue, 23 Mar 2004 12:07:57 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Alex Dupre In-Reply-To: <406065DB.4030005@FreeBSD.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current@FreeBSD.org cc: freebsd-ports@FreeBSD.org cc: freebsd-threads@FreeBSD.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 17:07:59 -0000 On Tue, 23 Mar 2004, Alex Dupre wrote: > Daniel Eischen wrote: > > > I don't set CPUTYPE and it works just fine. The only flags > > I have are CFLAGS=-O -pipe. > > Strange...are you sure *tcp* connections work? I personally tested with > p3 and p4 (work) and without cputype (not work). Does the perl script I sent you utilize tcp connections? If so, then yes they work. I was running the script on the same system as the server. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 09:35:30 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99A9F16A4CE; Tue, 23 Mar 2004 09:35:30 -0800 (PST) Received: from server.alexdupre.com (host245-49.pool8288.interbusiness.it [82.88.49.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id F11F643D31; Tue, 23 Mar 2004 09:35:29 -0800 (PST) (envelope-from ale@FreeBSD.org) Received: from FreeBSD.org (thunder.alexdupre.com [192.168.0.101]) i2NHZRlN000741; Tue, 23 Mar 2004 18:35:28 +0100 (CET) (envelope-from ale@FreeBSD.org) Message-ID: <4060755F.6080105@FreeBSD.org> Date: Tue, 23 Mar 2004 18:35:27 +0100 From: Alex Dupre User-Agent: Mozilla Thunderbird 0.5+ (Windows/20040312) X-Accept-Language: en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: X-Enigmail-Version: 0.83.5.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-current@FreeBSD.org cc: freebsd-ports@FreeBSD.org cc: freebsd-threads@FreeBSD.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 17:35:30 -0000 Daniel Eischen wrote: > Does the perl script I sent you utilize tcp connections? If so, > then yes they work. I was running the script on the same system > as the server. In fact it doesn't use tcp connections. That script use the local socket connections. To test remote tcp connections you have to create a new mysql user that can connect from any host and then use "mysql -h " to connect (even on the same system, but using the real ip). So I'm quite sure it'll not work for you. -- Alex Dupre From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 18:11:46 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9253E16A4CE; Tue, 23 Mar 2004 18:11:46 -0800 (PST) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id E242943D45; Tue, 23 Mar 2004 18:11:44 -0800 (PST) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with asmtp (Exim 4.30; FreeBSD) id 1B5xmw-0006yH-Js; Wed, 24 Mar 2004 10:06:38 +0800 Message-Id: <6.0.3.0.2.20040324095303.029d9488@202.179.0.80> X-Sender: ganbold@micom.mng.net@202.179.0.80 X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Wed, 24 Mar 2004 10:16:38 +0800 To: Alex Dupre From: Ganbold In-Reply-To: <40603EA0.1090608@FreeBSD.org> References: <6.0.3.0.2.20040323201836.02b09cc8@202.179.0.80> <40603EA0.1090608@FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-current@freebsd.org cc: freebsd-ports@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 02:11:46 -0000 Hi, Thanks for the reply. While I was waiting for the email from mailing lists, I downloaded latest snapshot mysql-4.0.19-nightly-20040323.tar.gz from Mysql.com web site and installed with following options: CFLAGS="-DHAVE_BROKEN_REALPATH -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads" CXXFLAGS="-DHAVE_BROKEN_REALPATH -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads" ./configure --prefix=/usr/local --localstatedir=/var/db/mysql --libexecdir=/usr/local/libexec --enable-thread-safe-client --enable-local-infile --enable-assembler --with-named-thread-libs="-DHAVE_GLIBC2_STYLE_GETHOSTBYNAME_R -D_THREAD_SAFE -I /usr/local/include/pthread/linuxthreads -L/usr/local/lib -llthread -llgcc_r" --disable-shared --with-embedded-server --with-innodb make make install I didn't change anything in /etc/make.conf. Now it works just fine. Tcp connections work fine too. Another thing is I installed Mysql-4.0.18 from ports in another FreeBSD-5.2-CURRENT machine without any problem. I didn't add CPUTYPE in /etc/make.conf there either and it works fine. I will try to make tcp connections there and let you know the results. regards, Ganbold At 09:41 PM 23.03.2004, you wrote: >Ganbold wrote: > >>Before mysql update was really easy, but now I have big problem. >>What should do in this case? Is there anybody solved this problem before? > >You should read the mailing lists before posting on them...btw, it seems >to be a problem with CPUTYPE not set in /etc/make.conf.....currently it is >known to work with CPUTYPE=p3 and to not work without CPUTYPE....otherwise >you can remove --with-libwrap from your Makefile and loose the tcpwrapper >support. > >-- >Alex Dupre > From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 18:54:14 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9001416A4CE; Tue, 23 Mar 2004 18:54:14 -0800 (PST) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id B05E543D2D; Tue, 23 Mar 2004 18:54:13 -0800 (PST) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with asmtp (Exim 4.30; FreeBSD) id 1B5yS0-000M4G-7B; Wed, 24 Mar 2004 10:49:04 +0800 Message-Id: <6.0.3.0.2.20040324105608.029db1c8@202.179.0.80> X-Sender: ganbold@micom.mng.net@202.179.0.80 X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Wed, 24 Mar 2004 10:59:06 +0800 To: Alex Dupre From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-current@freebsd.org cc: freebsd-ports@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 02:54:14 -0000 Hi, It seems like tcp connections is not working in another machine with mysql-4.0.18. I will add CPUTYPE=p4 in /etc/make.conf and install it and test it. I will let you know the results. regards, Ganbold At 09:41 PM 23.03.2004, you wrote: >Ganbold wrote: > >>Before mysql update was really easy, but now I have big problem. >>What should do in this case? Is there anybody solved this problem before? > >You should read the mailing lists before posting on them...btw, it seems >to be a problem with CPUTYPE not set in /etc/make.conf.....currently it is >known to work with CPUTYPE=p3 and to not work without CPUTYPE....otherwise >you can remove --with-libwrap from your Makefile and loose the tcpwrapper >support. > >-- >Alex Dupre From owner-freebsd-threads@FreeBSD.ORG Tue Mar 23 20:23:52 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36E6216A4CE; Tue, 23 Mar 2004 20:23:52 -0800 (PST) Received: from publicd.ub.mng.net (publicd.ub.mng.net [202.179.0.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5A54C43D2D; Tue, 23 Mar 2004 20:23:51 -0800 (PST) (envelope-from ganbold@micom.mng.net) Received: from [202.179.0.164] (helo=ganbold.micom.mng.net) by publicd.ub.mng.net with asmtp (Exim 4.30; FreeBSD) id 1B5zqj-000Mg3-Gh; Wed, 24 Mar 2004 12:18:41 +0800 Message-Id: <6.0.3.0.2.20040324122232.02a419b0@202.179.0.80> X-Sender: ganbold@micom.mng.net@202.179.0.80 X-Mailer: QUALCOMM Windows Eudora Version 6.0.3.0 Date: Wed, 24 Mar 2004 12:28:40 +0800 To: Alex Dupre From: Ganbold Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: freebsd-current@freebsd.org cc: freebsd-ports@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: MySQL 4.0.18 server problem on FreeBSD 5.2-Current X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 04:23:52 -0000 Hi Alex, I tested mysql-4.0.18 server from ports with CPUTYPE=p4 options in /etc/make.conf. I works fine, even tcp connections work fine. I will wait when comes out mysql-4.0.19 and leave another server with latest snapshot of mysql. Thank you for your great help. regards, Ganbold At 09:41 PM 23.03.2004, you wrote: >Ganbold wrote: > >>Before mysql update was really easy, but now I have big problem. >>What should do in this case? Is there anybody solved this problem before? > >You should read the mailing lists before posting on them...btw, it seems >to be a problem with CPUTYPE not set in /etc/make.conf.....currently it is >known to work with CPUTYPE=p3 and to not work without CPUTYPE....otherwise >you can remove --with-libwrap from your Makefile and loose the tcpwrapper >support. > >-- >Alex Dupre From owner-freebsd-threads@FreeBSD.ORG Wed Mar 24 06:21:27 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62F5A16A4CE for ; Wed, 24 Mar 2004 06:21:27 -0800 (PST) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by mx1.FreeBSD.org (Postfix) with ESMTP id DF27F43D2D for ; Wed, 24 Mar 2004 06:21:26 -0800 (PST) (envelope-from tnelson@alcyon.ltd.uk) Received: from alcyon-home.demon.co.uk ([193.237.184.95] helo=CHERRY) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 1B69G0-000F4a-0V; Wed, 24 Mar 2004 14:21:25 +0000 From: "Trent Nelson" To: "'Peter Wemm'" Date: Wed, 24 Mar 2004 14:21:21 -0000 Organization: Alcyon Ltd MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Thread-Index: AcQJXsnGhPsxqtBHSJSlkUjw03pdvAIS7WMA In-Reply-To: <200403131633.08193.peter@wemm.org> Message-Id: cc: freebsd-threads@freebsd.org Subject: RE: threads stress test X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: tnelson@alcyon.ltd.uk List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 14:21:27 -0000 > -----Original Message----- > From: owner-freebsd-threads@freebsd.org [mailto:owner-freebsd- > threads@freebsd.org] On Behalf Of Peter Wemm > Sent: 14 March 2004 00:33 > To: freebsd-threads@freebsd.org > Subject: Re: threads stress test > I just tried this and haven't been able to break it anything with it.. > even on sledge. Can you still do it? FWIW, I just killed my box at home that I'm logged in to remotely. gcc -O3 -mcpu=i686 -march=pentium3 -o pp-lthr -libthr ./pp-lthr -v -c 4 -n 5000 -i 100 -S 32678 Hmmmm. When typing that out then, I realized I may have in fact typed 32678 not 32768, as I did above. Anyway, the box dropped all my ssh connections after about 10 seconds, and is now not responding to anything, so I assume it's panic'd. I'll see if I can provide any more info when I get home. Regards, Trent. From owner-freebsd-threads@FreeBSD.ORG Wed Mar 24 11:28:29 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 83B1E16A4CE; Wed, 24 Mar 2004 11:28:29 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27E6A43D54; Wed, 24 Mar 2004 11:28:29 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org ([24.7.73.28]) by comcast.net (sccrmhc13) with ESMTP id <2004032419282801600t3ugme>; Wed, 24 Mar 2004 19:28:28 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA63727; Wed, 24 Mar 2004 11:31:43 -0800 (PST) Date: Wed, 24 Mar 2004 11:31:42 -0800 (PST) From: Julian Elischer To: Peter Grehan In-Reply-To: <4055978C.9050308@freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: threads stress test X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 19:28:29 -0000 anyone tried the same tests with kse? On Mon, 15 Mar 2004, Peter Grehan wrote: > > I just tried this and haven't been able to break it anything with it.. > > even on sledge. Can you still do it? > > Nope, looks good now on AMD64. > > later, > > Peter. > > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to "freebsd-threads-unsubscribe@freebsd.org" > From owner-freebsd-threads@FreeBSD.ORG Wed Mar 24 11:35:51 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDD2616A4CE for ; Wed, 24 Mar 2004 11:35:51 -0800 (PST) Received: from mail.asn.net (mail.asn.net [66.235.231.4]) by mx1.FreeBSD.org (Postfix) with SMTP id B276B43D2F for ; Wed, 24 Mar 2004 11:35:51 -0800 (PST) (envelope-from kris-fbsd@asn.net) Received: (qmail 13821 invoked by uid 80); 24 Mar 2004 19:35:46 -0000 Received: from 68.228.211.254 (SquirrelMail authenticated user kgale) by mail.asn.net with HTTP; Wed, 24 Mar 2004 12:35:46 -0700 (MST) Message-ID: <50726.68.228.211.254.1080156946.squirrel@mail.asn.net> In-Reply-To: References: <51632.68.14.252.60.1079987672.squirrel@mail.asn.net> Date: Wed, 24 Mar 2004 12:35:46 -0700 (MST) From: "Kris Gale" To: "Daniel Eischen" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: freebsd-threads@freebsd.org Subject: Re: Loaded MySQL 4.0.18 w/ KSE running nicely X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Mar 2004 19:35:52 -0000 > And I use still use your script to test MySQL, except that > I use don't override the default for key_buffer, and I also > patch MySQL to use process scope threads. I just tested out the patch for mysql, and everything seems to be running very smoothly. Not only was I able to get 1800 threads (90 * 20) running (which was a huge stumbling block for me earlier), but I'm looking over at 4000 threads that managed to connect (200 * 20). Before trying the patch, I synced to -current. There was some talk about some recent scheduler changes maybe helping things. This didn't seem to help at all. Before I patched mysql, I was getting frequent lockups with as few as 100 threads. Since the key_buffer value is tuned for the amount of RAM on my test system, I've left it in place... I'm going to continue by trying to test actual queries I'd see in production to see how this compares to my 4-stable system. Kris From owner-freebsd-threads@FreeBSD.ORG Thu Mar 25 12:19:19 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6DCCA16A4CE; Thu, 25 Mar 2004 12:19:19 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 2B8EA43D1D; Thu, 25 Mar 2004 12:19:18 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 25 Mar 2004 20:19:16 +0000 (GMT) To: freebsd-threads@freebsd.org X-Request-Do: Date: Thu, 25 Mar 2004 20:19:16 +0000 From: David Malone Message-ID: <200403252019.aa67859@salmon.maths.tcd.ie> cc: niallm@enigma.ie cc: nectar@freebsd.org Subject: Threads and OpenSSL X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 20:19:19 -0000 I'd like to commit the patch in PR 51205, that compiles the OpenSSL library in a way that allows it to be used in threaded programs. This prevents things like radius daemons blowing up. The patch is quite simple, but I though I'd better run it past the threads people before I committed it. David. diff -u -r1.36 Makefile.inc --- Makefile.inc 17 Mar 2004 16:15:45 -0000 1.36 +++ Makefile.inc 18 Mar 2004 15:18:04 -0000 @@ -5,6 +5,7 @@ CFLAGS+= -DTERMIOS -DANSI_SOURCE CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR} +CFLAGS+= -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE .if !defined(MAKE_IDEA) || ${MAKE_IDEA} != YES CFLAGS+= -DOPENSSL_NO_IDEA From owner-freebsd-threads@FreeBSD.ORG Thu Mar 25 13:30:10 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ED3D516A4CE; Thu, 25 Mar 2004 13:30:10 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8474643D1D; Thu, 25 Mar 2004 13:30:10 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2PLU3tf007583; Thu, 25 Mar 2004 16:30:03 -0500 (EST) Date: Thu, 25 Mar 2004 16:30:03 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: David Malone In-Reply-To: <200403252019.aa67859@salmon.maths.tcd.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: niallm@enigma.ie cc: nectar@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: Threads and OpenSSL X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 21:30:11 -0000 On Thu, 25 Mar 2004, David Malone wrote: > I'd like to commit the patch in PR 51205, that compiles the OpenSSL > library in a way that allows it to be used in threaded programs. > This prevents things like radius daemons blowing up. > > The patch is quite simple, but I though I'd better run it past the > threads people before I committed it. > > David. > > diff -u -r1.36 Makefile.inc > --- Makefile.inc 17 Mar 2004 16:15:45 -0000 1.36 > +++ Makefile.inc 18 Mar 2004 15:18:04 -0000 > @@ -5,6 +5,7 @@ > > CFLAGS+= -DTERMIOS -DANSI_SOURCE > CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR} > +CFLAGS+= -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_THREADSAFE You don't need _REENTRANT, _THREAD_SAFE, or _THREADSAFE for our libc. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Thu Mar 25 14:00:30 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 483B916A4DE; Thu, 25 Mar 2004 14:00:30 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 5459943D3F; Thu, 25 Mar 2004 14:00:29 -0800 (PST) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 25 Mar 2004 22:00:28 +0000 (GMT) To: Daniel Eischen In-reply-to: Your message of "Thu, 25 Mar 2004 16:30:03 EST." X-Request-Do: Date: Thu, 25 Mar 2004 22:00:28 +0000 From: David Malone Message-ID: <200403252200.aa94482@salmon.maths.tcd.ie> cc: niallm@enigma.ie cc: nectar@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: Threads and OpenSSL X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 22:00:30 -0000 > > CFLAGS+= -DTERMIOS -DANSI_SOURCE > > CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR} > > +CFLAGS+= -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_TH > You don't need _REENTRANT, _THREAD_SAFE, or _THREADSAFE for > our libc. OK - I'll check they don't change anything in the OpenSSL code, and if they don't I'll remove them. (I think the flags were originally selected by a configure script somewhere...) Is it right to keep -pthread? David. From owner-freebsd-threads@FreeBSD.ORG Thu Mar 25 14:07:54 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 16AEA16A4CE for ; Thu, 25 Mar 2004 14:07:54 -0800 (PST) Received: from gw.celabo.org (gw.celabo.org [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id C953843D2D for ; Thu, 25 Mar 2004 14:07:53 -0800 (PST) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (verified OK)) by gw.celabo.org (Postfix) with ESMTP id 529AC54846; Thu, 25 Mar 2004 16:07:53 -0600 (CST) Received: by madman.celabo.org (Postfix, from userid 1001) id E22146D455; Thu, 25 Mar 2004 16:07:52 -0600 (CST) Date: Thu, 25 Mar 2004 16:07:52 -0600 From: "Jacques A. Vidrine" To: David Malone Message-ID: <20040325220752.GF64261@madman.celabo.org> Mail-Followup-To: "Jacques A. Vidrine" , David Malone , Daniel Eischen , freebsd-threads@freebsd.org, niallm@enigma.ie References: <200403252200.aa94482@salmon.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200403252200.aa94482@salmon.maths.tcd.ie> X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.6i cc: niallm@enigma.ie cc: freebsd-threads@freebsd.org Subject: Re: Threads and OpenSSL X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Mar 2004 22:07:54 -0000 On Thu, Mar 25, 2004 at 10:00:28PM +0000, David Malone wrote: > OK - I'll check they don't change anything in the OpenSSL code, and > if they don't I'll remove them. (I think the flags were originally > selected by a configure script somewhere...) OpenSSL never references these symbols. Cheers, -- Jacques Vidrine / nectar@celabo.org / jvidrine@verio.net / nectar@freebsd.org From owner-freebsd-threads@FreeBSD.ORG Thu Mar 25 16:27:04 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C54ED16A4CE; Thu, 25 Mar 2004 16:27:04 -0800 (PST) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4284B43D46; Thu, 25 Mar 2004 16:27:04 -0800 (PST) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i2Q0Qrtf022140; Thu, 25 Mar 2004 19:26:55 -0500 (EST) Date: Thu, 25 Mar 2004 19:26:53 -0500 (EST) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: David Malone In-Reply-To: <200403252200.aa94482@salmon.maths.tcd.ie> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: niallm@enigma.ie cc: nectar@freebsd.org cc: freebsd-threads@freebsd.org Subject: Re: Threads and OpenSSL X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 00:27:04 -0000 On Thu, 25 Mar 2004, David Malone wrote: > > > CFLAGS+= -DTERMIOS -DANSI_SOURCE > > > CFLAGS+= -I${LCRYPTO_SRC} -I${LCRYPTO_SRC}/crypto -I${.OBJDIR} > > > +CFLAGS+= -DOPENSSL_THREADS -pthread -D_REENTRANT -D_THREAD_SAFE -D_TH > > > You don't need _REENTRANT, _THREAD_SAFE, or _THREADSAFE for > > our libc. > > OK - I'll check they don't change anything in the OpenSSL code, and > if they don't I'll remove them. (I think the flags were originally > selected by a configure script somewhere...) > > Is it right to keep -pthread? I think it is OK since we have said that we are going to support gcc -pthread. -lpthread is preferred, though. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Fri Mar 26 01:40:50 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5EDDD16A4CE for ; Fri, 26 Mar 2004 01:40:50 -0800 (PST) Received: from liberty.onthenet.com.au (liberty.OntheNet.com.au [203.22.124.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2B0A43D1D for ; Fri, 26 Mar 2004 01:40:49 -0800 (PST) (envelope-from grehan@freebsd.org) Received: from freebsd.org (CPE-30-75.dsl.onthenet.net [203.144.30.75]) i2Q9eFZG060912; Fri, 26 Mar 2004 19:40:16 +1000 (EST) (envelope-from grehan@freebsd.org) Message-ID: <4063FB42.5030608@freebsd.org> Date: Fri, 26 Mar 2004 19:43:30 +1000 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030524 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Julian Elischer References: In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: threads stress test X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Mar 2004 09:40:50 -0000 Julian Elischer wrote: > anyone tried the same tests with kse? I re-tried with both libthr and kse on amd64, although not with the same parameters that Trent tried. later, Peter. From owner-freebsd-threads@FreeBSD.ORG Sat Mar 27 14:52:30 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D11B016A4CE for ; Sat, 27 Mar 2004 14:52:30 -0800 (PST) Received: from mail2.mail.iol.ie (mail2.mail.iol.ie [193.95.141.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18EDA43D41 for ; Sat, 27 Mar 2004 14:52:30 -0800 (PST) (envelope-from s_sourceforge@nedprod.com) Received: from dialup024.ts523.cwt.esat.net ([194.165.172.24] helo=kate) by mail2.mail.iol.ie with esmtp (Exim 3.36 #9) id 1B7MfE-0002Ql-00 for freebsd-threads@freebsd.org; Sat, 27 Mar 2004 22:52:28 +0000 From: "Niall Douglas" To: freebsd-threads@freebsd.org Date: Sat, 27 Mar 2004 22:53:00 -0000 MIME-Version: 1.0 Message-ID: <406605CC.14911.CD2D006@localhost> Priority: normal X-PM-Encryptor: IDWPGP-PM32, 4 X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: GDB 6.0 and FreeBSD threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Mar 2004 22:52:30 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I'm nearly finished porting my project to FreeBSD from Linux but I'm getting a SIGSEGV at odd places in the code. Unfortunately my project absolutely requires G++ v3.4 as the template support in v3.3 is not up to par. Hence one has a problem debugging the executable with gdb <6.0 (it works, but it's flaky). I tried compiling gdb 6.0 on FreeBSD and it compiles fine. Unfortunately it appears to be missing thread support which is most annoying. After searching around, I've discovered you guys patched gdb 5.x with uthread.c. Here's my question - how much work would be required to getting the 5.x uthread.c to work with gdb 6.0? Has somebody already done most of the work (if so, can you supply me with a diff)? I don't need fantastic support, just enough to help me find this bug (it's weird - it's almost as though g++ is writing off the end of the stack ie; bad code generation. Yet surely if that were the case, we'd have the same SIGSEGV on Linux :( ). Any info much appreciated. Cheers, Niall -----BEGIN PGP SIGNATURE----- Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2 iQA/AwUBQGYFzcEcvDLFGKbPEQJHlgCfY2KKaQOzPskaSQHegsIzMDmgR5IAnib6 AXyRMyuQgka/IvsjlI6dZS5w =b1Vq -----END PGP SIGNATURE----- From owner-freebsd-threads@FreeBSD.ORG Sat Mar 27 16:07:35 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0C28416A4CE for ; Sat, 27 Mar 2004 16:07:35 -0800 (PST) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8BBC43D4C for ; Sat, 27 Mar 2004 16:07:34 -0800 (PST) (envelope-from julian@elischer.org) Received: from elischer.org (adsl-216-100-132-94.dsl.snfc21.pacbell.net [216.100.132.94])i2S07RGa122534; Sat, 27 Mar 2004 19:07:33 -0500 Message-ID: <406616D1.6090108@elischer.org> Date: Sat, 27 Mar 2004 16:05:37 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.4b) Gecko/20030524 X-Accept-Language: en, hu MIME-Version: 1.0 To: Niall Douglas References: <406605CC.14911.CD2D006@localhost> In-Reply-To: <406605CC.14911.CD2D006@localhost> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-threads@freebsd.org Subject: Re: GDB 6.0 and FreeBSD threads X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 00:07:35 -0000 Niall Douglas wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi, > > I'm nearly finished porting my project to FreeBSD from Linux but I'm > getting a SIGSEGV at odd places in the code. Unfortunately my project > absolutely requires G++ v3.4 as the template support in v3.3 is not > up to par. Hence one has a problem debugging the executable with gdb > <6.0 (it works, but it's flaky). > > I tried compiling gdb 6.0 on FreeBSD and it compiles fine. > Unfortunately it appears to be missing thread support which is most > annoying. After searching around, I've discovered you guys patched > gdb 5.x with uthread.c. > > Here's my question - how much work would be required to getting the > 5.x uthread.c to work with gdb 6.0? Has somebody already done most of > the work (if so, can you supply me with a diff)? I don't need > fantastic support, just enough to help me find this bug (it's weird - > it's almost as though g++ is writing off the end of the stack ie; bad > code generation. Yet surely if that were the case, we'd have the same > SIGSEGV on Linux :( ). > > Any info much appreciated. > > Cheers, > Niall > David Xu is doing gdb support for the new threads code however it is for the gdb in teh system. I don;t know how different it wouldbe for 6.0 but you may end up needing to do some work on it yourself if you can get his patches. -- +------------------------------------+ ______ _ __ | __--_|\ Julian Elischer | \ U \/ / hard at work in | / \ julian@elischer.org +------>x USA \ a very strange | ( OZ ) \___ ___ | country ! +- X_.---._/ presently in San Francisco \_/ \\ v From owner-freebsd-threads@FreeBSD.ORG Sat Mar 27 17:57:02 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 62A9416A4CE for ; Sat, 27 Mar 2004 17:57:02 -0800 (PST) Received: from mail2.mail.iol.ie (mail2.mail.iol.ie [193.95.141.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 02E1443D1D for ; Sat, 27 Mar 2004 17:57:02 -0800 (PST) (envelope-from s_sourceforge@nedprod.com) Received: from dialup0397.ts005.bmt.esat.net ([212.2.173.141] helo=kate) by mail2.mail.iol.ie with esmtp (Exim 3.36 #9) id 1B7PXo-0005s7-00 for freebsd-threads@freebsd.org; Sun, 28 Mar 2004 02:57:00 +0100 From: "Niall Douglas" To: freebsd-threads@freebsd.org Date: Sun, 28 Mar 2004 02:57:32 +0100 MIME-Version: 1.0 Message-ID: <40663F1C.10530.D7BC254@localhost> Priority: normal In-reply-to: <406605CC.14911.CD2D006@localhost> X-PM-Encryptor: IDWPGP-PM32, 4 X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body Subject: Ludicrously small default stack (was: Re: GDB 6.0 and FreeBSD threads) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Mar 2004 01:57:02 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 27 Mar 2004 at 22:53, Niall Douglas wrote: > fantastic support, just enough to help me find this bug (it's weird - > it's almost as though g++ is writing off the end of the stack ie; bad > code generation. Yet surely if that were the case, we'd have the same > SIGSEGV on Linux :( ). I've just discovered that the default stack size on FreeBSD is 64Kb, so my words were far more precient than I knew. May I ask what possible grounds there are for this? That is a *ludicrously* small number. A reasonable minimum is 256Kb, even 512Kb - - Windows goes with 1Mb. In modern systems the memory is committed on demand so no memory is being wasted except virtual address space, and even with the 1Mb chunks Windows uses gives a space for well over 1000 threads. This last concern goes away for the next 20 years with 64 bit architectures. Cheers, Niall -----BEGIN PGP SIGNATURE----- Version: idw's PGP-Frontend 4.9.6.1 / 9-2003 + PGP 8.0.2 iQA/AwUBQGYxDcEcvDLFGKbPEQLv8wCgj+xcFrRvp96Y0QyD7seKcuv+NZsAnRx2 Vqcb+0a3r2kSUlkfM2yu58Gx =jErg -----END PGP SIGNATURE-----