From owner-freebsd-questions@freebsd.org Sun Jul 26 20:24:44 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ECB1C36A72D for ; Sun, 26 Jul 2020 20:24:44 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.73]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BFDv002N7z42Vc for ; Sun, 26 Jul 2020 20:24:43 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.5.224.215]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPA (Nemesis) id 1N8XLj-1kuUX14BWb-014X5o; Sun, 26 Jul 2020 22:24:39 +0200 Date: Sun, 26 Jul 2020 22:24:38 +0200 From: Polytropon To: Valeri Galtsev Cc: freebsd-questions@freebsd.org Subject: Re: Ask stupid questions and you'll get a stupid answers, was: Technological advantages over Linux Message-Id: <20200726222438.719b77cf.freebsd@edvax.de> In-Reply-To: <27ca8c6c-6b06-6ad4-7af0-2b88f51a3856@kicp.uchicago.edu> References: <20200725152412.GJ92589@admin.sibptus.ru> <20200725162403.GA4721@admin.sibptus.ru> <20200725182554.deffc63058a7c9f6d343ef06@sohara.org> <04df312d-9b2b-1873-2117-79a49e089bd9@kicp.uchicago.edu> <20200726063256.GA22924@admin.sibptus.ru> <20200726093909.ee5e14e643d31da4dad5c804@sohara.org> <20200726151835.GA35966@admin.sibptus.ru> <27ca8c6c-6b06-6ad4-7af0-2b88f51a3856@kicp.uchicago.edu> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:lPHHXGzJs7s2hviMn57O7/34atfN5YNNG46DfdqcFyycNiIW0ry efLhAiCKo2z5qCdGJUGqp2F18wpw2F+j5gUyKGrnxQ943S05+W908FnyLJmoz6AKJ6Ej7DK YmkzM0XYCFd8Uta7P8jF9257bhuiVz9ca8YmmayJOLiwWxihnHltwf2A5B2tvoCqES2A1MC T/N8BAvt6gZvNu8ew0pDQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:r9jm7XPkG1s=:KL/hNm/TTeg7WczJz9SqMt ANl5SU5uAhSHaPlX+U6BmoFaDHFngibt49u3P3wJcLcel952+gauOZrnmcvCpyDcpgMZ+3KxQ OuHhs4bFWvxCcu+xnXLEfdH96B9433UuPymUNmR9V0E3kDLDpoxLEvpPz6Rb0gh0kgPcxStkS D/9M/Z+ZcvdNzUmKxiWRq/aWI0fhij4XAyypxjQJhHUio4Yhalg2GOi/J/llC5ZI1cG7sywee Qiw9CfgWdU7LNqq4Dg3nRwladqJm7ecjJ7FKT5eLKoM19JNI/m/st0JtPaubmaF6g/Y0fWqA4 7ZMqHsJ5Fjphii4o9lZ4CqoDCbKZqk9l3oQBGrOjkvAG9bfk1zJOUrcX+zMJJ4BSz+8TZvHdt An+ur1CiyKND3/Oj92FyOv6VdNlbfWfV4eoug8hWwl2+6b+sDUxqkEAyKUvZZpNWRglSKe6QP kQM9zbHDwxxrS93aC2GVKMZn72Dov8yY3uufJV0wMwiL1VpqstB01FzJyjEUo/CMUTxkp3Ok0 2romj5dqd7CcsW6H0S1xuw05llVePBaAY+dGoGHNNilXszHSWeB4GCShxV3Yusk1/IoyYrz0c N3dS+TJMpGlUEiLnABKNktb3tlKphsIwYIEfBhaZrHrhw+tZ7mBhhUqjNuRqo2YKTkzbxVtHf 7G82mgaD9w5Pg7NPZXPsOQLQAqlMHOj7hNkqLzg/TDRiU6SAd2JbevSeaFThufGJf/o9UuEJo SvWckRyFqlX2rXVcJPHEEPU4pKsK1ohDy6GfnmQ7IfRyeusETcDP5uBibVbZnZmzSSt9wH9oT kIvs7GiIRfLqToZz7nKOoyIigzlu3uldxA1UG9zgF7zkwmn4rvq8DQAqxQ2rFiiPKO038Xv X-Rspamd-Queue-Id: 4BFDv002N7z42Vc X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.73) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [2.68 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[178.5.224.215:received]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.43)[-0.427]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; NEURAL_SPAM_SHORT(0.12)[0.122]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.59)[0.587]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[217.72.192.73:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.72.192.73:from]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2020 20:24:45 -0000 On Sun, 26 Jul 2020 10:39:16 -0500, Valeri Galtsev wrote: > > > On 7/26/20 10:18 AM, Victor Sudakov wrote: > > Steve O'Hara-Smith wrote: > >> > >>> FreeBSD freezes, then kills some innocent random processes like > >>> local_unbound, then it may slowly recover. Sometimes it guesses > >>> correctly and kills the offender (firefox most often). > >> > >> What else would you have it do ? Kill the largest process ? Kill > >> the last process to call malloc ? There is no good response to OOM. The OS > >> has no way to know which processes you care about most. > > > > I agree, Steve. Killing a process is a bad thing always. And it's not always the "best thing" to do: If a process is killed for whatever reason, a parent process might think it is a good idea to spawn a new process that then starts to behave the same way the killed process did. > I must confess, > these are decently large RAM machines. No swap on servers and > workstation. Swap of the same size as RAM (16GB) on laptop. And I still > do not consider myself lucky. Because disk space is cheap today, I tend to create swap partitions everywhere. If they aren't used - fine. But in a case where swap space is expected, due to "memory is full" or "I want to write a core file", it doesn't harm, and in worst case it can be ignored. :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...