Understanding resetpriority() ?

2002-05-26 Thread Richard Seaman, Jr.
t;td_priority < curthread->td_priority) curthread->td_kse->ke_flags |= KEF_NEEDRESCHED; } -- Richard Seaman, Jr.email:[EMAIL PROTECTED] 5182 N. Maple Lane phone:262-367-5450 Nashotah WI 53058fax:262-367-5852 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: gethostbyXXXX_r()

2001-08-04 Thread Richard Seaman, Jr.
n I have the time, unless you beat me to it. There are some gethostby_r, getnetby_r, ... etc routines in the linuxthreads port (/usr/ports/devel/linuxthreads/files). These came from the original linuxthreads package, and have no copyright on them. I never researched the copyright status of them, b

Re: natd passes inconsistent addresses to ipfw?

2001-07-28 Thread Richard Seaman, Jr.
Whoops. Meant to cc this to the list too. -- Richard Seaman, Jr.email:[EMAIL PROTECTED] 5182 N. Maple Lane phone:262-367-5450 Nashotah WI 53058fax:262-367-5852 On Sat, Jul 28, 2001 at 12:19:01PM +0100, [EMAIL PROTECTED] wrote: > I'm worried a

Re: SCHED_RR(root only!?) vs SCHED_FIFO(any user!?)

2000-07-20 Thread Richard Seaman, Jr.
ld be improved with SCHED_OTHER, except in very restricted situations? -- Richard Seaman, Jr.email:[EMAIL PROTECTED] 5182 N. Maple Lane phone:262-367-5450 Nashotah WI 53058fax:262-367-5852 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: lock-ups due to the scheduler

2000-04-28 Thread Richard Seaman, Jr.
On Fri, Apr 28, 2000 at 06:13:32PM -0400, Brian Fundakowski Feldman wrote: > On Fri, 28 Apr 2000, Richard Seaman, Jr. wrote: > > > There may be additional issues with the scheduler, though they may not > > be related to the issue you have. Check www.freebsd.org/~dick/sched.des

Re: lock-ups due to the scheduler

2000-04-28 Thread Richard Seaman, Jr.
There may be additional issues with the scheduler, though they may not be related to the issue you have. Check www.freebsd.org/~dick/sched.descr I was under the impression that Peter Dufault had re-assumed this matter, but not much has happened on most of the issues. -- Richard Seaman, Jr

Re: Multithreaded server performance

2000-04-24 Thread Richard Seaman, Jr.
ary that multiplexes threads in a single > process. This style of threads library should perform well for the type of > application you are dealing with. Perhaps. The proposed "new" threads model that I understand you are working on should be *much* superior in this kind of application t

Re: RTLD thread safety

2000-03-26 Thread Richard Seaman, Jr.
t get *any* of the thread safe behaviour in libc, libgcc, or in ld-ef.so. -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Adding alternate entry points to libc (was Re: Possible libc changes to support LinuxThreads)

2000-01-11 Thread Richard Seaman, Jr.
and linuxthreads. A genuine > libpthread is just a hop, skip, and a jump from there. I'd say only do whats necessary, if thats the case. Someone really good with sed, or some other text processor, might be able to semi-automate the process, but I know I don't know how. This will b

Re: Concept check: iothreads addition to pthreads for MYSQL+FreeBSD.

2000-01-11 Thread Richard Seaman, Jr.
In theory the problem should exist for libc_r, but I don't know of any reports. -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to [EMAIL PROTECTED] with

Re: Cancellation points in Linuxthreads

1999-12-28 Thread Richard Seaman, Jr.
't complain. =) I'm not volunteering. But, I promised you some thoughts on how to do it, which I still owe you. I don't think its "hard", just tedious. -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI 5

Cancellation points in Linuxthreads

1999-12-28 Thread Richard Seaman, Jr.
, because libc_r carefully unwinds any internal locks created within libc. Linuxthreads does not have this capability, and the sample program deadlocks (at least it does here). -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI

Re: Kernel threads

1999-12-28 Thread Richard Seaman, Jr.
On Tue, Dec 28, 1999 at 08:30:08AM -0600, Richard Seaman, Jr. wrote: > On Tue, Dec 28, 1999 at 10:44:19AM +0100, Steffen Merkel wrote: > > > Sorry, but I'm learning C for only some weeks now. Why does the main > > thread complete if I insert a while(1); ? I thougt th

Re: Kernel threads

1999-12-28 Thread Richard Seaman, Jr.
ght, of course. My brain was not fully in gear when I wrote that. -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe free

Re: Kernel threads

1999-12-27 Thread Richard Seaman, Jr.
FreeBSD user threads used to use SIGVTALRM for its pre-emption signal. This didn't count time in syscalls. So, if you had a syscall (eg I/O) intensive thread, it would hog processor time. I think that has been changed. -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182

Re: Kernel threads

1999-12-27 Thread Richard Seaman, Jr.
reads have fairly high context switch overhead, especially when there are open fds that get polled on each context switch. Kernel threads are actually faster in many circumstances. The discussion in the -arch mailing list involves ideas which would make user threads much more efficient. -- Richar

FreeBSD Threads (was Re: Practical limit for number of TCP connections?)

1999-12-19 Thread Richard Seaman, Jr.
ds with PTHREAD_SCOPE_PROCESS threads), but only if you need the added functionality. -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Practical limit for number of TCP connections?

1999-12-19 Thread Richard Seaman, Jr.
se select(). And, not only at each thread context switch, but each time it has to consider whether to do a switch at all (eg. at the end of a timeslice). -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI 53058 fax: 262

Re: Practical limit for number of TCP connections?

1999-12-19 Thread Richard Seaman, Jr.
are a lot slower than kernel thread context switches. Also note that you can try kernel threads using ports/devel/linuxthreads. -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lanephone: 262-367-5450 Chenequa WI 53058 fax: 262-367-5852 To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

Re: Possible libc changes to support LinuxThreads

1999-12-09 Thread Richard Seaman, Jr.
On Thu, Dec 09, 1999 at 05:41:09PM -0500, Daniel Eischen wrote: > Richard Seaman, Jr. wrote: > > Actually, I don't think all that many apps use pthread_cancel(). > > Its kind of messy to use. Most can get along without it, which > > is why there have only been a li

Re: Possible libc changes to support LinuxThreads

1999-12-09 Thread Richard Seaman, Jr.
On Thu, Dec 09, 1999 at 12:57:45PM -0800, Jason Evans wrote: > On Thu, Dec 09, 1999 at 06:42:56AM -0600, Richard Seaman, Jr. wrote: > > On Thu, Dec 09, 1999 at 12:35:17AM -0800, Jason Evans wrote: > > > > The problem with cancellation points, libc and linuxthreads has been

Re: Possible libc changes to support LinuxThreads

1999-12-09 Thread Richard Seaman, Jr.
On Thu, Dec 09, 1999 at 06:42:56AM -0600, Richard Seaman, Jr. wrote: > In this case, you'd want, for example, an _lseek(), _libc_lseek(), > and _seek(). I meant "and lseek()", not _seek(). -- Richard Seaman, Jr. email: [EMAIL PROTECTED] 5182 N. Maple Lane

Re: Possible libc changes to support LinuxThreads

1999-12-09 Thread Richard Seaman, Jr.
may make some people's skin crawl. Feedback is > welcome. If there is no correct way to create aliases to function entry > points, then we can do without them, but it will mean that the *jmp() > functions cannot be used in conjunction with thread cleanup handlers when > using LinuxThr