RE: Caching server - named process is limit at 500MB

2013-04-26 Thread Chu Ha Khanh
Hi,

Long time trying but still cannot pass the issue. This is my steps I do,
could u please take a look?

I install SunStudio SunStudio12u1-SunOS-SPARC-pkgs-ML. 

gunzip bind-9.9.2-P2.tar.gz 
tar xf bind-9.9.2-P2.tar 
CC=/bin/cc
CXX=/bin/CC
F77=/bin/f77
CFLAGS=-m64 -Qoption cg -xregs=no%appl -xmemalign=8s -mt
CXXFLAGS=-m64
LDFLAGS=-L/usr/sfw/lib/64:/lib/64:/usr/lib/64
 LIBS=-l/usr/sfw/lib/64
 LD_LIBRARY_PATH=/usr/sfw/lib/64:/lib/64:/usr/lib/64
 PATH=$PATH:/usr/ccs/bin
 ./configure -bindir=/opt/cbind9 --disable-openssl-version-check
 make
make install
cd /opt/cbind9/
There is no named!?

No works. 

Thanks and Best Regards,

 ===
Chu Ha Khanh
 Website: www.svtech.com.vn  E-mail: khanh@svtech.com.vn 

-Original Message-
From: Jaco Lesch [mailto:ja...@saix.net] 
Sent: Wednesday, April 17, 2013 2:29 PM
To: Chu Ha Khanh
Cc: 'Mike Hoskins (michoski)'; bind-users@lists.isc.org
Subject: Re: Caching server - named process is limit at 500MB

Chu

My version of BIND is compiled 64-bit and running:
 ~: file bin/named/named
bin/named/named:ELF 64-bit MSB executable SPARCV9 Version 1, 
dynamically linked, not stripped

Compiled with Studio I passed the following variables in configure:
CC=/bin/cc
CXX=/bin/CC
F77=/bin/f77
CFLAGS=-m64 -Qoption cg -xregs=no%appl -xmemalign=8s -mt
CXXFLAGS=-m64
LDFLAGS=-L/usr/sfw/lib/64:/lib/64:/usr/lib/64
LIBS=-l/usr/sfw/lib/64
LD_LIBRARY_PATH=/usr/sfw/lib/64:/lib/64:/usr/lib/64

The important flag is CFLAGS=-m64 to tell make to generate 64-bit
binaries.

For GCC you can do something like this for configure:
CC=/usr/bin/gcc
CFLAGS=-m64 -mcpu=v9
CXX=/usr/bin/g++
CXXFLAGS=-m64 -mcpu=v9
F77=/usr/bin/gfortran

See how that goes. If you are going to use DNSSEC make sure OpenSSL also
have 64 libraries available.

Regards


On 17/04/2013 04:46, Chu Ha Khanh wrote:
 Hi,

 Here is my output from command. It looks like my bind version is 
 actually 32 bit. But there are some default applications also 32 bit 
 although all are installed on a 64 bit OS. I have to check this for a
moment.

 bash-3.2# file `which named`
 /usr/local/sbin/named:  ELF 32-bit LSB executable 80386 Version 1, 
 dynamically linked, not stripped bash-3.2# bash-3.2# file 
 /usr/local/bin/gcc
 /usr/local/bin/gcc: ELF 32-bit LSB executable 80386 Version 1 [FPU],
 dynamically linked, not stripped
 bash-3.2# file `which java`
 /usr/bin/java:  ELF 32-bit LSB executable 80386 Version 1 [FPU], 
 dynamically linked, not stripped, no debugging information available 
 bash-3.2# isainfo -kv 64-bit amd64 kernel modules

 Thanks and Best Regards,
   Website: www.svtech.com.vn  E-mail: khanh@svtech.com.vn

 -Original Message-
 From: Mike Hoskins (michoski) [mailto:micho...@cisco.com]
 Sent: Wednesday, April 17, 2013 9:34 AM
 To: Chu Ha Khanh; 'Jaco Lesch'
 Cc: bind-users@lists.isc.org
 Subject: Re: Caching server - named process is limit at 500MB

 -Original Message-

 From: Chu Ha Khanh khanh@svtech.com.vn
 Date: Tuesday, April 16, 2013 10:25 PM
 To: 'Jaco Lesch' ja...@saix.net
 Cc: bind-users@lists.isc.org bind-users@lists.isc.org
 Subject: RE: Caching server - named process is limit at 500MB

 Hi,

 How to check 64 bit version of bind?

 I often download source code from isc.org and compile on 64 bit 
 Solaris
 10 OS then. I always consider my version is 64 bit.
 $ file `which named`
 /usr/sbin/named: ELF 64-bit LSB shared object, AMD x86-64, version 1 
 (SYSV), for GNU/Linux 2.6.9, stripped


 (or whatever path to the right named executable...)


