From owner-freebsd-threads@FreeBSD.ORG Sun Sep 28 19:08:46 2003 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 AB71A16A4B3 for ; Sun, 28 Sep 2003 19:08:46 -0700 (PDT) Received: from maxwell.syr.edu (maxwell.syr.edu [128.230.129.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAC894401F for ; Sun, 28 Sep 2003 19:08:45 -0700 (PDT) (envelope-from cmsedore@maxwell.syr.edu) Received: from exchange.maxwell.syr.edu (excluster2.maxwell.syr.edu [128.230.129.231]) by maxwell.syr.edu (8.12.10/8.9.1) with ESMTP id h8T28ho2089236 for ; Sun, 28 Sep 2003 22:08:43 -0400 (EDT) X-MIMEOLE: Produced By Microsoft Exchange V6.5.6944.0 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Sun, 28 Sep 2003 22:08:45 -0400 Message-ID: <32A8B2CB12BFC84D8D11D872C787AA9A515C9D@EXCHANGE.forest.maxwell.syr.edu> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: gdb and kse Thread-Index: AcOGLpytXJ/6dcv9Tu2U3Ky1SA9krw== From: "Christopher M. Sedore" To: Subject: gdb and kse 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, 29 Sep 2003 02:08:46 -0000 I'm beginning some work that utilizes kse-based threads. I've been = trying to use gdb for debugging, with very limited success. In some = instances, gdb does as one would expect (catching segvs, etc), most of = the time, however, if the program segvs, the process just hangs and gdb = sits there (the threads show state as "STOP" in top). In some cases, = hitting control-c on will bring gdb back to life, but things are not = right. =20 Breakpoints don't work, either. I'm running = 5.1-CURRENT-20030925-JPSNAP. =20 Is gdb currently working with kse threads? I asked google about gdb and = kse, but got little useful information; any pointers or help would be = appreciated. =20 (Also, are there docs on kse and what is/isn't threadsafe? I'm taking = segfaults in gethostbyname, and I don't think it is my doing.) =20 Redirects happily accepted as well, =20 -Chris From owner-freebsd-threads@FreeBSD.ORG Sun Sep 28 22:30:35 2003 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 3232316A4B3 for ; Sun, 28 Sep 2003 22:30:35 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62C8644003 for ; Sun, 28 Sep 2003 22:30:34 -0700 (PDT) (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 h8T5UTgG013298; Mon, 29 Sep 2003 01:30:29 -0400 (EDT) Date: Mon, 29 Sep 2003 01:30:29 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: "Christopher M. Sedore" In-Reply-To: <32A8B2CB12BFC84D8D11D872C787AA9A515C9D@EXCHANGE.forest.maxwell.syr.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: gdb and kse 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, 29 Sep 2003 05:30:35 -0000 On Sun, 28 Sep 2003, Christopher M. Sedore wrote: > I'm beginning some work that utilizes kse-based threads. I've been trying > to use gdb for debugging, with very limited success. In some instances, gdb > does as one would expect (catching segvs, etc), most of the time, however, > if the program segvs, the process just hangs and gdb sits there (the threads > show state as "STOP" in top). In some cases, hitting control-c on will > bring gdb back to life, but things are not right. No, gdb isn't kse thread-aware yet. Some things may look like they work because of similarities between internal thread layout in libc_r and libkse. It is on my TODO list. Gotta finish up some pressing work work first. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Mon Sep 29 09:52:33 2003 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 C15D316A4B3 for ; Mon, 29 Sep 2003 09:52:33 -0700 (PDT) Received: from main.evrocom.net (main.evrocom.net [212.39.92.2]) by mx1.FreeBSD.org (Postfix) with SMTP id A7FE043FE0 for ; Mon, 29 Sep 2003 09:52:31 -0700 (PDT) (envelope-from d-bross@evrocom.net) Received: (qmail 38646 invoked from network); 29 Sep 2003 16:52:28 -0000 Received: from unknown (HELO stefan) (217.10.249.49) by main.evrocom.net with SMTP; 29 Sep 2003 16:52:28 -0000 Message-ID: <000501c386aa$10fb1ac0$0100a8c0@stefan> From: "Stefan Chekanov" To: Date: Mon, 29 Sep 2003 19:52:27 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Subject: 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: Mon, 29 Sep 2003 16:52:33 -0000 Hi, Sorry for bothering you. I am developing an application for FreeBSD that utilizes multiple threads. It works fine, except that after some minutes of work most of the threads suddenly stop. I have examined the stack and found that most of the threads have this stack #0 ... in _thread_kern_sched() from /usr/lib/libc_r.so.4 #1 ... in _thread_kern_sched_state() from /usr/lib/libc_r.so.4 #2 ... in _thread_fd_lock_debug() from /usr/lib/libc_r.so.4 #3 ... in _close() from /usr/lib/libc_r.so.4 #4 ... in _res_close() from /usr/lib/libc_r.so.4 #5 ... in res_send() from /usr/lib/libc_r.so.4 #6 ... in res_query() from /usr/lib/libc_r.so.4 #7 ... in res_querydomain() from /usr/lib/libc_r.so.4 #8 ... in res_search() from /usr/lib/libc_r.so.4 #9 ... in _gethostbydnsname() from /usr/lib/libc_r.so.4 #10 ... in gethostbyname2() from /usr/lib/libc_r.so.4 #11 ... in gethostbyname() from /usr/lib/libc_r.so.4 and one trhead with this stack #0 ... in _thread_sys_poll() from /usr/lib/libc_r.so.4 #1 ... in _thread_kern_sched_state_unlock() from /usr/lib/libc_r.so.4 #2 ... in _thread_kern_scheduler() from /usr/lib/libc_r.so.4 #3 0x0 in ??() Does anybody have an idea what might cause threads to stop? Is it possible that sockets library is not threads safe? Especially the part that is used to resolve hostnames? Any help/idea is welcome. Thank you in advance. Best regards, Stefan ---------- From owner-freebsd-threads@FreeBSD.ORG Mon Sep 29 11:11:27 2003 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 A01A316A4B3; Mon, 29 Sep 2003 11:11:27 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1F2A4400B; Mon, 29 Sep 2003 11:11:26 -0700 (PDT) (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 h8TIBQgG026374; Mon, 29 Sep 2003 14:11:26 -0400 (EDT) Date: Mon, 29 Sep 2003 14:11:26 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: threads@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: admins@freebsd.org Subject: Need SMP access (FreeBSD port of SAPDB aka MaxDB (fwd)) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: threads@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2003 18:11:27 -0000 These guys need access to an SMP system with a lot of free diskspace. Does it have to be SMP? I would think you could develop on a UP, package it up, and test it on an SMP system. Dan Eischen ---------- Forwarded message ---------- Date: Mon, 29 Sep 2003 18:17:52 +0200 (CEST) From: mike To: deischen@freebsd.org, Subject: FreeBSD port of SAPDB aka MaxDB Hi, SAPDB aka MaxDB (It's beeing renamed) is a commercial-grade Database which comes in Opensource since May-2000. See: http://www.sapdb.org & http://www.mysql.com/maxdb In the effort of porting this beast to FreeBSD and (since it is using threads extensibly and the primary porter Kai Mosebach KSE transition...) Thanks in advance for your help. Bye/2 --- Michael Reifenberger, Business Unit Manager SAP-Basis, Plaut Consulting Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com http://www.plaut.de | http://www.Reifenberger.com From owner-freebsd-threads@FreeBSD.ORG Mon Sep 29 12:22:40 2003 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 198E016A4B3 for ; Mon, 29 Sep 2003 12:22:40 -0700 (PDT) Received: from developer.ahiv.hu (developer.ahiv.hu [195.228.168.217]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7ED8343F75 for ; Mon, 29 Sep 2003 12:22:38 -0700 (PDT) (envelope-from vnebehaj@mail.ahiv.hu) Received: from vili-pc.afh.b-m.hu (ngprs.pannongsm.hu [193.225.153.5]) (authenticated bits=0) by developer.ahiv.hu (8.12.9/8.12.6) with ESMTP id h8TJMR5M056619 for ; Mon, 29 Sep 2003 21:22:33 +0200 (CEST) (envelope-from vnebehaj@mail.ahiv.hu) Received: by vili-pc.afh.b-m.hu (Postfix, from userid 1000) id AE61D1CA358; Mon, 29 Sep 2003 21:23:15 +0200 (CEST) Date: Mon, 29 Sep 2003 21:23:15 +0200 To: freebsd-threads@freebsd.org Message-ID: <20030929192315.GB922@ahiv.hu> References: <000501c386aa$10fb1ac0$0100a8c0@stefan> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <000501c386aa$10fb1ac0$0100a8c0@stefan> User-Agent: Mutt/1.5.4i From: vnebehaj@mail.ahiv.hu (Vilmos NEBEHAJ) Subject: Re: 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: Mon, 29 Sep 2003 19:22:40 -0000 On Mon, Sep 29, 2003 at 07:52:27PM +0300, Stefan Chekanov wrote: > I am developing an application for FreeBSD that utilizes multiple threads. > It works fine, except that after some minutes of work most of the threads > suddenly stop. > > I have examined the stack and found that most of the threads have this stack > #0 ... in _thread_kern_sched() from /usr/lib/libc_r.so.4 > #1 ... in _thread_kern_sched_state() from /usr/lib/libc_r.so.4 > #2 ... in _thread_fd_lock_debug() from /usr/lib/libc_r.so.4 > #3 ... in _close() from /usr/lib/libc_r.so.4 > #4 ... in _res_close() from /usr/lib/libc_r.so.4 > #5 ... in res_send() from /usr/lib/libc_r.so.4 > #6 ... in res_query() from /usr/lib/libc_r.so.4 > #7 ... in res_querydomain() from /usr/lib/libc_r.so.4 > #8 ... in res_search() from /usr/lib/libc_r.so.4 > #9 ... in _gethostbydnsname() from /usr/lib/libc_r.so.4 > #10 ... in gethostbyname2() from /usr/lib/libc_r.so.4 > #11 ... in gethostbyname() from /usr/lib/libc_r.so.4 > > and one trhead with this stack > > #0 ... in _thread_sys_poll() from /usr/lib/libc_r.so.4 > #1 ... in _thread_kern_sched_state_unlock() from /usr/lib/libc_r.so.4 > #2 ... in _thread_kern_scheduler() from /usr/lib/libc_r.so.4 > #3 0x0 in ??() > > Does anybody have an idea what might cause threads to stop? > Is it possible that sockets library is not threads safe? > Especially the part that is used to resolve hostnames? gethostbyname() is not threadsafe, don't use it in threaded apps (or protect it with a mutex). -- [vili] From owner-freebsd-threads@FreeBSD.ORG Tue Sep 30 12:08:27 2003 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 BE5D716A4B3; Tue, 30 Sep 2003 12:08:27 -0700 (PDT) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4936543FEA; Tue, 30 Sep 2003 12:08:26 -0700 (PDT) (envelope-from To: Date: Tue, 30 Sep 2003 21:08:36 +0200 Message-ID: <000501c38786$40bf4470$0400a8c0@dread> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: X-Virus-Scanned: by AMaViS 0.3.12 cc: admins@freebsd.org Subject: AW: Need SMP access (FreeBSD port of SAPDB aka MaxDB (fwd)) 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, 30 Sep 2003 19:08:27 -0000 Hi, We can do most of the single processor stuff on our own test machines, but we do not know yet, how it behaves (or even if it behaves) on a SMP using kse. The more important aspect to us though is, that some of the threading specialists can take a look on some behaviours and misbehaviours, and mabe tell us whether its from the code, nor from the kse implementation ;). Kind regards=20 Kai Mosebach Still free of any costs, but sold out soon : http://www.komadev.de/sapdb > -----Urspr=FCngliche Nachricht----- > Von: owner-freebsd-threads@freebsd.org [mailto:owner-freebsd- > threads@freebsd.org] Im Auftrag von Daniel Eischen > Gesendet: Montag, 29. September 2003 20:11 > An: threads@freebsd.org > Cc: admins@freebsd.org > Betreff: Need SMP access (FreeBSD port of SAPDB aka MaxDB (fwd)) >=20 > These guys need access to an SMP system with a lot of free diskspace. > Does it have to be SMP? I would think you could develop on a UP, > package it up, and test it on an SMP system. >=20 > Dan Eischen >=20 > ---------- Forwarded message ---------- > Date: Mon, 29 Sep 2003 18:17:52 +0200 (CEST) > From: mike > To: deischen@freebsd.org, > Subject: FreeBSD port of SAPDB aka MaxDB >=20 > Hi, > SAPDB aka MaxDB (It's beeing renamed) is a commercial-grade Database which > comes in Opensource since May-2000. > See: http://www.sapdb.org & http://www.mysql.com/maxdb >=20 > In the effort of porting this beast to FreeBSD and (since it is > using threads extensibly and the primary porter Kai Mosebach > and myself had some troubles with threads ) help hadening the KSE stuff > I would like to ask if we could get access to one (SMP/KSE) System (for > kay) > with some free diskspace ~500MB to help the porting effort and (hopefully) > get some threading issues resolved. (Main issues are the Linuxthreads -> > KSE > transition...) >=20 > Thanks in advance for your help. >=20 > Bye/2 > --- > Michael Reifenberger, Business Unit Manager SAP-Basis, Plaut Consulting > Comp: Michael.Reifenberger@plaut.de | Priv: Michael@Reifenberger.com > http://www.plaut.de | http://www.Reifenberger.com >=20 > _______________________________________________ > 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 Tue Sep 30 12:22:13 2003 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 3884216A4C1 for ; Tue, 30 Sep 2003 12:22:13 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 182894401E for ; Tue, 30 Sep 2003 12:22:12 -0700 (PDT) (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 h8UJMBgG006411; Tue, 30 Sep 2003 15:22:11 -0400 (EDT) Date: Tue, 30 Sep 2003 15:22:11 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Kai Mosebach In-Reply-To: <000501c38786$40bf4470$0400a8c0@dread> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: AW: Need SMP access (FreeBSD port of SAPDB aka MaxDB (fwd)) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2003 19:22:13 -0000 On Tue, 30 Sep 2003, Kai Mosebach wrote: > Hi, > > We can do most of the single processor stuff on our own test machines, > but we do not know yet, how it behaves (or even if it behaves) on a SMP > using kse. The more important aspect to us though is, that some of the > threading specialists can take a look on some behaviours and > misbehaviours, and mabe tell us whether its from the code, nor from the > kse implementation ;). Well, just get it working under FreeBSD with native threading (KSE) and modify the port to respect PTHREAD_LIBS instead of linuxthreads. Others can help you test on SMP, but in theory it should behave no differently than on UP. You can simulate KSE/SMP on a UP system by setting the following sysctls: kern.threads.debug: 0 -> 1 kern.threads.virtual_cpu: 1 -> 2 Let us know if you have any problems. -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Wed Oct 1 10:18:09 2003 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 0FBDC16A4B3 for ; Wed, 1 Oct 2003 10:18:09 -0700 (PDT) Received: from electra.cse.Buffalo.EDU (electra.cse.Buffalo.EDU [128.205.32.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id D207143FCB for ; Wed, 1 Oct 2003 10:18:07 -0700 (PDT) (envelope-from kensmith@cse.Buffalo.EDU) Received: from electra.cse.Buffalo.EDU (kensmith@localhost [127.0.0.1]) h91HI7us015966 for ; Wed, 1 Oct 2003 13:18:07 -0400 (EDT) Received: (from kensmith@localhost) by electra.cse.Buffalo.EDU (8.12.10/8.12.9/Submit) id h91HI7Wl015965 for freebsd-threads@freebsd.org; Wed, 1 Oct 2003 13:18:07 -0400 (EDT) Date: Wed, 1 Oct 2003 13:18:07 -0400 From: Ken Smith To: freebsd-threads@freebsd.org Message-ID: <20031001171807.GI12227@electra.cse.Buffalo.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: pthread_mutex_init manual page 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, 01 Oct 2003 17:18:09 -0000 We received a PR that pointed out this section of the pthread_mutex_init(3) manual page is not proper English: [EAGAIN] The temporarily lacks the resources to create another mutex. I looked at the source code for it in: -current /usr/src/lib/libpthread/thread/thr_mutex.c -stable /usr/src/lib/libc_r/uthread/uthread_mutex.c In both cases unless I'm missing something that error code will never be returned. Should I fix it to say "The system temporarily lacks a non-memory resource to create another mutex" (which I got from a programming book I had on hand) or should I remove the reference to that error code? Thanks. -- Ken Smith - From there to here, from here to | kensmith@cse.buffalo.edu there, funny things are everywhere. | - Theodore Geisel | From owner-freebsd-threads@FreeBSD.ORG Wed Oct 1 11:33:19 2003 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 E570A16A4B3 for ; Wed, 1 Oct 2003 11:33:19 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0AC8143FDD for ; Wed, 1 Oct 2003 11:33:19 -0700 (PDT) (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 h91IXFgG017742; Wed, 1 Oct 2003 14:33:15 -0400 (EDT) Date: Wed, 1 Oct 2003 14:33:15 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Ken Smith In-Reply-To: <20031001171807.GI12227@electra.cse.Buffalo.EDU> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: pthread_mutex_init manual page 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, 01 Oct 2003 18:33:20 -0000 On Wed, 1 Oct 2003, Ken Smith wrote: > > We received a PR that pointed out this section of the pthread_mutex_init(3) > manual page is not proper English: > > > [EAGAIN] The temporarily lacks the resources to create another > mutex. > It returns ENOMEM. You can fix the man pages appropriately. Thanks, -- Dan Eischen From owner-freebsd-threads@FreeBSD.ORG Thu Oct 2 10:28:20 2003 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 3C26016A4B3; Thu, 2 Oct 2003 10:28:20 -0700 (PDT) Received: from dust.freshx.de (freshx.de [80.190.100.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9724343FBD; Thu, 2 Oct 2003 10:28:18 -0700 (PDT) (envelope-from To: Date: Thu, 2 Oct 2003 19:28:26 +0200 Message-ID: <000201c3890a$98b96130$0400a8c0@dread> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: X-Virus-Scanned: by AMaViS 0.3.12 cc: threads@freebsd.org Subject: AW: AW: Need SMP access (FreeBSD port of SAPDB aka MaxDB (fwd)) 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, 02 Oct 2003 17:28:20 -0000 > > Hi, > > > > We can do most of the single processor stuff on our own test machines, > > but we do not know yet, how it behaves (or even if it behaves) on a SMP > > using kse. The more important aspect to us though is, that some of the > > threading specialists can take a look on some behaviours and > > misbehaviours, and mabe tell us whether its from the code, nor from the > > kse implementation ;). > > Well, just get it working under FreeBSD with native threading > (KSE) and modify the port to respect PTHREAD_LIBS instead of > linuxthreads. Others can help you test on SMP, but in theory > it should behave no differently than on UP. You can simulate > KSE/SMP on a UP system by setting the following sysctls: Native KSE threading is already done. Some problems occurred though, which yet seem to be scheduling problems in the threading (A complete database backup runs, but does not responds correctly, when finished.). Question from a SAP Developer was, if there are there ways for "scheduling checks" in the lib ? > > kern.threads.debug: 0 -> 1 > kern.threads.virtual_cpu: 1 -> 2 > > Let us know if you have any problems. I will try that ... Cheers Kai From owner-freebsd-threads@FreeBSD.ORG Thu Oct 2 11:41:27 2003 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 AC27516A4B3 for ; Thu, 2 Oct 2003 11:41:27 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0B4243FF5 for ; Thu, 2 Oct 2003 11:41:26 -0700 (PDT) (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 h92IfQgG000076; Thu, 2 Oct 2003 14:41:26 -0400 (EDT) Date: Thu, 2 Oct 2003 14:41:26 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Kai Mosebach In-Reply-To: <000201c3890a$98b96130$0400a8c0@dread> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: AW: AW: Need SMP access (FreeBSD port of SAPDB aka MaxDB (fwd)) 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, 02 Oct 2003 18:41:27 -0000 On Thu, 2 Oct 2003, Kai Mosebach wrote: > > > Hi, > > > > > > We can do most of the single processor stuff on our own test > machines, > > > but we do not know yet, how it behaves (or even if it behaves) on a > SMP > > > using kse. The more important aspect to us though is, that some of > the > > > threading specialists can take a look on some behaviours and > > > misbehaviours, and mabe tell us whether its from the code, nor from > the > > > kse implementation ;). > > > > Well, just get it working under FreeBSD with native threading > > (KSE) and modify the port to respect PTHREAD_LIBS instead of > > linuxthreads. Others can help you test on SMP, but in theory > > it should behave no differently than on UP. You can simulate > > KSE/SMP on a UP system by setting the following sysctls: > > Native KSE threading is already done. Some problems occurred though, > which yet seem to be scheduling problems in the threading (A complete > database backup runs, but does not responds correctly, when finished.). Can you tell me what you mean "does not responds correctly". Are you forking and waiting for SIGCHLD or something? > Question from a SAP Developer was, if there are there ways for > "scheduling checks" in the lib ? You can define DEBUG_THREAD_KERN (in libpthread/thread/thr_kern.c) and DEBUG_SIGNAL (in libpthread/thread/thr_sig.c), but that will give you a lot of output and may end up screwing other things up. You can also send the process a SIGINFO and it will dump the threads and their states to /tmp/pthread.dump.pid.n. > > > > kern.threads.debug: 0 -> 1 > > kern.threads.virtual_cpu: 1 -> 2 > > > > Let us know if you have any problems. > > I will try that ... Make sure your libpthread is up to date. There have been a few fixes in the last few weeks. -- Dan Eischen