Apache2 in per-child mode (was Re: libthr and 1:1 threading)

2003-04-03 Thread Martin Blapp
Hi all, Just a note. Apache2 in per-child mode now works with freebsd, while it deadlocked in the old libc_r on STABLE and CURRENT. Thank you very much ! Martin ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-curre

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Matthew Dillon wrote: > :How does this break the read() API? The read() API, when called > :on a NBIO fd is *supposed* to return EAGAIN, if the request cannot > :be immediately satisfied, but could be satisfied later. Right now, > :it blocks. This looks like breakage of disk I/O introducing a >

Re: libthr and 1:1 threading.

2003-04-02 Thread Sean Chittenden
> I have commited libthr. To try this out you'll need to do the following > > 1. cvsup > 2. rebuild world and kernel > 3. install world and kernel > 4. build libthr from src/lib/libthr > 5. Either replace /usr/lib/libc_r.so.5 with /usr/lib/libthr.so.1 or > relink your applications against li

Re: libthr and 1:1 threading.

2003-04-02 Thread Julian Elischer
can we have a subject ID? the KSE list prefixes with [KSE] and I've grown used to not ignoring those :-) On Wed, 2 Apr 2003, Peter Wemm wrote: > Julian Elischer wrote: > > Yes I think so.. > > I think 'threads is a better name thatn 'kse' though kse > > is good in that it's real quick to type :-

Re: libthr and 1:1 threading.

2003-04-02 Thread Peter Wemm
Julian Elischer wrote: > Yes I think so.. > I think 'threads is a better name thatn 'kse' though kse > is good in that it's real quick to type :-) OK, done. It seems to me we've needed one for a while now. Subscribe by either: http://lists.freebsd.org/mailman/listinfo/freebsd-threads or echo "su

Re: libthr and 1:1 threading.

2003-04-02 Thread Julian Elischer
A thought on 'fixing AIO..' On Wed, 2 Apr 2003, Matthew Dillon wrote: > > A better solution would be to implement a new system call, similar to > pread(), which simply checks the buffer cache and returns a short read > or an error if the data is not present. If the call fails you

Re: libthr and 1:1 threading.

2003-04-02 Thread Matthew Dillon
:How does this break the read() API? The read() API, when called :on a NBIO fd is *supposed* to return EAGAIN, if the request cannot :be immediately satisfied, but could be satisfied later. Right now, :it blocks. This looks like breakage of disk I/O introducing a :stall, when socket I/O doesn't

Re: libthr and 1:1 threading.

2003-04-02 Thread Julian Elischer
Yes I think so.. I think 'threads is a better name thatn 'kse' though kse is good in that it's real quick to type :-) On Wed, 2 Apr 2003, Peter Wemm wrote: > Terry Lambert wrote: > > > KSE mailing list, starting Monday or so: > > ] We still haven't heard from jeff with regard to the process > >

Re: libthr and 1:1 threading.

2003-04-02 Thread Andrew Boothman
Terry Lambert wrote: Stijn Hoop wrote: On Mon, Mar 31, 2003 at 10:54:45PM -0500, Jeff Roberson wrote: I have commited libthr. To try this out you'll need to do the following I know very very little about threads, but I'm interested as to what the purpose is of this library. Is ther

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Matthew Dillon wrote: >Peter Wemm wrote: > :Terry Lambert wrote: > :> > No. It gives the ability for a thread to block on a syscall without > :> > stalling the entire system. Just try using mysqld on a system using libc_r > :> > and heavy disk IO. You can't select() on a read() from disk. Thats

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Peter Wemm wrote: > Terry Lambert wrote: > > Peter Wemm wrote: > > > No. It gives the ability for a thread to block on a syscall without > > > stalling the entire system. Just try using mysqld on a system using libc_r > > > and heavy disk IO. You can't select() on a read() from disk. Thats the

Re: libthr and 1:1 threading.