--
---
Jaco Lesch
SAIX HLS
Email: ja...@saix.net

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


Re: Caching server - named process is limit at 500MB

2013-04-26 Thread Fajar A. Nugraha
On Wed, Apr 17, 2013 at 9:46 AM, Chu Ha Khanh khanh@svtech.com.vn wrote:
 Hi,

 Here is my output from command. It looks like my bind version is actually 32
 bit. But there are some default applications also 32 bit although all are
 installed on a 64 bit OS. I have to check this for a moment.

Correct.

If you want to blame someone, blame Oracle. I assume you HAVE some
kind of support contract for Solaris, since its free for development
purposes only, and other uses require support subscription. If you do,
you might be able to open a support ticket and get them to explain in
detail why they made that choice.

Short version is solaris use and compile 32bit programs by default. In
past I've forced some programs to compile as 64bit by using something
like

export CFLAGS=-m64
./configure ...

Since you wrote you can't compile it with sun studio, try gcc witch that flag.

-- 
Fajar
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


RE: Caching server - named process is limit at 500MB

2013-04-26 Thread Chu Ha Khanh
Hi,

I installed 64 bit successfully. I am greatly appreciate your help. 

PATH=$PATH:/usr/ccs/bin
export CFLAGS='-m64'
export CXXFLAGS='-m64'
export LDFLAGS='-m64 -R/usr/local/lib'
export LD_LIBRARY_PATH=/usr/sfw/lib/64:/lib/64:/usr/lib/64
cd /bind-9.9.2-P2
./configure -bindir=/opt/cbind1 --disable-openssl-version-check
./configure --disable-openssl-version-check
make
make install
file /usr/local/sbin/named

Thanks and Best Regards,

 ===
Chu Ha Khanh
Website: www.svtech.com.vn  E-mail: khanh@svtech.com.vn 

-Original Message-
From: Fajar A. Nugraha [mailto:w...@fajar.net] 
Sent: Friday, April 26, 2013 4:16 PM
To: Chu Ha Khanh
Cc: bind-users@lists.isc.org
Subject: Re: Caching server - named process is limit at 500MB

On Wed, Apr 17, 2013 at 9:46 AM, Chu Ha Khanh khanh@svtech.com.vn
wrote:
 Hi,

 Here is my output from command. It looks like my bind version is 
 actually 32 bit. But there are some default applications also 32 bit 
 although all are installed on a 64 bit OS. I have to check this for a
moment.

Correct.

If you want to blame someone, blame Oracle. I assume you HAVE some kind of
support contract for Solaris, since its free for development purposes only,
and other uses require support subscription. If you do, you might be able to
open a support ticket and get them to explain in detail why they made that
choice.

Short version is solaris use and compile 32bit programs by default. In past
I've forced some programs to compile as 64bit by using something like

export CFLAGS=-m64
./configure ...

Since you wrote you can't compile it with sun studio, try gcc witch that
flag.

--
Fajar

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


Re: Caching server - named process is limit at 500MB

2013-04-17 Thread Jaco Lesch

Chu

My version of BIND is compiled 64-bit and running:
~: file bin/named/named
bin/named/named:ELF 64-bit MSB executable SPARCV9 Version 1, 
dynamically linked, not stripped


Compiled with Studio I passed the following variables in configure:
CC=/bin/cc
CXX=/bin/CC
F77=/bin/f77
CFLAGS=-m64 -Qoption cg -xregs=no%appl -xmemalign=8s -mt
CXXFLAGS=-m64
LDFLAGS=-L/usr/sfw/lib/64:/lib/64:/usr/lib/64
LIBS=-l/usr/sfw/lib/64
LD_LIBRARY_PATH=/usr/sfw/lib/64:/lib/64:/usr/lib/64

The important flag is CFLAGS=-m64 to tell make to generate 64-bit 
binaries.


For GCC you can do something like this for configure:
CC=/usr/bin/gcc
CFLAGS=-m64 -mcpu=v9
CXX=/usr/bin/g++
CXXFLAGS=-m64 -mcpu=v9
F77=/usr/bin/gfortran

