Re: threading and linux (2.6.

2010-03-17 Thread Matus UHLAR - fantomas
On 16.03.10 15:18, Jack Tavares wrote:
 What is the default build on linux (2.6) with regard to threads.
 If I don't explicitly enable or disable threads, does named
 run threaded or unthreaded?

from the manpage for named(8):

   -n #cpus
   Create #cpus worker threads to take advantage of multiple CPUs. If
   not specified, named will try to determine the number of CPUs
   present and create one thread per CPU. If it is unable to determine
   the number of CPUs, a single worker thread will be created.

-- 
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I'm not interested in your website anymore.
If you need cookies, bake them yourself.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: threading and linux (2.6.

2010-03-17 Thread Evan Hunt
On 16.03.10 15:18, Jack Tavares wrote:
 What is the default build on linux (2.6) with regard to threads.
 If I don't explicitly enable or disable threads, does named
 run threaded or unthreaded?

On most operating systems, the default is threaded.

On linux, the default is unthreaded, for historical reasons having to
do with an odd interaction between linux threads and linux process
privileges.  I expect we'll correct this fairly soon; it's on the
to-do list for 9.7.1.

-- 
Evan Hunt -- e...@isc.org
Internet Systems Consortium, Inc.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


RE: threading and linux (2.6.

2010-03-17 Thread Jack Tavares
You said:

On most operating systems, the default is threaded.
On linux, the default is unthreaded, for historical reasons having t
do with an odd interaction between linux threads and linux process
privileges.  I expect we'll correct this fairly soon; it's on the
to-do list for 9.7.1.

[Jack Tavares]  So, for bind 9.6.x and 9.7.0 is the recommendation to run 
nonthreaded?
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


Re: threading and linux (2.6.

2010-03-17 Thread Evan Hunt
 [Jack Tavares]  So, for bind 9.6.x and 9.7.0 is the recommendation to run
 nonthreaded?

No, not at all.  Threaded works fine--I use it myself.  It's just a little
touchy about file permissions.  On linux, I'm given to understand, a
multi-threaded application can't relinquish its root privileges and then
get them back later if it needs to open a file--which named currently
assumes it will be able to do.  So if things aren't set up quite right,
a threaded linux build of named can fail to open the pidfile or the session
key file or something, and exit during startup.  Since that's likely to be
a confusing sort of error for a naive user to cope with, the default build
configuration dodges the problem, by building single-threaded.

We do have a plan for fixing the underlying problem, and after we've done
that, we'll make --enable-threads the default on linux too.

In the meantime, as long as you're prepared to watch out for errors of this
type and correct them with judicious use of rm, chown, or named -u, you're
fine.

-- 
Evan Hunt -- e...@isc.org
Internet Systems Consortium, Inc.
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


threading and linux (2.6.

2010-03-16 Thread Jack Tavares
Hello -

What is the default build on linux (2.6) with regard to threads.
If I don't explicitly enable or disable threads, does named
run threaded or unthreaded?

Thanks
--
jack
___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Re: threading and linux (2.6.

2010-03-16 Thread Gary Wallis

Jack Tavares wrote:

Hello -

 


What is the default build on linux (2.6) with regard to threads.

If I don't explicitly enable or disable threads, does named

run threaded or unthreaded?


Threaded.



 


Thanks

--

jack




___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users


___
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users