2003-04-02 Thread Matthew Dillon
That's a cute trick. The ultimate solution is to implement a semi-synchronous message passing API to replace the myrid system calls we have now. Roughly speaking, what the Amiga did for messages, ports, and I/O, is far superior then what is done in Linux and *BSD. You get th

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Jeff Roberson wrote: > On Wed, 2 Apr 2003, Terry Lambert wrote: > > Peter Wemm wrote: > > > No. It gives the ability for a thread to block on a syscall without > > > stalling the entire system. Just try using mysqld on a system using libc_r > > > and heavy disk IO. You can't select() on a read()

Re: libthr and 1:1 threading.

2003-04-02 Thread Peter Wemm
Matthew Dillon wrote: > A better solution would be to give AIO the capability to > operate synchronously if the operation would occur in a > non-blocking fashion (inclusive of blockages on page faults), > and asynchronously otherwise. Without wanting to get too far off into the w

Re: libthr and 1:1 threading.

2003-04-02 Thread Matthew Dillon
:Terry Lambert wrote: :> Peter Wemm wrote: :> > No. It gives the ability for a thread to block on a syscall without :> > stalling the entire system. Just try using mysqld on a system using libc_r :> > and heavy disk IO. You can't select() on a read() from disk. Thats the :> > ultimate reason t

Re: libthr and 1:1 threading.

2003-04-02 Thread Gordon Tetlow
On Wed, Apr 02, 2003 at 06:37:21PM -0500, Daniel Eischen wrote: > On Wed, 2 Apr 2003, Peter Wemm wrote: > > > Terry Lambert wrote: > > > > > KSE mailing list, starting Monday or so: > > > ] We still haven't heard from jeff with regard to the process > > > ] signal mask removal. > > > > We can ad

Re: libthr and 1:1 threading.

2003-04-02 Thread Peter Wemm
Terry Lambert wrote: > Peter Wemm wrote: > > No. It gives the ability for a thread to block on a syscall without > > stalling the entire system. Just try using mysqld on a system using libc_r > > and heavy disk IO. You can't select() on a read() from disk. Thats the > > ultimate reason to do it

Re: libthr and 1:1 threading.

2003-04-02 Thread Jeff Roberson
On Wed, 2 Apr 2003, Terry Lambert wrote: > Peter Wemm wrote: > > No. It gives the ability for a thread to block on a syscall without > > stalling the entire system. Just try using mysqld on a system using libc_r > > and heavy disk IO. You can't select() on a read() from disk. Thats the > > ul

Re: libthr and 1:1 threading.

2003-04-02 Thread Daniel Eischen
On Wed, 2 Apr 2003, Peter Wemm wrote: > Terry Lambert wrote: > > > KSE mailing list, starting Monday or so: > > ] We still haven't heard from jeff with regard to the process > > ] signal mask removal. > > We can add new mailing lists really easily now - it takes about 20-30 seconds. > Would it b

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Peter Wemm wrote: > No. It gives the ability for a thread to block on a syscall without > stalling the entire system. Just try using mysqld on a system using libc_r > and heavy disk IO. You can't select() on a read() from disk. Thats the > ultimate reason to do it. The SMP parallelism is a bon

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Jeff Roberson wrote: > Perhaps I should start quoting posix. I wonder what my legal rights > are given the copyright. hm.. Educational use. FWIW, my reading of POSIX.1 says "Per process mask, per threads masks". The real question is "What happens when I kill -9/-15 a libthr process with a lot o

Re: libthr and 1:1 threading.

2003-04-02 Thread Andrew R. Reiter
On Wed, 2 Apr 2003, Peter Wemm wrote: :Terry Lambert wrote: : :> KSE mailing list, starting Monday or so: :> ] We still haven't heard from jeff with regard to the process :> ] signal mask removal. : :We can add new mailing lists really easily now - it takes about 20-30 seconds. :Would it be worth

