Operating System - HP-UX
1833460 Members
2944 Online
110052 Solutions
New Discussion

dns performance on orca hpux

 
tommy_28
Frequent Advisor

dns performance on orca hpux

Hi,

This is a performance test case for hp customer.

I have partitioned orca and use a 6cpu parittion, but I cannot get cpu usage up 50%, which means only 3 cpus of 6,and thus does not generate fairly good performance.

I use bind9.2.0, hpux11.23, and queryperf, which is the perf test tool from isc.

It is interesting that each queryperf client(with 50 or more concurrent thread) can only take up 1MB network throughput, I add more clinet, and get better performance. The test result as below:

num. of client query per second
1 7000
3 15000
5 25000

monitering with glance, named wait event is stream and lan, system call mainly on messege send/recieve, while system tables are not full at all. I've checked that dns service use udp socket for communication, and guest maybe the bottomneck resides on network.

ndd shows some tunnables for network, it seems SOCKET module may help, but when I issue #ndd -get SOCKET ? it said socket is not a module.%$#^@^ fresh meat, how to tune it..

So, does anyone have any suggestions?


Thx.

Tommy
6 REPLIES 6
harry d brown jr
Honored Contributor

Re: dns performance on orca hpux


How do you have BIND configured (post /etc/resolv.conf, /etc/nssswitch.conf, /etc/named.conf)? Is your HP server talking to a DNS server or is your HP the DNS master? If your HP server is talking to DNS master server, then do you have your HP configured to do DNS caching?



live free or die
harry
Live Free or Die
tommy_28
Frequent Advisor

Re: dns performance on orca hpux

named.conf, nsswitch.conf, resolv.conf are also very simple, I'm sure they point to right dns and resolve using dns first.
the dns queries are all simple A type queries. I have a small data file, recorded no more than 10 data totally, and the queryperf test task is to look out A name from these 10 datas.

HP server is the only dns master server, and no forwarders. This is a simple test from customer, just to add presure on the system and see qps, does it make sense?
harry d brown jr
Honored Contributor

Re: dns performance on orca hpux


If your HP server is a DNS server, then queries run (using queryperf) on your HP server will not go to the network, thus network performance is not an issue.

It would probably help if you posted:

/etc/hosts
/etc/named.conf
/etc/resolv.conf
/etc/nsswitch.conf

and any zone files you have configured in /etc/named.data

live free or die
harry
Live Free or Die
tommy_28
Frequent Advisor

Re: dns performance on orca hpux

I tried added some options to named.conf, no improvement. Do you know how to setup more than one named instance? I'd like to try to get system run up 50% cpu usage.


named.conf
#
# type domain source file
#

options {
directory "/etc/named.data";
minimal-responses yes;
transfers-in 100;
transfers-out 100;
transfers-per-ns 20;
recursive-clients 10000;
tcp-clients 1000;
};

zone "0.0.127.IN-ADDR.ARPA" {
type master;
file "db.127.0.0";
};

zone "test.com" {
type master;
file "db.test";
};

zone "11.168.192.IN-ADDR.ARPA" {
type master;
file "db.192.168.11";
};

zone "." {
type hint;
file "db.cache";
};

==================
nsswitch.conf

hosts: dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=continue] files

==================
resolv.conf

domain test.com
search dns test.com files
nameserver 192.168.11.111

==================
db.test

$TTL 86400
@ IN SOA 192.168.11.111. root.orca1.test.com. (
2 ; Serial
10800 ; Refresh every 3 hours
3600 ; Retry every hour
604800 ; Expire after a week
86400 ) ; Minimum ttl of 1 day
IN NS orca1.test.com.

localhost IN A 127.0.0.1
orca1 IN A 192.168.11.111
rx7620 IN A 192.168.11.140
orca2 IN A 192.168.11.112
rx86201 IN A 192.168.11.113
rx86202 IN A 192.168.11.114
hpsc1600 IN A 192.168.11.115
orca1-2 IN A 192.168.11.121
harry d brown jr
Honored Contributor

Re: dns performance on orca hpux

man resolv.conf

The domain and search keywords are mutually exclusive. If more than one instance of these keywords is present, the last instance overrides.

Also, this syntax is not correct:

search dns test.com files

it should read:

search test.com

also, what are the results of:

host -v localhost


live free or die
harry
Live Free or Die
Muthukumar_5
Honored Contributor

Re: dns performance on orca hpux

Entries on /etc/resolv.conf as,

domain test.com
search dns test.com files
nameserver 192.168.11.111

are being problem

If you want to configure hostname resolvation then that will be in nsswitch.conf only.

-- /etc/nsswitch.conf --
hosts: dns files

-- /etc/resolv.conf --
domain test.com
nameserver xx.xx.xx.xx

Try to check hostname resolvation there as,

nslookup hostname / ip / fqdn

nsquery hosts "dns files" hostname

IT will show some changes there.

Brown pointed out the problem on resolv.conf there. You have mixed resolv.conf + nsswitch.conf on search TAG of resolv.conf

HTH.
Easy to suggest when don't know about the problem!