Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Nov 2000 10:28:54 -0600
From:      "Guy Gustavson" <bigfoot@stomped.com>
To:        <questions@FreeBSD.ORG>
Subject:   ypserv using a LOT of cpu.
Message-ID:  <CFEOIJHOMMPFKFKHLLGPEEBHCCAA.bigfoot@stomped.com>
In-Reply-To: <bulk.49006.20001105233139@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

I recently moved my network of six machines over to NIS for passwd
authentication.

The six machines have the following jobs...

1. smithers.stomped.com  - NIS master, DNS server  (pop3 service in the near
future)
2. www.stomped.coom  - NIS slave, heavily loaded web server,  pop3
3. web1.stomped.com - NIS slave, heavily load web server
4. ftp.stomped.com - dedicated ftp server (300 users), NIS slave, ircd
5. lore.stomped.com - database server, shoutcast server.
6. titan.stomped.com - a dedicated NFS server.


All the machines are running run 4.1.1-RELEASE, except www (3.2), which will
up upgraded shortly.

There are dual network adapters in all machine except titan. We have two IP
blocks. a public 216.17.56.0/8 block for internet services (ftp, smtp, pop3,
http, act).
The private services (NIS, NFS, sql, act) run on a private 10.1.1.0/8
network.

I was amazed at how much cpu that ypserv is using on these boxes. In fact
that's why I added two NIS slave servers in the first place.

Smithers is only a single cpu Celeron machine, ypserv was routinely using
all available cpu on this box.
From time to time (several times an hour) the ypserv cpu load jumps from
%0.1 up to all available cpu and stays there from several minutes and then
returns to normal. I occasionally get yp timeouts during this time, even
with three NIS servers for these few machines.

At first I thought apache was just doing a lot more lookups than I thought
it should be doing, but it still doesn't seem like it should use that many
system resources.

last pid:  7252;  load averages:  1.45,  1.29,  1.27
up 5+10:38:20  10:24:08
451 processes: 4 running, 446 sleeping, 1 zombie
CPU states: 16.7% user,  0.0% nice, 57.2% system,  5.0% interrupt, 21.1%
idle
Mem: 780M Active, 112M Inact, 67M Wired, 30M Cache, 8345K Buf, 8428K Free
Swap: 256M Total, 916K Used, 255M Free

  PID USERNAME       PRI NICE  SIZE    RES STATE  C   TIME   WCPU    CPU
COMMAND
  453 root            95   0  1796K  1372K RUN    1 991:17 57.03% 57.03%
ypserv


(It would be using more on this machine, but it's a dual cpu box, and it can
only saturate the one cpu at a time)






To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CFEOIJHOMMPFKFKHLLGPEEBHCCAA.bigfoot>