Re: libthr and 1:1 threading.

2003-04-02 Thread Peter Wemm
Terry Lambert wrote: > KSE mailing list, starting Monday or so: > ] We still haven't heard from jeff with regard to the process > ] signal mask removal. We can add new mailing lists really easily now - it takes about 20-30 seconds. Would it be worth adding a freebsd-threads and/or freebsd-kse typ

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Juli Mallett wrote: > * De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > > On Wed, 2 Apr 2003, Terry Lambert wrote: > > > Also, any ETA on the per process signal mask handing bug in > > > libthr? Might not be safe to convert everything up front, in > > > a rush of eager enthusiasm... >

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Jeff Roberson wrote: > On Wed, 2 Apr 2003, Terry Lambert wrote: > > Is the disk I/O really that big of an issue? All writes will > > be on underlying non-blocking descriptors; I guess you are > > saying that the interleaved I/O is more important, further > > down the system call interface than the

Re: libthr and 1:1 threading.

2003-04-02 Thread Jeff Roberson
On Wed, 2 Apr 2003, Daniel Eischen wrote: > [ CC list trimmed somewhat ] > > On Wed, 2 Apr 2003, Jeff Roberson wrote: > > On Wed, 2 Apr 2003, Daniel Eischen wrote: > > > On Wed, 2 Apr 2003, Jeff Roberson wrote: > > > > > > > > Then set the mask to be the same on all threads in the process. The ma

Re: libthr and 1:1 threading.

2003-04-02 Thread Daniel Eischen
[ CC list trimmed somewhat ] On Wed, 2 Apr 2003, Jeff Roberson wrote: > On Wed, 2 Apr 2003, Daniel Eischen wrote: > > On Wed, 2 Apr 2003, Jeff Roberson wrote: > > > > > > Then set the mask to be the same on all threads in the process. The mask > > > is set in swapcontext though so it seems reason

Re: libthr and 1:1 threading.

2003-04-02 Thread Peter Wemm
John Baldwin wrote: > > On 02-Apr-2003 Terry Lambert wrote: > > The only way I see for disk I/O to be involved in Mozilla is in > > local cache? You can turn that off. > > Umm, the idea here is to actually make threaded programs > _useful_. Not to require that you trim their functionality > dow

Re: libthr and 1:1 threading.

2003-04-02 Thread John Baldwin
On 02-Apr-2003 Terry Lambert wrote: > The only way I see for disk I/O to be involved in Mozilla is in > local cache? You can turn that off. Umm, the idea here is to actually make threaded programs _useful_. Not to require that you trim their functionality down before we handle them in a sane wa

Re: libthr and 1:1 threading.