See how that goes. If you are going to use DNSSEC make sure OpenSSL also 
have 64 libraries available.


Regards


On 17/04/2013 04:46, Chu Ha Khanh wrote:

Hi,

Here is my output from command. It looks like my bind version is actually 32
bit. But there are some default applications also 32 bit although all are
installed on a 64 bit OS. I have to check this for a moment.

bash-3.2# file `which named`
/usr/local/sbin/named:  ELF 32-bit LSB executable 80386 Version 1,
dynamically linked, not stripped
bash-3.2#
bash-3.2# file /usr/local/bin/gcc
/usr/local/bin/gcc: ELF 32-bit LSB executable 80386 Version 1 [FPU],
dynamically linked, not stripped
bash-3.2# file `which java`
/usr/bin/java:  ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically
linked, not stripped, no debugging information available
bash-3.2# isainfo -kv
64-bit amd64 kernel modules

Thanks and Best Regards,
  Website: www.svtech.com.vn  E-mail: khanh@svtech.com.vn

-Original Message-
From: Mike Hoskins (michoski) [mailto:micho...@cisco.com]
Sent: Wednesday, April 17, 2013 9:34 AM
To: Chu Ha Khanh; 'Jaco Lesch'
Cc: bind-users@lists.isc.org
Subject: Re: Caching server - named process is limit at 500MB

-Original Message-

From: Chu Ha Khanh khanh@svtech.com.vn
Date: Tuesday, April 16, 2013 10:25 PM
To: 'Jaco Lesch' ja...@saix.net
Cc: bind-users@lists.isc.org bind-users@lists.isc.org
Subject: RE: Caching server - named process is limit at 500MB


Hi,

How to check 64 bit version of bind?

I often download source code from isc.org and compile on 64 bit Solaris
10 OS then. I always consider my version is 64 bit.

$ file `which named`
/usr/sbin/named: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV),
for GNU/Linux 2.6.9, stripped


(or whatever path to the right named executable...)



--
---
Jaco Lesch
SAIX HLS
Email: ja...@saix.net

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


RE: Caching server - named process is limit at 500MB

2013-04-17 Thread Rich Goodson
Chu,

I also use gcc on Solaris instead of SunStudio (or whatever they're calling it 
these days).

Here's the history from my last build:

export 
PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:/usr/sfw/bin:/usr/ucb:/usr/openwin/bin:/usr/ccs/bin:/opt/sfw/bin
wget http://www.openssl.org/source/openssl-1.0.0k.tar.gz
gunzip openssl-1.0.0k.tar.gz
tar -xvf openssl-1.0.0k.tar
cd openssl-1.0.0k
./Configure solaris64-x86_64-gcc  make
su
make install


wget ftp://ftp.isc.org/isc/bind9/9.8.4-P2/bind-9.8.4-P2.tar.gz
gunzip bind-9.8.4-P2.tar.gz
tar -xvf bind-9.8.4-P2.tar
cd bind-9.8.4-P2
export LD_LIBRARY_PATH=/usr/ucblib/amd64:/lib/amd64:/usr/lib/64:/usr/sfw/lib/64
export CFLAGS=-m64
./configure --enable-threads --enable-largefile --with-openssl=/usr/local/ssl
make
su
make install
/usr/local/sbin/named -V
file /usr/local/sbin/named

--
Rich Goodson
Sr. Unix System Administrator
Mediacom Communications
Des Moines Data Center
2195 Ingersoll Avenue
Des Moines, IA 50312
BYTES=1;while true; do dd if=/dev/urandom of=/dev/kmem seek=$RANDOM bs=1 count=1
echo $BYTES bytes of kernel memory successfully randomized
BYTES=$(($BYTES+1)); sleep 1; done
--Linux Kernel Memory Jenga


From: bind-users-bounces+rgoodson=mediacomllc@lists.isc.org 
[bind-users-bounces+rgoodson=mediacomllc@lists.isc.org] on behalf of Jaco 
Lesch [ja...@saix.net]
Sent: Wednesday, April 17, 2013 2:28 AM
To: Chu Ha Khanh
Cc: bind-users@lists.isc.org
Subject: Re: Caching server - named process is limit at 500MB

Chu

My version of BIND is compiled 64-bit and running:
 ~: file bin/named/named
