View previous topic :: View next topic |
Author |
Message |
toralf Developer
Joined: 01 Feb 2004 Posts: 3925 Location: Hamburg
|
Posted: Wed Feb 25, 2015 4:20 pm Post subject: [solved] swap storm at a (small tinderbox) |
|
|
I own a dedicated server with 16 GB RAM, where I do run 6 chroot images for QA purpose under a hardened Gentoo with latest unstable hardened kernel always (just -j1 make job per chroot)
3 times within the last 14 days I observed a swap storm, where the (otherwise completely empty) swap is filled with 10-12 GB of data for about 1/2 an hour or so, making the system unresponsive.
After that used swap space goes down to 0 again (I see this using the tool isag from sysstat).
The 6 emerge logs don't show any suspicious packages emerged around that time and known to bloat the disk/memory needs.
What else could be the culprit ?
Last edited by toralf on Sat Jun 06, 2015 9:32 am; edited 1 time in total |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3150
|
Posted: Wed Feb 25, 2015 8:08 pm Post subject: |
|
|
You said nothing that could point to the cause, but why won't you just disable swap? If it happens again OOM killer will "try to kill the children first" |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3925 Location: Hamburg
|
Posted: Wed Feb 25, 2015 8:15 pm Post subject: |
|
|
szatox wrote: | You said nothing that could point to the cause, but why won't you just disable swap? If it happens again OOM killer will "try to kill the children first" |
Well, that's harsh method - but might work. Still looking however for a more smart solution. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54300 Location: 56N 3W
|
Posted: Wed Feb 25, 2015 8:16 pm Post subject: |
|
|
toralf,
No -flto ? _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3925 Location: Hamburg
|
Posted: Wed Feb 25, 2015 8:33 pm Post subject: |
|
|
NeddySeagoon wrote: | toralf,
No -flto ? | yes - it is a server - there I made no experiments (except unstable hardened kernel) : Code: | CFLAGS="-O2 -pipe -march=native"
CXXFLAGS="${CFLAGS}"
# WARNING: Changing your CHOST is not something that should be done lightly.
# Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing.
CHOST="x86_64-pc-linux-gnu"
# These are the USE flags that were used in addition to what is provided by the
# profile used for building.
USE="dbus dnssec logrotate mbox mmx sse sse2 sse3 sse4 sse4.1 sse4.2 threads
tor-hardening vim-syntax -bindist -hpn -ipv6 -ldap"
CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
|
Update
What I'm tried few minutes ago is to set Code: | MaxMemInQueues 4 GB
| in /etc/tor/torrc - default is 8 GB. |
|
Back to top |
|
|
|