Re: Memory usage of BIND process - threads?

2012-04-21 Thread Kostas Zorbadelos
Stuart Henderson s...@spacehopper.org writes:

 On 2012-04-20, Kostas Zorbadelos kzo...@otenet.gr wrote:
 Just discovered that under Linux bind seems to use 5 threads (2
 processors). Under the same VM config on OpenBSD bind seems to have 
 no threads (using T under top(1)).

 In 5.0 and 5.1 threads are entirely done in userland and won't show
 up separately in top.

 In -current this has changed however in OpenBSD BIND is built without
 threads anyway.


Doesn't this affect BIND's performance?
Anyway, a stress test will tell...

 Is this part of the patches in the OpenBSD version of BIND?

 No, this is just an argument to the configure script. The patches in
 the OpenBSD version of BIND deal with privilege separation, the RNG,
 and switching to safer string functions.


Understood.

Thanks,

Kostas


-- 
Kostas Zorbadelos   
twitter:@kzorbadeloshttp://gr.linkedin.com/in/kzorba 

()  www.asciiribbon.org - against HTML e-mail  proprietary attachments
/\  



Re: Memory usage of BIND process - threads?

2012-04-21 Thread Stuart Henderson
On 2012/04/21 11:54, Kostas Zorbadelos wrote:
  In -current this has changed however in OpenBSD BIND is built without
  threads anyway.
 
 Doesn't this affect BIND's performance?
 Anyway, a stress test will tell...

Untested but in 5.1 and earlier I doubt you will see an improvement with
threads, with -current using kernel-backed threads this might help on a
multiprocesor system.

  No, this is just an argument to the configure script. The patches in
  the OpenBSD version of BIND deal with privilege separation, the RNG,
  and switching to safer string functions.

..also use the kernel's normal port allocator rather than bind's.



Re: Memory usage of BIND process - threads?

2012-04-20 Thread Kostas Zorbadelos
Just discovered that under Linux bind seems to use 5 threads (2
processors). Under the same VM config on OpenBSD bind seems to have 
no threads (using T under top(1)).

Is this part of the patches in the OpenBSD version of BIND?

Regards,

Kostas

-- 
Kostas Zorbadelos   
twitter:@kzorbadeloshttp://gr.linkedin.com/in/kzorba 

()  www.asciiribbon.org - against HTML e-mail  proprietary attachments
/\  



Re: Memory usage of BIND process - threads?

2012-04-20 Thread Stuart Henderson
On 2012-04-20, Kostas Zorbadelos kzo...@otenet.gr wrote:
 Just discovered that under Linux bind seems to use 5 threads (2
 processors). Under the same VM config on OpenBSD bind seems to have 
 no threads (using T under top(1)).

In 5.0 and 5.1 threads are entirely done in userland and won't show
up separately in top.

In -current this has changed however in OpenBSD BIND is built without
threads anyway.

 Is this part of the patches in the OpenBSD version of BIND?

No, this is just an argument to the configure script. The patches in
the OpenBSD version of BIND deal with privilege separation, the RNG,
and switching to safer string functions.