From owner-freebsd-questions Mon Nov 6 8:28: 4 2000 Delivered-To: freebsd-questions@freebsd.org Received: from www.stomped.com (stomped.com [216.17.56.5]) by hub.freebsd.org (Postfix) with ESMTP id 6A77137B4C5 for ; Mon, 6 Nov 2000 08:27:57 -0800 (PST) Received: from oemcomputer (homebox.stomped.com [24.163.163.195]) by www.stomped.com (8.9.3/8.9.3) with SMTP id KAA07941 for ; Mon, 6 Nov 2000 10:27:55 -0600 (CST) From: "Guy Gustavson" To: Subject: ypserv using a LOT of cpu. Date: Mon, 6 Nov 2000 10:28:54 -0600 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal In-Reply-To: Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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