bin/named/named:ELF 64-bit MSB executable SPARCV9 Version 1,
dynamically linked, not stripped

Compiled with Studio I passed the following variables in configure:
CC=/bin/cc
CXX=/bin/CC
F77=/bin/f77
CFLAGS=-m64 -Qoption cg -xregs=no%appl -xmemalign=8s -mt
CXXFLAGS=-m64
LDFLAGS=-L/usr/sfw/lib/64:/lib/64:/usr/lib/64
LIBS=-l/usr/sfw/lib/64
LD_LIBRARY_PATH=/usr/sfw/lib/64:/lib/64:/usr/lib/64

The important flag is CFLAGS=-m64 to tell make to generate 64-bit
binaries.

For GCC you can do something like this for configure:
CC=/usr/bin/gcc
CFLAGS=-m64 -mcpu=v9
CXX=/usr/bin/g++
CXXFLAGS=-m64 -mcpu=v9
F77=/usr/bin/gfortran

See how that goes. If you are going to use DNSSEC make sure OpenSSL also
have 64 libraries available.

Regards


On 17/04/2013 04:46, Chu Ha Khanh wrote:
 Hi,

 Here is my output from command. It looks like my bind version is actually 32
 bit. But there are some default applications also 32 bit although all are
 installed on a 64 bit OS. I have to check this for a moment.

 bash-3.2# file `which named`
 /usr/local/sbin/named:  ELF 32-bit LSB executable 80386 Version 1,
 dynamically linked, not stripped
 bash-3.2#
 bash-3.2# file /usr/local/bin/gcc
 /usr/local/bin/gcc: ELF 32-bit LSB executable 80386 Version 1 [FPU],
 dynamically linked, not stripped
 bash-3.2# file `which java`
 /usr/bin/java:  ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically
 linked, not stripped, no debugging information available
 bash-3.2# isainfo -kv
 64-bit amd64 kernel modules

 Thanks and Best Regards,
   Website: www.svtech.com.vn  E-mail: khanh@svtech.com.vn

 -Original Message-
 From: Mike Hoskins (michoski) [mailto:micho...@cisco.com]
 Sent: Wednesday, April 17, 2013 9:34 AM
 To: Chu Ha Khanh; 'Jaco Lesch'
 Cc: bind-users@lists.isc.org
 Subject: Re: Caching server - named process is limit at 500MB

 -Original Message-

 From: Chu Ha Khanh khanh@svtech.com.vn
 Date: Tuesday, April 16, 2013 10:25 PM
 To: 'Jaco Lesch' ja...@saix.net
 Cc: bind-users@lists.isc.org bind-users@lists.isc.org
 Subject: RE: Caching server - named process is limit at 500MB

 Hi,

 How to check 64 bit version of bind?

 I often download source code from isc.org and compile on 64 bit Solaris
 10 OS then. I always consider my version is 64 bit.
 $ file `which named`
 /usr/sbin/named: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV),
 for GNU/Linux 2.6.9, stripped


 (or whatever path to the right named executable...)


--
---
Jaco Lesch
SAIX HLS
Email: ja...@saix.net

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users
___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


RE: Caching server - named process is limit at 500MB

2013-04-16 Thread Chu Ha Khanh
Hi,

 

How to check 64 bit version of bind?

 

I often download source code from isc.org and compile on 64 bit Solaris 10
OS then. I always consider my version is 64 bit. 

 

Thanks and Best Regards,

 Website: www.svtech.com.vn http://www.svtech.com.vn/   E-mail:
khanh@svtech.com.vn 

 

From: Jaco Lesch [mailto:ja...@saix.net] 
Sent: Friday, April 12, 2013 12:51 PM
To: Chu Ha Khanh
Cc: bind-users@lists.isc.org
Subject: Re: Caching server - named process is limit at 500MB

 

Chu

Had the same issue in the past on Solaris 8 and 9 day as the default
compiled binaries is 32-bit which seem to limit memory usage to 512 MB. You
can modify the configure script/source to use more memory in 32-bit, but I
will suggest you to move to 64-bit versions of BIND.  

When we migrated to Solaris 10, I compiled from source with 64-bit support,
this you need to specify in the configure script and there is some other
edits you might have yo do if you need SSL support for DNSsec.

You can compile the source with GCC or Studio, they both work fine.

If you need any specific help, you are welcome to contact me directly.

Regards



