From owner-freebsd-questions@FreeBSD.ORG Sat Jul 19 01:14:28 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 1F89CFA5 for ; Sat, 19 Jul 2014 01:14:28 +0000 (UTC) Received: from mail-qg0-x230.google.com (mail-qg0-x230.google.com [IPv6:2607:f8b0:400d:c04::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D359623FA for ; Sat, 19 Jul 2014 01:14:27 +0000 (UTC) Received: by mail-qg0-f48.google.com with SMTP id i50so3811443qgf.35 for ; Fri, 18 Jul 2014 18:14:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=OVwy4J78k2WvPcPsVQgN857MBZpIMO5PQJMu6WcZZ9s=; b=MypNzDuKzAvZXWVJcS100/6bCjeXG/pu8ZgUtvuYpZ8bKDYJeLMcUJf8KXq90kJY+X +h4cYE5EmSKu+vWAGHVMpxo1KkjYP5/a+3e3U5IugXv8Ddrl+vhKEogisIOVq3e+8mM+ /lAWapw1GneDROmryq6mnTLmbSTtgZGqDcOCWnCOal7prrz7jmuQN6IAy6DTWKBL98xA ZNkd3Eb5GksPJosOhbcHg90+ihTfSOfVMRn507F7d42yy0NWo+U+iAAoKxTK2+N4xV/p /FnurAdny3eHIna7NucQZxOaWl+G5rL7fNTHMvXHSsNcR2jjk5+sMj4h0iwA/tIL6aqk s5Yg== MIME-Version: 1.0 X-Received: by 10.229.171.196 with SMTP id i4mr14211594qcz.15.1405732466767; Fri, 18 Jul 2014 18:14:26 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.1.6 with HTTP; Fri, 18 Jul 2014 18:14:26 -0700 (PDT) In-Reply-To: References: Date: Fri, 18 Jul 2014 18:14:26 -0700 X-Google-Sender-Auth: 0QIt701iGDg2cncxbsusS-aoqfE Message-ID: Subject: Re: Unexplainable behaviour after upgrading from 9.1 to 10.0 From: Adrian Chadd To: Tommy Scheunemann Content-Type: text/plain; charset=UTF-8 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Jul 2014 01:14:28 -0000 hi, Try updating to stable/10; I believe alc@ fixed a bunch of VM related issues that made it into FreeBSD 10.0-REL. -a On 18 July 2014 05:10, Tommy Scheunemann wrote: > Hello @list, > > back in February this year I did an upgrade from 9.1-RELEASE to > 10.0-RELEASE. > Recompiled all ports (of course), using the same options as before. Also the > configuration is exactly the same - both of base and ports. > Still since then, and following all updates up to 10.0-RELEASE-p7, the > system has increasingly way more load. > Example top output: > > last pid: 44452; load averages: 0.57, 0.46, 0.42 > up 0+02:07:00 14:02:29 > 75 processes: 1 running, 74 sleeping > CPU: 0.4% user, 0.0% nice, 0.6% system, 0.2% interrupt, 98.9% idle > Mem: 691M Active, 1803M Inact, 119M Wired, 8988K Cache, 94M Buf, 138M Free > Swap: 2048M Total, 15M Used, 2033M Free > > The OS starts swapping out processes while there's still memory available, > as example Nginx (which acts as reverse proxy), php-fpm processes and a > couple of other instead of just keeping them in memory. > This behaviour is the same using the GENERIC kernel as well as a > self-compiled one (Xen drivers removed, unused NIC drivers, VirtIO and USB > support). > The hardware is of course the same as before so physically nothing changed. > Short after rebooting swap isn't used, though the longer the system runs the > more swap is used, up to around 900 MB e.g. by swapping MySQL. > The system itself is an i386 FreeBSD 10.0-RELEASE, 2 GB RAM, 2 SATA drivers > using a Gmirror. > The attached images show the difference in the entire system behaviour, > while the traffic the webserver gets, things MySQL should do, mails Postfix > sends and recieves didn't changed. > Just let the webserver deliver something takes of course more time, since > the process seems to run from swap. > Maybe interesting the sysctl.conf.local: > > kern.coredump=0 > kern.randompid=348 > > security.jail.chflags_allowed=0 > security.jail.allow_raw_sockets=0 > security.jail.enforce_statfs=2 > security.jail.set_hostname_allowed=0 > security.jail.param.persist=1 > security.jail.param.securelevel=3 > > security.bsd.see_other_uids=0 > security.bsd.see_other_gids=0 > > net.inet.icmp.drop_redirect=1 > net.inet.ip.portrange.randomized=1 > net.inet.ip.random_id=1 > > Which is the same as under 9.1 > > Anything else I can do to let the kernel stop swapping out processes without > much need ? > And of course if one needs more information, really no problem. > Would just like to get this issue solved before moving along with 10.0 on > the way more critical machines. > > Thanks in advance > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"