This problem happen in solaris 9 and nscd.conf is default file.
Let me know:
How configure nscd.conf to the better performance according to
statistics from output "nscd -g" command?
Thanx.
Ed.
The purpose nscd is to decrease network usage and maybe even CPU usage.
nscd is not needed, but killing it might add CPU usage to system/kernel,
and lower the overall performance.
Find out if there is a process that continuesly queries a name service
which is cached by nscd.
Or maybe it is queried over the network - then snoop will find out.
--
Michael Tosch @ hp : com
Top may not show you all the processes in one terminal display. If you
want to really do the CPU match try this:
ps -eafo pcu,pid,comm|awk 'BEGIN{cputot=0}{cputot+=$1}END {print "Total
CPU:",cputot}'
You may not see it adding up to 100% coz, I/O waits may not be
accounted into process's CPU utilization.
-Dexthor.
Well, if you're trying to add up all the process percentages, the output
in 'top', 'ps' and default 'prstat' are all the same and probably won't
come close to 100% unless things haven't started, died, or changed the
amount of usage recently (which is almost never true).
Basically, the figures have a long time component in them. If a heavy
process exits, it takes all it's recent CPU with it in the figures, but
the remaining ones will be slow to react and the figures will not sum to
100 for a period of time.
'prstat -m' is more of an "instant" snapshot and has a better shot at
giving you a consistent image like that.
--
Darren Dunham ddu...@taos.com
Senior Technical Consultant TAOS http://www.taos.com/
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Is this server running a WebServer or something like that ? If so, most
of these services have options to disable "DNS lookups" on each
request. This might be the best fix.
I dont see any issue with the 99.7% cache hit rate you have on your
hosts-cache though !! Thats pretty good.
Btw, what is your nsswitch.conf (hosts) entry look like ??
-Dexthor.
>Thanks for the nscd output. It looks like majority of the activity in
>nscd is happening in the hosts module, so something that's running on
>the box is doing DNS lookups.
If you have nameservers that do caching, you can disable caching in
nscd by setting:
enable-cache hosts no
in /etc/nscd.conf. We do it this way on all of our Solaris machines.
For large tables, you can also increase the hash size in nscd.
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
Yes, this server is a WebServer.
The host entry in the nsswitch.conf as follows:
hosts: files dns
Thanks.
Ed.
Can you live without DNS lookups on the WebServer ??
-Dexthor.
hosts cache:
Yes cache is enabled
212294 cache hits on positive entries
1539 cache hits on negative entries
79234 cache misses on positive entries
25929 cache misses on negative entries
67.0% cache hit rate
0 queries deferred
54 total entries
211 suggested size
3600 seconds time to live for positive entries
5 seconds time to live for negative entries
20 most active entries to be kept valid
Yes check /etc/{passwd, group, hosts, inet/ipnodes} file for
changes
No use possibly stale data rather than waiting for refresh
- Bart