Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 18 Jul 2014 18:14:26 -0700
From:      Adrian Chadd <adrian@freebsd.org>
To:        Tommy Scheunemann <net@arrishq.net>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Unexplainable behaviour after upgrading from 9.1 to 10.0
Message-ID:  <CAJ-Vmo=H=xAkupUSo4AEnfV7iwtnBq%2BJeLVFi5EhsfTsoDkczg@mail.gmail.com>
In-Reply-To: <alpine.BSF.2.11.1407181400560.1533@tscheunemann_bsd>
References:  <alpine.BSF.2.11.1407181400560.1533@tscheunemann_bsd>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <net@arrishq.net> 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"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmo=H=xAkupUSo4AEnfV7iwtnBq%2BJeLVFi5EhsfTsoDkczg>