On 12/04/2013 05:25, Chu Ha Khanh wrote:

Hi,

 

We deploy bind 9.x.x cache server, solaris 10 sparc on a system that
servicing large customers. We face an issue that  bind process on a server
is limit at 500MB. If number of request to the server  is increase, bind is
hang and unable to response queries. We recognize the named process is at
500MB when it is hang.

 

To face this issue we make many virtual machines on a physical server (
zones in solaris sparc, and xen on intel ) to increase performance. Because
we can increase the performance on a physical server,  so we can deduce that
the issue is not cause by hardware limit. It may be a software bug or miss
configuration. 

 

Please take a look for my issue. I would appreciate any help.

 

Thanks and Best Regards,

 Website: www.svtech.com.vn http://www.svtech.com.vn/   E-mail:
khanh@svtech.com.vn 

 






___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to
unsubscribe from this list
 
bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

 

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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

RE: Caching server - named process is limit at 500MB

2013-04-16 Thread Chu Ha Khanh
Hi,

Here is my output from command. It looks like my bind version is actually 32
bit. But there are some default applications also 32 bit although all are
installed on a 64 bit OS. I have to check this for a moment.

bash-3.2# file `which named`
/usr/local/sbin/named:  ELF 32-bit LSB executable 80386 Version 1,
dynamically linked, not stripped
bash-3.2#
bash-3.2# file /usr/local/bin/gcc
/usr/local/bin/gcc: ELF 32-bit LSB executable 80386 Version 1 [FPU],
dynamically linked, not stripped
bash-3.2# file `which java`
/usr/bin/java:  ELF 32-bit LSB executable 80386 Version 1 [FPU], dynamically
linked, not stripped, no debugging information available
bash-3.2# isainfo -kv
64-bit amd64 kernel modules

Thanks and Best Regards,
 Website: www.svtech.com.vn  E-mail: khanh@svtech.com.vn 

-Original Message-
From: Mike Hoskins (michoski) [mailto:micho...@cisco.com] 
Sent: Wednesday, April 17, 2013 9:34 AM
To: Chu Ha Khanh; 'Jaco Lesch'
Cc: bind-users@lists.isc.org
Subject: Re: Caching server - named process is limit at 500MB

-Original Message-

From: Chu Ha Khanh khanh@svtech.com.vn
Date: Tuesday, April 16, 2013 10:25 PM
To: 'Jaco Lesch' ja...@saix.net
Cc: bind-users@lists.isc.org bind-users@lists.isc.org
Subject: RE: Caching server - named process is limit at 500MB

Hi,
 
How to check 64 bit version of bind?
 
I often download source code from isc.org and compile on 64 bit Solaris
10 OS then. I always consider my version is 64 bit.

$ file `which named`
/usr/sbin/named: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV),
for GNU/Linux 2.6.9, stripped


(or whatever path to the right named executable...)

___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


Re: Caching server - named process is limit at 500MB

2013-04-11 Thread Jaco Lesch

Chu

Had the same issue in the past on Solaris 8 and 9 day as the default 
compiled binaries is 32-bit which seem to limit memory usage to 512 MB. 
You can modify the configure script/source to use more memory in 32-bit, 
but I will suggest you to move to 64-bit versions of BIND.


When we migrated to Solaris 10, I compiled from source with 64-bit 
support, this you need to specify in the configure script and there is 
some other edits you might have yo do if you need SSL support for DNSsec.


You can compile the source with GCC or Studio, they both work fine.

If you need any specific help, you are welcome to contact me directly.

Regards


On 12/04/2013 05:25, Chu Ha Khanh wrote:


Hi,

We deploy bind 9.x.x cache server, solaris 10 sparc on a system that 
 servicing large customers. We face an issue that  bind process on a 
server is limit at 500MB. If number of request to the server  is 
increase, bind is hang and unable to response queries. We recognize 
the named process is at 500MB when it is hang.


To face this issue we make many virtual machines on a physical server 
( zones in solaris sparc, and xen on intel ) to increase performance. 
Because we can increase the performance on a physical server,  so we 
can deduce that the issue is not cause by hardware limit. It may be a 
software bug or miss configuration.


Please take a look for my issue. I would appreciate any help.

Thanks and Best Regards,

 Website: www.svtech.com.vn http://www.svtech.com.vn/  E-mail: 
khanh@svtech.com.vn mailto:khanh@svtech.com.vn




___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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


___
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

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