2003-04-02 Thread Jeff Roberson
[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > > > > [ Subjecte: Re: libthr and 1:1 threading. ] > > > > > On Wed, 2 Apr 2003, Terry Lambert wrote: > > > > > > Also, any ETA on the per process signal mask handing bug in > > > > > > l

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Robert Watson wrote: > On Wed, 2 Apr 2003, Terry Lambert wrote: > > Is the disk I/O really that big of an issue? All writes will be on > > underlying non-blocking descriptors; I guess you are saying that the > > interleaved I/O is more important, further down the system call > > interface than the

Re: libthr and 1:1 threading.

2003-04-02 Thread Daniel Eischen
On Wed, 2 Apr 2003, Jeff Roberson wrote: > On Wed, 2 Apr 2003, Julian Elischer wrote: > > > > > > > On Wed, 2 Apr 2003, Juli Mallett wrote: > > > > > * De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > > > [ Subjecte: Re: libthr

Re: libthr and 1:1 threading.

2003-04-02 Thread Jeff Roberson
On Wed, 2 Apr 2003, Julian Elischer wrote: > > > On Wed, 2 Apr 2003, Juli Mallett wrote: > > > * De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > > [ Subjecte: Re: libthr and 1:1 threading. ] > > > On Wed, 2 Apr 2003, Terry Lambert wrote: &

Re: libthr and 1:1 threading.

2003-04-02 Thread Scott Long
Terry Lambert wrote: leafy wrote: On Wed, Apr 02, 2003 at 07:38:14AM -0800, Terry Lambert wrote: Has anyone tried compiling X11 to use libthr? Someone reported success with KDE, so it should serve as a sign of working X11. Not X11 clients. The X11 server. -- Terry

Re: libthr and 1:1 threading.

2003-04-02 Thread John Baldwin
On 02-Apr-2003 Terry Lambert wrote: > leafy wrote: >> On Wed, Apr 02, 2003 at 07:38:14AM -0800, Terry Lambert wrote: >> > Has anyone tried compiling X11 to use libthr? >> >> Someone reported success with KDE, so it should serve as a sign of working X11. > > Not X11 clients. > > The X11 server.

Re: libthr and 1:1 threading.

2003-04-02 Thread Juli Mallett
* De: Terry Lambert <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] [ Subjecte: Re: libthr and 1:1 threading. ] > leafy wrote: > > On Wed, Apr 02, 2003 at 07:38:14AM -0800, Terry Lambert wrote: > > > Has anyone tried compiling X11 to use libthr? > > > > Some

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
leafy wrote: > On Wed, Apr 02, 2003 at 07:38:14AM -0800, Terry Lambert wrote: > > Has anyone tried compiling X11 to use libthr? > > Someone reported success with KDE, so it should serve as a sign of working X11. Not X11 clients. The X11 server. -- Terry _

Re: libthr and 1:1 threading.

2003-04-02 Thread Julian Elischer
On Wed, 2 Apr 2003, Jeff Roberson wrote: > On Wed, 2 Apr 2003, Juli Mallett wrote: > > > * De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > > [ Subjecte: Re: libthr and 1:1 threading. ] > > > On Wed, 2 Apr 2003, Terry Lambert wrote: > &g

Re: libthr and 1:1 threading.

2003-04-02 Thread Julian Elischer
On Wed, 2 Apr 2003, Juli Mallett wrote: > * De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > [ Subjecte: Re: libthr and 1:1 threading. ] > > On Wed, 2 Apr 2003, Terry Lambert wrote: > > > Also, any ETA on the per process signal mask handing bug in

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Sheldon Hearn wrote: > On (2003/04/02 07:38), Terry Lambert wrote: > > Is the disk I/O really that big of an issue? All writes will > > be on underlying non-blocking descriptors; I guess you are > > saying that the interleaved I/O is more important, further > > down the system call interface than

Re: libthr and 1:1 threading.

2003-04-02 Thread Daniel Eischen
On Wed, 2 Apr 2003, Jeff Roberson wrote: > On Wed, 2 Apr 2003, Juli Mallett wrote: > > > * De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > > [ Subjecte: Re: libthr and 1:1 threading. ] > > > On Wed, 2 Apr 2003, Terry Lambert wrote: > > >

Re: libthr and 1:1 threading.

2003-04-02 Thread Peter Wemm
Terry Lambert wrote: > Jun Su wrote: > > > [ ... 1:1 kernel threads implementation ... ] > > > > A benchmark would be interested. > > This request doesn't make sense. > > The primary performance reasoning behind a 1:1 kernel threading > implementation, relative to the user space single kernel e

Re: libthr and 1:1 threading.

2003-04-02 Thread Jeff Roberson
On Wed, 2 Apr 2003, Juli Mallett wrote: > * De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] > [ Subjecte: Re: libthr and 1:1 threading. ] > > On Wed, 2 Apr 2003, Terry Lambert wrote: > > > Also, any ETA on the per process signal mask handing bug in

Re: libthr and 1:1 threading.

