Caching server - named process is limit at 500MB

Rich Goodson rgoodson at mediacomllc.com
Wed Apr 17 14:19:00 UTC 2013


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.com at lists.isc.org [bind-users-bounces+rgoodson=mediacomllc.com at lists.isc.org] on behalf of Jaco Lesch [jacol at saix.net]
Sent: Wednesday, April 17, 2013 2:28 AM
To: Chu Ha Khanh
Cc: bind-users at 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.chu at svtech.com.vn
>
> -----Original Message-----
> From: Mike Hoskins (michoski) [mailto:michoski at cisco.com]
> Sent: Wednesday, April 17, 2013 9:34 AM
> To: Chu Ha Khanh; 'Jaco Lesch'
> Cc: bind-users at lists.isc.org
> Subject: Re: Caching server - named process is limit at 500MB
>
> -----Original Message-----
>
> From: Chu Ha Khanh <khanh.chu at svtech.com.vn>
> Date: Tuesday, April 16, 2013 10:25 PM
> To: 'Jaco Lesch' <jacol at saix.net>
> Cc: "bind-users at lists.isc.org" <bind-users at 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: jacol at saix.net

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

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


More information about the bind-users mailing list