From owner-freebsd-smp Sun May 31 12:21:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA02962 for freebsd-smp-outgoing; Sun, 31 May 1998 12:21:30 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from base486.home.org (imdave@imdave.pr.mcs.net [205.164.3.77]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA02928; Sun, 31 May 1998 12:21:24 -0700 (PDT) (envelope-from imdave@mcs.net) Received: (from imdave@localhost) by base486.home.org (8.8.8/8.8.8) id OAA02146; Sun, 31 May 1998 14:21:06 -0500 (CDT) Date: Sun, 31 May 1998 14:21:06 -0500 (CDT) From: Dave Bodenstab Message-Id: <199805311921.OAA02146@base486.home.org> To: dufault@hda.com, freebsd-scsi@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu Subject: Re: Micropolis 4345WS (Toshiba "Equium" 6200M) Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I received a couple of those Toshiba computers which Insight had the > special on (intel dual p6 mb, integrated pro100 ethernet, aha-7880, etc.) > The 12x atapi cd-room boots our freebsd CD's so quickly that you forget > that you're booting from a CD. Really nice systems, but mine came with > Micropolis 4345WS drives at firmware revision zC19. The manufacture date > of my systems was around 4/97. I took the plunge and got two of these boxes. I am very interested in sharing experiences amoung other FreeBSD folks using these machines. I plan to take the CPU, memory, disk and cdrom from the second machine and install them in the first. I'm hoping to sell the remaining MB and case to recoup some of the cost. > Unfortunately I couldn't get any version of FreeBSD to install without the > aha driver complaining about the drive timing out, and aborting the > install. No matter what the settings on the 7880 (disable wide > negotiation, throttle down xfer rate, etc) and after verifying drive > jumpers, termination. As soon as sysinstall started doing anything disk > intensive, the drives would lose it. I had both systems side by side with > a pile of FreeBSD CD's and each behaved the same whether it was 2.2.2, > 10/6/97 3.0-snap, 2/2/98 3.0-snap, etc. I booted the 2.2.5 floppy, and it came up fine -- I have not yet blown away NT and attempted an install. > I did some searching around the net and learned that Micropolis has been > history for a while. Fortunately firmware kit X502_4.exe is available > from an ftp server in germany. I built an ASPI floppy (adaptec now gives > away their dos/aspi drivers at their www page) and was able to upgrade the > drive firmware. As soon as the firmware was upgraded all problems ceased. > I haven't really thrashed the drive yet and cranked back up the xfer rate > (& wide negotiation) so we'll see how the drive works under real load. I found the reference: http://www.addit.de/SUPPORT/micr-eproms.htm but the site seems to be down (Sun, 5/31) Any chance you could send it to me? > Since other people have been buying these systems, I'm a little surprised > that I'm the only person so far to have reported the problem. Fortunately > it appears that there is a workaround (forget about any 5-year warranty on > the tomahawk drives though :( I called Toshiba before the purchase and they told me that they would be honoring the warrenty for the drives -- perhaps only for the 3-year Toshiba warrenty tho. I also found that Toshiba does not have email access to their technical support -- only via compuserve. I'll have to wait until tomorrow to give them a call... but I'll ask here also: - what are USB ports and what can I use them for? - any hints/cautions/etc. about removing and reinstalling the CPU? - what version of FreeBSD current/smp do I need to start downloading? - the user's guide implies that only 128M memory modules are supported for DIMM sockets 1-3, but a page on their web site implied that each socket would accept 16/32/64/128M dimms. I intended to take the 32M from the second machine and install it in the first. - I want to enable the 2nd UART port and wire a cable, but the user's guide doesn't have a description of the pinout. Hopefully Toshiba will supply this on Mon. Also, what list would be appropriate for this subject? -questions or -smp. I suspect that -scsi isn't really applicable anymore. Dave Bodenstab imdave@mcs.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sun May 31 13:40:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA16687 for freebsd-smp-outgoing; Sun, 31 May 1998 13:40:41 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from antipodes.cdrom.com (castles208.castles.com [208.214.165.208]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA16650; Sun, 31 May 1998 13:40:36 -0700 (PDT) (envelope-from mike@antipodes.cdrom.com) Received: from antipodes.cdrom.com (localhost [127.0.0.1]) by antipodes.cdrom.com (8.8.8/8.8.5) with ESMTP id MAA12957; Sun, 31 May 1998 12:36:06 -0700 (PDT) Message-Id: <199805311936.MAA12957@antipodes.cdrom.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Dave Bodenstab cc: dufault@hda.com, freebsd-scsi@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu Subject: Re: Micropolis 4345WS (Toshiba "Equium" 6200M) In-reply-to: Your message of "Sun, 31 May 1998 14:21:06 CDT." <199805311921.OAA02146@base486.home.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 31 May 1998 12:36:05 -0700 From: Mike Smith Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > > I received a couple of those Toshiba computers which Insight had the > > special on (intel dual p6 mb, integrated pro100 ethernet, aha-7880, etc.) > > The 12x atapi cd-room boots our freebsd CD's so quickly that you forget > > that you're booting from a CD. Really nice systems, but mine came with > > Micropolis 4345WS drives at firmware revision zC19. The manufacture date > > of my systems was around 4/97. > > I took the plunge and got two of these boxes. I am very interested in > sharing experiences amoung other FreeBSD folks using these machines. > I plan to take the CPU, memory, disk and cdrom from the second machine > and install them in the first. I'm hoping to sell the remaining MB and > case to recoup some of the cost. We bought several of these for the FreeBSD Project as well; one is off making ELF happen faster, and another will be keeping the -stable packages up to date for Satoshi. (We have other plans for it too, suffice to say that it will be busy 8). All of these came with the same configuration (including the disk and firmware). > > Unfortunately I couldn't get any version of FreeBSD to install without the > > aha driver complaining about the drive timing out, and aborting the > > install. No matter what the settings on the 7880 (disable wide > > negotiation, throttle down xfer rate, etc) and after verifying drive > > jumpers, termination. As soon as sysinstall started doing anything disk > > intensive, the drives would lose it. I had both systems side by side with > > a pile of FreeBSD CD's and each behaved the same whether it was 2.2.2, > > 10/6/97 3.0-snap, 2/2/98 3.0-snap, etc. This is interesting, insofar as I've installed on three of these systems, 2.2 and 3.0, built kernels, built the world, and I expect that Satoshi has been package-building too. None of them exhibit these symptoms (and I wound the Adaptec options right up). > > Since other people have been buying these systems, I'm a little surprised > > that I'm the only person so far to have reported the problem. Fortunately > > it appears that there is a workaround (forget about any 5-year warranty on > > the tomahawk drives though :( > > I called Toshiba before the purchase and they told me that they would be > honoring the warrenty for the drives -- perhaps only for the 3-year Toshiba > warrenty tho. This is extremely good to know - thanks! > them a call... but I'll ask here also: > > - what are USB ports and what can I use them for? USB is the "universal serial bus". Right now, you can't use it for much, although in the next 12-18 months you can expect to be plugging your keyboard, mouse, speakers, modem, scanner, etc. into it. > - any hints/cautions/etc. about removing and reinstalling the CPU? Don't do it unless you have to. You will need a VRM module before you can put the second CPU into the first system. > - what version of FreeBSD current/smp do I need to start downloading? Go for the lastest -SNAP once you've got the hardware in place. > - I want to enable the 2nd UART port and wire a cable, but the user's > guide doesn't have a description of the pinout. Hopefully Toshiba > will supply this on Mon. IICR the motherboard is the Intel Providence board. I do believe that Intel have full documentation on their site (it's likely to be the same pinout as their other boards). > Also, what list would be appropriate for this subject? -questions or -smp. > I suspect that -scsi isn't really applicable anymore. Probably -hardware for the hardware, -smp for SMP related issues. -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sun May 31 16:43:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA15086 for freebsd-smp-outgoing; Sun, 31 May 1998 16:43:12 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from penelope (root@alex-va-n013c109.moon.jic.com [208.135.210.119]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA15080; Sun, 31 May 1998 16:43:07 -0700 (PDT) (envelope-from mbriggs@switchboard.net) Received: from switchboard.net (really [192.168.1.44]) by penelope.ml.org via in.smtpd with esmtp (ident mbriggs using rfc1413) id (Debian Smail3.2.0.101) for ; Sun, 31 May 1998 19:18:40 -0400 (EDT) Message-ID: <3571EAB4.9202117F@switchboard.net> Date: Sun, 31 May 1998 19:41:40 -0400 From: "Matthew R. Briggs" X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.1.103 i586) MIME-Version: 1.0 To: dyson@FreeBSD.ORG CC: freebsd-smp@FreeBSD.ORG Subject: General SMP Instability - A Kernel Trace Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, The next time the machine crashed on me, I snagged some output from the kernel. I was compiling FileRunner, as I mentioned I had tried earlier. The ports of Tk8.1 and Tcl8.1 are pulled in, and while compiling Tcl8.1 everything died. Here is what db told me: panic: vm_page_free: invalid wire count (65280), pindex: 0x0 mp_lock = 01000001: cpuid = 1: lapic.id = 01000000 Debugger("panic") Stopped at _Debugger+0x35: movb $0,_in_Debugger.98 Here is the output of "trace": _Debugger(f0118213) at _Debugger+0x35 _panic(f01b4253,ff00,0,f055657c,80000000) at _panic+0x8d _vm_page_freechk_and_unqueue(f055657c) at _vm_page_freechk_and_unqueue+0xb0 _vm_page_free_zero(f055657c,f055657c,f5bdec38,39a3,f5bcff08) at _vm_page_free_zero+0x1c _pmap_release_free_page(f5b56860,f055657c) at _pmap_release_free_page+0xc5 _pmap_release(f5b56860) at _pmap_release+0x3d _vmspace_free(f5b56800,f5b52800, f5b52800,f5bcff4c,f01113e3) at _vmspace_free+0x5f _cpu_wait(f5b52800) at _cpu_wait+0x15 _wait1(f5b52e40,f5bcff94,0,f5bcffb4,f01d077f) at _wait1+0x1bf _wait4(f5b52e40,f5bcff94,efbfda6c,1,54390) at _wait4+0x10 _syscall(27,27,54390,1,efbfd24) at _syscall+0x187 _Xsyscall() at _Xsyscall+0x55 --- syscall 0x7, eip = 0x2b335, esp = 0xe5b5da10, ebp = 0xefbfda24 --- The output of "ps" was voluminous, many "sh" and "make" processes going on...I was typing this all into another machine by hand, though, and it seemed a bit excessive. ;) I can see I'm going to have to set up a serial console. Hope this might be useful. Thanks for the quick, helpful replies, and keep up the good work! Matt Briggs mbriggs@switchboard.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sun May 31 17:03:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA19001 for freebsd-smp-outgoing; Sun, 31 May 1998 17:03:06 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from time.cdrom.com (root@time.cdrom.com [204.216.27.226]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA18994 for ; Sun, 31 May 1998 17:03:04 -0700 (PDT) (envelope-from jkh@time.cdrom.com) Received: from time.cdrom.com (jkh@localhost.cdrom.com [127.0.0.1]) by time.cdrom.com (8.8.8/8.8.8) with ESMTP id RAA08043; Sun, 31 May 1998 17:02:01 -0700 (PDT) (envelope-from jkh@time.cdrom.com) To: Dave Bodenstab cc: dufault@hda.com, freebsd-smp@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu Subject: Re: Micropolis 4345WS (Toshiba "Equium" 6200M) In-reply-to: Your message of "Sun, 31 May 1998 14:21:06 CDT." <199805311921.OAA02146@base486.home.org> Date: Sun, 31 May 1998 17:02:01 -0700 Message-ID: <8039.896659321@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [Redirected to just SMP since these are SMP machines] > I took the plunge and got two of these boxes. I am very interested in > sharing experiences amoung other FreeBSD folks using these machines. We also bought 3 of them at Walnut Creek CDROM and 2 are already deployed - one was sent to John Polstra as a 2nd test box and the other was made into paddock.freebsd.org, the ports crew's 2.2.x package building machine. From what I can tell so far, they Just Work without any hassles. Now that the Intel Providence motherboard (dual-PPro, on-board AIC7880 and Intel EtherExpress Pro 100B support) are selling for $89 at www.compgeeks.com, along with Ppro 180/256K CPUs for $100 or less, it's also a great time to pick up the guts of a fine SMP box for under $300. :-) > I called Toshiba before the purchase and they told me that they would be > honoring the warrenty for the drives -- perhaps only for the 3-year Toshiba > warrenty tho. That's interesting - I hadn't expected any warranty, but that's good to know! > - what are USB ports and what can I use them for? At the moment, nothing. > - any hints/cautions/etc. about removing and reinstalling the CPU? Just try and match it up with the existing one as best possible. > - what version of FreeBSD current/smp do I need to start downloading? Anything comparatively recent should be fine. - Jordan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sun May 31 17:12:41 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA21039 for freebsd-smp-outgoing; Sun, 31 May 1998 17:12:41 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA21010; Sun, 31 May 1998 17:12:36 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id TAA00961; Sun, 31 May 1998 19:12:32 -0500 (EST) (envelope-from toor) Message-Id: <199806010012.TAA00961@dyson.iquest.net> Subject: Re: General SMP Instability - A Kernel Trace In-Reply-To: <3571EAB4.9202117F@switchboard.net> from "Matthew R. Briggs" at "May 31, 98 07:41:40 pm" To: mbriggs@switchboard.net (Matthew R. Briggs) Date: Sun, 31 May 1998 19:12:32 -0500 (EST) Cc: dyson@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Matthew R. Briggs said: > Hello, > The next time the machine crashed on me, I snagged some output from the > kernel. I was compiling FileRunner, as I mentioned I had tried > earlier. The ports of Tk8.1 and Tcl8.1 are pulled in, and while > compiling Tcl8.1 everything died. Here is what db told me: > ... > > Hope this might be useful. Thanks for the quick, helpful replies, and > keep up the good work! > FYI, I just found some more serious bugs, and am debating fixing those independently of my other general bug fixes. If I cannot get my next SMP patchkit finished by the end of the day today, I'll likely commit the bugfixes that are much easier to understand and easily proven. -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sun May 31 19:25:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA09781 for freebsd-smp-outgoing; Sun, 31 May 1998 19:25:57 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from palrel1.hp.com (palrel1.hp.com [156.153.255.242]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA09775; Sun, 31 May 1998 19:25:56 -0700 (PDT) (envelope-from darrylo@sr.hp.com) Received: from srmail.sr.hp.com (srmail.sr.hp.com [15.4.45.14]) by palrel1.hp.com (8.8.6/8.8.5tis) with ESMTP id TAA23977; Sun, 31 May 1998 19:25:25 -0700 (PDT) Received: from mina.sr.hp.com by srmail.sr.hp.com with ESMTP (1.37.109.16/15.5+ECS 3.3) id AA127557924; Sun, 31 May 1998 19:25:24 -0700 Received: from localhost (darrylo@mina.sr.hp.com [15.4.42.247]) by mina.sr.hp.com with ESMTP (8.7.1/8.7.3 TIS 5.0) id TAA08223; Sun, 31 May 1998 19:25:23 -0700 (PDT) Message-Id: <199806010225.TAA08223@mina.sr.hp.com> To: Dave Bodenstab Cc: dufault@hda.com, freebsd-scsi@FreeBSD.ORG, freebsd-smp@FreeBSD.ORG, skynyrd@opus.cts.cwu.edu Subject: Re: Micropolis 4345WS (Toshiba "Equium" 6200M) Reply-To: darrylo@sr.hp.com In-Reply-To: Your message of "Sun, 31 May 1998 14:21:06 CDT." <199805311921.OAA02146@base486.home.org> Mime-Version: 1.0 (generated by tm-edit 1.1.1.1) Content-Type: text/plain; charset=US-ASCII Date: Sun, 31 May 1998 19:25:22 -0700 From: Darryl Okahata Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Dave Bodenstab wrote: > I found the reference: > > http://www.addit.de/SUPPORT/micr-eproms.htm > > but the site seems to be down (Sun, 5/31) Any chance you could send it > to me? How about someone making it available somewhere? I've been trying www.addit.de all weekend, without any luck. This seems to be the only place with Micropolis firmware. > - any hints/cautions/etc. about removing and reinstalling the CPU? Supposedly, the Intel PR440FX motherboard is used. If so, Intel has tons of documentation for this at: http://support.intel.com/support/motherboards/desktop/PR440FX/ Other useful information: * Toshiba has a fair amount (click on the links on the left pane to get to the Equium 6200M info): http://www.csd.toshiba.com/tais/csd/support/techsupport.html * In particular, Toshiba's info on adding a second CPU can be found under the tech support bulletins of the 6200M. * Unfortunately, Toshiba's link doesn't seem to mention some important facts about adding a second processor. See the PR440FX FAQ: http://developer.intel.com/design/motherbd/pr/pr_inst.htm In particular, see: http://developer.intel.com/design/motherbd/pr/pr_inst.htm#1A It appears that a BIOS upgrade may be necessary (one newer than that available from Toshiba). -- Darryl Okahata Internet: darrylo@sr.hp.com DISCLAIMER: this message is the author's personal opinion and does not constitute the support, opinion, or policy of Hewlett-Packard, or of the little green men that have been following him all day. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Fri Jun 5 08:13:30 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA10069 for freebsd-smp-outgoing; Fri, 5 Jun 1998 08:13:30 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from alpha.netaccess.on.ca (root@netaccess.on.ca [199.243.225.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA10029 for ; Fri, 5 Jun 1998 08:13:13 -0700 (PDT) (envelope-from rob@ControlQ.com) Received: from fatlady.controlq.com (dial094.netaccess.on.ca [199.243.225.222]) by alpha.netaccess.on.ca (8.8.5/8.7.3) with SMTP id LAA23737; Fri, 5 Jun 1998 11:13:00 -0400 (EDT) Newsgroups: comp.unix.bsd.freebsd.misc Date: Fri, 5 Jun 1998 11:12:40 -0400 (EDT) From: "Robert S. Sciuk" Reply-To: "Robert S. Sciuk" To: Chris Mikkelson , freebsd-smp@FreeBSD.ORG Subject: Re: pthread_attr_setscope() missing from FreeBSD 3.0-980426-SNAP?? In-Reply-To: <87emx6cbrf.fsf@x115-105.reshalls.umn.edu> Message-ID: References: <87emx6cbrf.fsf@x115-105.reshalls.umn.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Chris, If the scope available is process only ... it seems that I'll have to fork() in order to take advantage of additional CPU's ... this will require mutex'es etc. in shared memory segments etc. in order to synch between processes, and sort of botches the somewhat elegant (?) pthread_ API ... (pthread_* calls plus fork()s -- oh well). Is there anyone in the FreeBSD-SMP dev list who can describe how best to take advantage of the FreeBSD SMP implementation within an application?? Cheers, Rob. On 3 Jun 1998, Chris Mikkelson wrote: > "Robert S. Sciuk" writes: > > > > I've downloaded the FreeBSD 3.0-980426-SNAP, and am testing the pthreads > > implementation with respect to my development work ... It seems that > > pthread_attr_setscope() is missing ... any information on the version of > > pthreads which comes with the Snap?? > > Hmmm... it's been a while since I've done any pthread programming, but > IIRC, pthread_attr_setscope() was used to make a thread > kernel-scheduled or user-level-scheduled, correct? > > If I'm not correct, correct me now ;-) > > If I am correct, then AFAIK, FreeBSD does not schedule threads at the > kernel level. Thus pthread_attr_setscope() would be kinda useless, > no? > > -Chris > > PS: On a slightly related note, do FreeBSD's user-level threads block > on (blocking, of course) syscalls? The man pages refer to some entry > points beginning in _thread_sys_*. Is there a reason for these > distinct functions? > > > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Robert S. Sciuk 1032 Howard Rd. PO Box 6A Ph:905 632-2466 Control-Q Research Burlington, Ont. Canada Fx:905 632-7417 rob@ControlQ.com L7R 3X5 http://www.ControlQ.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Fri Jun 5 08:32:56 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA14029 for freebsd-smp-outgoing; Fri, 5 Jun 1998 08:32:56 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from x115-105.reshalls.umn.edu (x115-105.reshalls.umn.edu [134.84.115.105]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id IAA14020 for ; Fri, 5 Jun 1998 08:32:51 -0700 (PDT) (envelope-from chris@x115-105.reshalls.umn.edu) Received: from x115-105.reshalls.umn.edu (localhost [127.0.0.1]) by x115-105.reshalls.umn.edu (8.8.7/8.8.7) with ESMTP id KAA08882; Fri, 5 Jun 1998 10:32:41 -0500 (CDT) (envelope-from chris@x115-105.reshalls.umn.edu) Message-Id: <199806051532.KAA08882@x115-105.reshalls.umn.edu> From: mikk0022@maroon.tc.umn.edu To: "Robert S. Sciuk" cc: freebsd-smp@FreeBSD.ORG Subject: Re: pthread_attr_setscope() missing from FreeBSD 3.0-980426-SNAP?? In-reply-to: Your message of "Fri, 05 Jun 1998 11:12:40 EDT." References: <87emx6cbrf.fsf@x115-105.reshalls.umn.edu> Date: Fri, 05 Jun 1998 10:32:41 -0500 Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Fri, 5 Jun 1998 11:12:40 -0400 (EDT) "Robert S. Sciuk" wrote >If the scope available is process only ... it seems that I'll have to >fork() in order to take advantage of additional CPU's ... this will >require mutex'es etc. in shared memory segments etc. in order to synch >between processes, and sort of botches the somewhat elegant (?) pthread_ >API ... (pthread_* calls plus fork()s -- oh well). Yeah, that kinda sucks, doesn't it. It was much worse under 2.2.2 -- that's where I tried to do pthread programming. I wound up having to use the solaris boxes for it (it was for a class). Under 2.2.2, pthread_cond_wait() didn't even work! >Is there anyone in the FreeBSD-SMP dev list who can describe how best to >take advantage of the FreeBSD SMP implementation within an application?? I don't know if that's what FreeBSD-SMP does. They seemed to be more concerned with the lower-level aspects of SMP. FreeBSD-questions is probably the best place to bring this up -- it gets responses more reliably than the newsgroup, but it is quite high-traffic. I remember seeing kernel threading on a "high-priority task list" for FreeBSD somewhere. It's not going to be trivial, as it will require making the kernel preemptible. -- Chris Mikkelson mikk0022@maroon.tc.umn.edu "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -- Benjamin Franklin, Historical Review of Pennsylvania, 1759. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Fri Jun 5 09:46:25 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA26434 for freebsd-smp-outgoing; Fri, 5 Jun 1998 09:46:25 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from dyson.iquest.net (dyson.iquest.net [198.70.144.127]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA26331 for ; Fri, 5 Jun 1998 09:45:53 -0700 (PDT) (envelope-from toor@dyson.iquest.net) Received: (from root@localhost) by dyson.iquest.net (8.8.8/8.8.8) id LAA00859; Fri, 5 Jun 1998 11:45:44 -0500 (EST) (envelope-from toor) Message-Id: <199806051645.LAA00859@dyson.iquest.net> Subject: Re: pthread_attr_setscope() missing from FreeBSD 3.0-980426-SNAP?? In-Reply-To: <199806051532.KAA08882@x115-105.reshalls.umn.edu> from "mikk0022@maroon.tc.umn.edu" at "Jun 5, 98 10:32:41 am" To: mikk0022@maroon.tc.umn.edu Date: Fri, 5 Jun 1998 11:45:44 -0500 (EST) Cc: rob@ControlQ.com, freebsd-smp@FreeBSD.ORG From: "John S. Dyson" Reply-To: dyson@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org mikk0022@maroon.tc.umn.edu said: > > I don't know if that's what FreeBSD-SMP does. They seemed to be > more concerned with the lower-level aspects of SMP. FreeBSD-questions > is probably the best place to bring this up -- it gets responses > more reliably than the newsgroup, but it is quite high-traffic. > > I remember seeing kernel threading on a "high-priority task list" > for FreeBSD somewhere. It's not going to be trivial, as it will > require making the kernel preemptible. > There is on-going work for kernel based threads. We already have them in -current (but primitive.) I am working to help the thread project leader John Birrell, with kernel mods as I am writing this. The project is intermeshed with SMP upgrades, etc. I am working like a mad-man right now, and the results of the work should be in 3.0. -- John | Never try to teach a pig to sing, dyson@freebsd.org | it just makes you look stupid, jdyson@nc.com | and it irritates the pig. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Jun 6 22:40:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA09259 for freebsd-smp-outgoing; Sat, 6 Jun 1998 22:40:05 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from poseidon.hamsterville.ultranet.com (poseidon.hamsterville.ultranet.com [209.6.79.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA09254 for ; Sat, 6 Jun 1998 22:40:03 -0700 (PDT) (envelope-from ben@poseidon.hamsterville.ultranet.com) Received: (from ben@localhost) by poseidon.hamsterville.ultranet.com (8.9.0/8.9.0) id BAA02100; Sun, 7 Jun 1998 01:40:04 -0400 (EDT) From: Ben Goodwin Message-Id: <199806070540.BAA02100@poseidon.hamsterville.ultranet.com> Subject: Buslogic & SMP kernel To: freebsd-smp@FreeBSD.ORG Date: Sun, 7 Jun 1998 01:40:04 -0400 (EDT) Cc: ben@poseidon.hamsterville.ultranet.com (Ben Goodwin) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've been running FreeBSD 3.0-980426-SNAP on a tyan with dual ppro 200's for a month or so now ... Today, I tried to install a buslogic (BT-958) card into the system. After trial and error, I found that if SMP support is enabled in the kernel (including a kernel built off SMP-GENERIC), accessing any device off the scsi chain doesn't work at all... It works perfectly fine with a non-SMP kernel, however. Is this a known problem (I searched and didn't find anything)? If not, I'll do my best to help track down the problem. I'll include dmesg and mptable stuff below to get started. I don't have a dmesg from a kernel with the BL driver installed handy, though. I guess that would help :) I'll provide that as soon as I can. TIA! *DMESG* Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-980426-SNAP #7: Sun May 24 21:29:07 EDT 1998 ben@poseidon.hamsterville.ultranet.com:/usr/src/sys/compile/SMP-POSEIDON Timecounter "i8254" frequency 1193182 Hz cost 3787 ns CPU: Pentium Pro (686-class CPU) Origin = "GenuineIntel" Id = 0x617 Stepping=7 Features=0xfbff real memory = 67108864 (65536K bytes) avail memory = 62496768 (61032K bytes) FreeBSD/SMP: Multiprocessor motherboard cpu0 (BSP): apic id: 1, version: 0x00040011, at 0xfee00000 cpu1 (AP): apic id: 0, version: 0x00040011, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x00170011, at 0xfec00000 Probing for devices on PCI bus 0: chip0: rev 0x02 on pci0.0.0 chip1: rev 0x01 on pci0.7.0 ide_pci0: rev 0x00 on pci0.7.1 vga0: rev 0x0a on pci0.11.0 Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 4120MB (8438850 sectors), 8930 cyls, 15 heads, 63 S/T, 512 B/S wdc1 not found at 0x170 1 3C5x9 board(s) on ISA found at 0x300 ep0 at 0x300-0x30f irq 10 on isa ep0: aui/utp[*UTP*] address 00:20:af:a2:27:42 npx0 on motherboard npx0: INT 16 interface APIC_IO: Testing 8254 interrupt delivery APIC_IO: routing 8254 via pin 2 SMP: AP CPU #1 Launched! WARNING: / was not properly dismounted. *MPTABLE* =============================================================================== MPTable, version 2.0.15 ------------------------------------------------------------------------------- MP Floating Pointer Structure: location: BIOS physical address: 0x000f0920 signature: '_MP_' length: 16 bytes version: 1.1 checksum: 0x57 mode: Virtual Wire ------------------------------------------------------------------------------- MP Config Table Header: physical address: 0x000f0934 signature: 'PCMP' base table length: 292 version: 1.1 checksum: 0xaf OEM ID: 'OEM00000' Product ID: 'PROD00000000' OEM table pointer: 0x00000000 OEM table size: 0 entry count: 28 local APIC address: 0xfee00000 extended table length: 0 extended table checksum: 0 ------------------------------------------------------------------------------- MP Config Base Table Entries: -- Processors: APIC ID Version State Family Model Step Flags 1 0x11 BSP, usable 6 1 7 0xfbff 0 0x11 AP, usable 6 1 7 0xfbff -- Bus: Bus ID Type 0 ISA 1 PCI -- I/O APICs: APIC ID Version State Address 2 0x11 usable 0xfec00000 -- I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT conforms conforms 0 0 2 0 INT conforms conforms 0 1 2 1 INT conforms conforms 0 0 2 2 INT conforms conforms 0 3 2 3 INT conforms conforms 0 4 2 4 INT conforms conforms 0 5 2 5 INT conforms conforms 0 6 2 6 INT conforms conforms 0 7 2 7 INT conforms conforms 0 8 2 8 INT conforms conforms 0 9 2 9 INT conforms conforms 0 10 2 10 INT conforms conforms 0 11 2 11 INT conforms conforms 0 12 2 12 INT conforms conforms 0 13 2 13 INT conforms conforms 0 14 2 14 INT conforms conforms 0 15 2 15 INT active-lo level 1 14:A 2 16 INT active-lo level 1 13:A 2 17 INT active-lo level 1 12:A 2 18 INT active-lo level 1 11:A 2 19 SMI conforms conforms 0 0 2 23 -- Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# ExtINT active-hi edge 0 0 255 0 NMI active-hi edge 0 0 255 1 ------------------------------------------------------------------------------- # SMP kernel config file options: # Required: options SMP # Symmetric MultiProcessor Kernel options APIC_IO # Symmetric (APIC) I/O # Optional (built-in defaults will work in most cases): #options NCPU=2 # number of CPUs #options NBUS=2 # number of busses #options NAPIC=1 # number of IO APICs #options NINTR=24 # number of INTs =============================================================================== -= Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message From owner-freebsd-smp Sat Jun 6 22:43:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA09528 for freebsd-smp-outgoing; Sat, 6 Jun 1998 22:43:44 -0700 (PDT) (envelope-from owner-freebsd-smp@FreeBSD.ORG) Received: from poseidon.hamsterville.ultranet.com (poseidon.hamsterville.ultranet.com [209.6.79.18]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA09523 for ; Sat, 6 Jun 1998 22:43:41 -0700 (PDT) (envelope-from ben@poseidon.hamsterville.ultranet.com) Received: (from ben@localhost) by poseidon.hamsterville.ultranet.com (8.9.0/8.9.0) id BAA00562 for freebsd-smp@freebsd.org; Sun, 7 Jun 1998 01:43:41 -0400 (EDT) From: Ben Goodwin Message-Id: <199806070543.BAA00562@poseidon.hamsterville.ultranet.com> Subject: Buslogic & SMP kernel part II To: freebsd-smp@FreeBSD.ORG Date: Sun, 7 Jun 1998 01:43:41 -0400 (EDT) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Here's the relevant section of the dmesg that includes the buslogic & scsi notes: bt0: rev 0x08 int a irq 11 on pci0.10.0 bt0: Bt958 / 0-(32bit) bus bt0: reading board settings, busmastering, int=11 bt0: version 5.06I, async only, parity, 32 mbxs, 32 ccbs bt0: targ 0 async bt0: targ 6 async bt0: Using Strict Round robin scheme bt0: waiting for scsi devices to settle scbus0 at bt0 bus 0 scbus0 target 0 lun 0: type 5 removable SCSI 2 cd0 at scbus0 target 0 lun 0 cd0: CD-ROM cd present [328222 x 2048 byte records] scbus0 target 6 lun 0: type 0 fixed SCSI 2 sd0 at scbus0 target 6 lun 0 sd0: Direct-Access 2050MB (4199760 512 byte sectors) sd0: with 3907 cyls, 10 heads, and an average 107 sectors/track -= Ben To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-smp" in the body of the message