Date: Tue, 30 Jun 2020 18:39:36 +1000 From: Peter Jeremy <peter@rulingia.com> To: Donald Wilde <dwilde1@gmail.com> Cc: freebsd-stable <freebsd-stable@freebsd.org> Subject: Re: swap space issues Message-ID: <20200630083936.GA63105@server.rulingia.com> In-Reply-To: <CAEC73918LKtTeqhuM%2BdojrMRsRT2fbyt6nfB-ZcTh=6A8tOPmA@mail.gmail.com> References: <20200625025248.GB10210@eureka.lemis.com> <CAEC73938Wjb5MHvLW36PdoAy_nso-tSN51AhUYydC6qxY99pog@mail.gmail.com> <E8763B97-2DB7-4C77-864D-08155168E352@gromit.dlib.vt.edu> <CAEC7391AHKXd0KfJdUGKMv1QRh_AtA1BrtqaQwy3dXEoJEMoDw@mail.gmail.com> <20200626102331.GA6406@server.rulingia.com> <BAC0BDDA-7AC5-4029-B7D2-4C10DDB22028@gid.co.uk> <1140215402.1.1593187896838@localhost> <CAEC7392zQ25bZ3JZi=6yKjde-FxYFQMv6kSDoqM8szcP5Ozd8w@mail.gmail.com> <CAEC7392e55fzvJJe5HUXVgTUhctUr-aB80ADCswqf0B__Z57Zg@mail.gmail.com> <CAEC73918LKtTeqhuM%2BdojrMRsRT2fbyt6nfB-ZcTh=6A8tOPmA@mail.gmail.com>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On 2020-Jun-28 12:33:21 -0700, Donald Wilde <dwilde1@gmail.com> wrote: >On 6/28/20, Donald Wilde <dwilde1@gmail.com> wrote: >> On 6/27/20, Donald Wilde <dwilde1@gmail.com> wrote: >>> 'spinning rust' <haha> for a disk. My loader.conf has >>> kern.maxswzone=4200000 and ccache is fully active and working for both >>> root on tcsh and users on sh. Based on my calculations, that maxswzone is good for just under 1GB swap. What do you see have for vm.swap_maxpages and vm.swzone? >> Synth is still crashing hard, same issue. >An update. Synth still crashed with one swap zone of 16GB. What do you mean by "swap zone"? Do you mean you have one 16GB swap device? >stack overflow. As I say, there was no warning. Everything was fine, >then memory usage went through the roof! I've just tried building llvm80 via ports[1] on my laptop, using the same options as you. I have 4GB RAM and 4GB swap with system defaults and had no problems with an 8-way build. The highest swap usage I noticed was <500MB. I suspect your problems are related to either ccache or synth. >The second one, hopefully, contains every log up to the one that >crashed and hopefully also the beginning of that task. As I say, ONE >builder and ONE task, after a reboot. LLVM80 was the only builder >input. "one builder and one task" - these are presumably synth terms since they aren't standard ports building terms. You should be able to do a single-theaded build of llvm80 in 4GB RAM without problems. That said, I notice that the first log file suggests you were building 3 ports in parallel, and each port build was running 3 jobs - that's 9 jobs in parallel on a low-spec CPU with 4 threads. You should limit the number of CPU-bound processes to the number of CPU threads you have. [1] cd /usr/ports/devel/llvm80 && make -- Peter Jeremy [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE2M6l8vfIeOACl4uUHZIUommfjLIFAl76+kFfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQ4 Q0VBNUYyRjdDODc4RTAwMjk3OEI5NDFEOTIxNEEyNjk5RjhDQjIACgkQHZIUommf jLKbgg//d0CZ8FCMHjXHzH5ZXM2edr7zbfF+JQZBhGY3t7M4xnMq5rQZtWd7pRzY i9Zes0vVqF21eMPDlJSL0DJ8gJmyrxauMZ+1TNx2JvpRIAqK77v4LuUrzXKjjcn6 qVObiwzaAocMEk02ghb5EGZGZcmAO4G2Ww3Fh2cbx2wBs6b2z8mzqAA4xTI4klaY ueP77RRu4IxJeIH98FanlEfFfeS3CoI2qKMBeAylHABKYJPqghnkGwWrX+UKyeY5 lmljeH2p5Cm+/1TxpuWPm/xKXcq+QK9svZKxTKfZ+4BWFx8goqRYlwgnvFQbhgAl LBBtIBbtokZ4XhoXVoeFbpTu8pqWRyDjwrrg+Aw/AfVcvIxI6cRXbw9rjVt900w6 ayb+b0UPul9Ki6xZclteoDFsPZC9PDgiDO0EqS86h8ihZ/1qQjLt9zpxR8xwkNIf Qrud2nA+Da1T3qYyXWZ8fApb2iXzJ0luDJrUVD9yAh7pREtfJFcueHVJsKLPi/uv g36zPSvp5fIlqvXVL4wJDVXxiV2OqU+Ds6LYaqIIGsg1qHddUz+hs3crD7LArSEQ OaV5fmThYjtOTIVgel7VYcNbY5FkMgvDj6i/h7sWC1mnvxqqPkRK9G9X5WKx9Tyj Ois6VvZ1+7iOSDg6apvOKbMwki+bQjFHZZ8/CPO6IkEOJalob7A= =FiWs -----END PGP SIGNATURE-----help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200630083936.GA63105>
