New FreeBSD 5.3 e-mail server extremely slow - traced to getpwnam maybe ?

Bruce Campbell bruce at engmail.uwaterloo.ca
Wed Jan 5 16:44:32 PST 2005


Quoting Bruce Campbell <bruce at engmail.uwaterloo.ca>:
> ...
> Well, somewhat unbelievably, copying a getpwent.c from 4.7
> and remaking libc on 5.3 with it worked.  Load average
> has gone from 70 to 2.
> 

One of my co-workers has found a less kludgey workaround
for the high load problem we were seeing on 5.3 with
large /etc/master.passwd, as follows:

--- /etc/nsswitch.conf.old      Wed Jan  5 19:23:24 2005
+++ /etc/nsswitch.conf  Wed Jan  5 19:23:43 2005
@@ -1,7 +1,7 @@
-group: compat
+group: files
 group_compat: nis
 hosts: files dns
 networks: files
-passwd: compat
+passwd: files
 passwd_compat: nis
 shells: files

System is purring with load average under 1 now,
200,000 pop/imap sessions per day and 200,000 e-mails
per day, all spamassassinated.

For more details and ongoing followup, see:

  http://www.freebsd.org/cgi/query-pr.cgi?pr=75855

-- 
Bruce Campbell
Engineering Computing
CPH-2374B
University of Waterloo
(519)888-4567 ext 5889

----------------------------------------
This mail sent through www.mywaterloo.ca


More information about the freebsd-questions mailing list