2003-04-02 Thread Juli Mallett
* De: Jeff Roberson <[EMAIL PROTECTED]> [ Data: 2003-04-02 ] [ Subjecte: Re: libthr and 1:1 threading. ] > On Wed, 2 Apr 2003, Terry Lambert wrote: > > Also, any ETA on the per process signal mask handing bug in > > libthr? Might not be safe to convert everything up

Re: libthr and 1:1 threading.

2003-04-02 Thread Jeff Roberson
On Wed, 2 Apr 2003, Terry Lambert wrote: > Robert Watson wrote: > > You should notice marked interactivity and UI latency improvements with > > threaded GUI apps over libc_r because GUI threads will generally no longer > > be blocked when disk I/O and blocking I/O occurs. For example, > > applica

Re: libthr and 1:1 threading.

2003-04-02 Thread Nate Williams
> > You should notice marked interactivity and UI latency improvements with > > threaded GUI apps over libc_r because GUI threads will generally no longer > > be blocked when disk I/O and blocking I/O occurs. For example, > > applications like Open Office, Netscape, et al, really get a lot better

Re: libthr and 1:1 threading.

2003-04-02 Thread Robert Watson
On Wed, 2 Apr 2003, Terry Lambert wrote: > Is the disk I/O really that big of an issue? All writes will be on > underlying non-blocking descriptors; I guess you are saying that the > interleaved I/O is more important, further down the system call > interface than the top, and this becomes an iss

Re: libthr and 1:1 threading.

2003-04-02 Thread leafy
On Wed, Apr 02, 2003 at 07:38:14AM -0800, Terry Lambert wrote: > Has anyone tried compiling X11 to use libthr? Someone reported success with KDE, so it should serve as a sign of working X11. Jiawei -- "Without the userland, the kernel is useless." --inspired b

Re: libthr and 1:1 threading.

2003-04-02 Thread Sheldon Hearn
On (2003/04/02 07:38), Terry Lambert wrote: > Is the disk I/O really that big of an issue? All writes will > be on underlying non-blocking descriptors; I guess you are > saying that the interleaved I/O is more important, further > down the system call interface than the top, and this becomes > an

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Robert Watson wrote: > You should notice marked interactivity and UI latency improvements with > threaded GUI apps over libc_r because GUI threads will generally no longer > be blocked when disk I/O and blocking I/O occurs. For example, > applications like Open Office, Netscape, et al, really get

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Sheldon Hearn wrote: > On (2003/04/02 06:05), Terry Lambert wrote: > > > Do I misremember this? If not, does it not apply to UP systems as well? > > > > FWIW: the libc_r reentrancy isn't fixed by a 1:1 model for > > anything but calls for which there are no non-blocking > > alternative kernel APIs.

Re: libthr and 1:1 threading.

2003-04-02 Thread Robert Watson
On Wed, 2 Apr 2003, Sheldon Hearn wrote: > On (2003/04/02 06:05), Terry Lambert wrote: > > > > I think Jeff (or someone else?) said, that some web browsers gain > > > "something" too (serialization issues with libc_r)? I had the impression > > > that this also applies to UP systems. > > > > > >

Re: libthr and 1:1 threading.

2003-04-02 Thread Sheldon Hearn
On (2003/04/02 06:05), Terry Lambert wrote: > > I think Jeff (or someone else?) said, that some web browsers gain > > "something" too (serialization issues with libc_r)? I had the impression > > that this also applies to UP systems. > > > > Do I misremember this? If not, does it not apply to UP s

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Alexander Leidinger wrote: > On Tue, 01 Apr 2003 23:28:01 -0800 > Terry Lambert <[EMAIL PROTECTED]> wrote: > > The primary performance reasoning behind a 1:1 kernel threading > > implementation, relative to the user space single kernel entry > > scheduler in the libc_r implementation is SMP scalabi

Re: libthr and 1:1 threading.

