Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Feb 2014 16:11:08 +0200
From:      Volodymyr Kostyrko <c.kworr@gmail.com>
To:        Matthias Gamsjager <mgamsjager@gmail.com>
Cc:        freebsd-fs@freebsd.org
Subject:   Re: ZFS and Wired memory, again
Message-ID:  <531098FC.6090806@gmail.com>
In-Reply-To: <CA%2BD9QhtVkYNoEGwhx-EJi9X1jr_UN2rgYxbZtA99qcT4UA-8kA@mail.gmail.com>
References:  <CAFG2KC%2BZSHEVFbpPD9e1QHRdY=Sd6EuAD80vyDLDDQcpgCQNhA@mail.gmail.com> <530F6475.4090508@gmail.com> <CA%2BD9QhtVkYNoEGwhx-EJi9X1jr_UN2rgYxbZtA99qcT4UA-8kA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
28.02.2014 13:47, Matthias Gamsjager wrote:
>
>
>     +1 from me, FreeBSD 10, uma=0
>
>     52 processes:  2 running, 49 sleeping, 1 zombie
>     CPU:  0.0% user,  0.0% nice,  0.0% system,  0.4% interrupt, 99.6% idle
>     Mem: 31M Active, 16K Inact, 3352M Wired, 17M Cache, 48M Free
>     ARC: 1838M Total, 110M MFU, 18M MRU, 548K Anon, 1876M Header, 75M Other
>     Swap: 4096M Total, 126M Used, 3969M Free, 3% Inuse
>
>     Machine is plain dead. Running database or squid or anything causes
>     excessive swapping. This is the state when I disabled all payload,
>     with everything started swap goes to 500M and machine is burning disks.
>
>
> I wonder do you use any zfs tuning? Like max arc size? Wonder if setting
> that to a reasonable amount would help.

The previous sample was taken without any tunables. After that I enabled 
vfs.zfs.zio.use_uma in /boot/loader.conf and now everything looks like:

103 processes: 1 running, 101 sleeping, 1 zombie
CPU:  0.0% user,  0.0% nice,  1.2% system,  2.0% interrupt, 96.9% idle
Mem: 137M Active, 13M Inact, 3176M Wired, 14M Cache, 111M Free
ARC: 2026M Total, 781M MFU, 72M MRU, 414K Anon, 1221M Header, 98M Other
Swap: 4096M Total, 263M Used, 3833M Free, 6% Inuse

Currently wired memory grows and pushes inactive to swap. Sometimes 
wired memory retracts freeing 100MB or so. Machine is in working state 
currently.

The major changes are:

* less wired;
* more arc;
* a lot of header memory but less then before, I wonder whether it only 
grows or retracts...

I'm also thinking about trying a patch to l2arc as this system uses 
external l2 cache.

-- 
Sphinx of black quartz, judge my vow.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?531098FC.6090806>