From owner-freebsd-hackers@FreeBSD.ORG Thu May 11 15:55:26 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 72A0016A62F for ; Thu, 11 May 2006 15:55:26 +0000 (UTC) (envelope-from tbyte@otel.net) Received: from mail.otel.net (gw3.OTEL.net [212.36.8.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E0E044410 for ; Thu, 11 May 2006 15:33:12 +0000 (GMT) (envelope-from tbyte@otel.net) Received: from dragon.otel.net ([212.36.8.135]) by mail.otel.net with esmtp (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FeDA6-000GOc-QQ for freebsd-hackers@freebsd.org; Thu, 11 May 2006 18:33:11 +0300 From: Iasen Kostov To: FreeBSD Hackers In-Reply-To: <1147265038.51661.19.camel@DraGoN.OTEL.net> References: <1147264089.51661.10.camel@DraGoN.OTEL.net> <1147264379.51661.14.camel@DraGoN.OTEL.net> <1147265038.51661.19.camel@DraGoN.OTEL.net> Content-Type: text/plain Date: Thu, 11 May 2006 18:33:10 +0300 Message-Id: <1147361590.33341.19.camel@DraGoN.OTEL.net> Mime-Version: 1.0 X-Mailer: Evolution 2.6.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Subject: Re: Heavy system load by pagedaemon X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 15:55:36 -0000 On Wed, 2006-05-10 at 15:43 +0300, Iasen Kostov wrote: > On Wed, 2006-05-10 at 15:32 +0300, Iasen Kostov wrote: > > On Wed, 2006-05-10 at 15:28 +0300, Iasen Kostov wrote: > > > Hello > > > I (probably) have some problem with a hosting server machine halting > > > about once a 30 to minute (probably when the free memory falls under > > > some threshold). At that moment the machine totally halts for about 5 sec > > > then resumes normal work with load average around 9-15 (depends on > > > system load) from about 2-3. The system is: > > > (nice try :() > > FreeBSD 6.1-PRERELEASE #7: Wed Mar 15 17:35:21 EET 2006 > > > > ACPI APIC Table: > > Timecounter "i8254" frequency 1193182 Hz quality 0 > > CPU: Dual Core AMD Opteron(tm) Processor 270 (2004.56-MHz K8-class CPU) > > Origin = "AuthenticAMD" Id = 0x20f12 Stepping = 2 > > > > Features=0x178bfbff > > Features2=0x1 > > AMD Features=0xe2500800,LM,3DNow+,3DNow> > > real memory = 8724152320 (8320 MB) > > avail memory = 8315379712 (7930 MB) > > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > > > Hum, I was probably wrong about the free memory threshold - it > currently has ~1600MB of free and it is doing it again. When the free > memory falls under ~30MB it is just doing it more frequently. > And another odd thing (to me atleast): #:> vmstat -s | grep "daemon\|fault" 0 page daemon wakeups 0 pages examined by the page daemon 4992608 copy-on-write faults 29021 copy-on-write optimized faults 75167 intransit blocking page faults 66956262 total VM faults taken 0 pages freed by daemon Acording to vmstat pagedaemon has never been awake. But after every 5 sec. lock I can see it eating ~25% of cpu (100/4 cpus) and I can see processes in "*Giant" and "*vm ob" states. Worst thing it that the machine is freshly rebooted and it was doing it even with ~6G of free RAM and no swapping at all. Kamal R. Prasad suggested that "Belady's anomaly" might occur. If it's true or possible what could be done about this ?