2003-04-02 Thread Alexander Leidinger
On Tue, 01 Apr 2003 23:28:01 -0800 Terry Lambert <[EMAIL PROTECTED]> wrote: > The primary performance reasoning behind a 1:1 kernel threading > implementation, relative to the user space single kernel entry > scheduler in the libc_r implementation is SMP scalability for > threaded applications. I

Re: libthr and 1:1 threading.

2003-04-02 Thread Terry Lambert
Stijn Hoop wrote: > On Mon, Mar 31, 2003 at 10:54:45PM -0500, Jeff Roberson wrote: > > I have commited libthr. To try this out you'll need to do the following > > I know very very little about threads, but I'm interested as to what the > purpose is of this library. Is there a document available s

Re: libthr and 1:1 threading.

2003-04-02 Thread Stijn Hoop
On Mon, Mar 31, 2003 at 10:54:45PM -0500, Jeff Roberson wrote: > I have commited libthr. To try this out you'll need to do the following I know very very little about threads, but I'm interested as to what the purpose is of this library. Is there a document available somewhere that describes the

Re: libthr and 1:1 threading.

2003-04-01 Thread Terry Lambert
Jun Su wrote: > [ ... 1:1 kernel threads implementation ... ] > > A benchmark would be interested. This request doesn't make sense. The primary performance reasoning behind a 1:1 kernel threading implementation, relative to the user space single kernel entry scheduler in the libc_r implementati

Re: libthr and 1:1 threading.

2003-04-01 Thread Jun Su
--- "Jacques A. Vidrine" <[EMAIL PROTECTED]> 的正文:> On Mon, Mar 31, 2003 at 10:54:45PM -0500, Jeff > Roberson wrote: > > > 5. Either replace /usr/lib/libc_r.so.5 with > /usr/lib/libthr.so.1 or > > relink your applications against libthr.so.1 > > Happily strlen(libc_r.so.5) == strlen(libthr.so.1)

Re: libthr and 1:1 threading.

2003-04-01 Thread Geoffrey C. Speicher
Jeff Roberson wrote: > > I have commited libthr. To try this out you'll need to do the following > > 1. cvsup > 2. rebuild world and kernel > 3. install world and kernel > 4. build libthr from src/lib/libthr > 5. Either replace /usr/lib/libc_r.so.5 with /usr/lib/libthr.so.1 or > relink your

Re: libthr and 1:1 threading.

2003-04-01 Thread Jeff Roberson
On Tue, 1 Apr 2003, Scott Long wrote: > Jeff Roberson wrote: > > I have commited libthr. To try this out you'll need to do the following > > > > Excellent job Jeff and Jon, thanks a lot! > > Is anyone working on getting full Apache2 support for this? Also, > linking the Java 1.3 and 1.4 ports to

Re: libthr and 1:1 threading.

2003-04-01 Thread Scott Long
Jeff Roberson wrote: I have commited libthr. To try this out you'll need to do the following Excellent job Jeff and Jon, thanks a lot! Is anyone working on getting full Apache2 support for this? Also, linking the Java 1.3 and 1.4 ports to this might be interesting. Scott __

Re: libthr and 1:1 threading.

2003-04-01 Thread Scott Long
Jeff Roberson wrote: I have commited libthr. To try this out you'll need to do the following Excellent job Jeff and Jon, thanks a lot! Is anyone working on getting full Apache2 support for this? Also, linking the Java 1.3 and 1.4 ports to this might be interesting. Scott __

Re: libthr and 1:1 threading.

2003-04-01 Thread Jacques A. Vidrine
On Mon, Mar 31, 2003 at 10:54:45PM -0500, Jeff Roberson wrote: > 5. Either replace /usr/lib/libc_r.so.5 with /usr/lib/libthr.so.1 or > relink your applications against libthr.so.1 Happily strlen(libc_r.so.5) == strlen(libthr.so.1), so you can also edit your binaries' SONEEDED fields in place :-)