From owner-freebsd-questions@freebsd.org Sun Jul 26 16:03:18 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 00E7B3649BB for ; Sun, 26 Jul 2020 16:03:18 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd2b.google.com (mail-io1-xd2b.google.com [IPv6:2607:f8b0:4864:20::d2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BF75K1CrRz3VvR for ; Sun, 26 Jul 2020 16:03:17 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd2b.google.com with SMTP id l17so14516975iok.7 for ; Sun, 26 Jul 2020 09:03:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ks8RliZC1sKgJn1QCA/MOliljNrapJcD/swdJFBBpyY=; b=J9ezP9e6hVLlNJHYPORvSRd/59rQxEBSpwxnoIHVYhwvGvNl4qQE9l5tPriqouprEc dAwQVJLEt7BDg8lfpN3RwGf6em8aV96zw6TRgt/wOwi0BqeeXmXDTa807bFGIzsWPaKx HuEsANkI8aTidmSOZac2neuY/x/yz4DEsplJuaPuxQmfVmeRYAsjaDwSt6nvbwyyhoju Ilx8V9oEXPh43MpL9Tz2c44CFlMPw7S3Y0eUsbEvuRACDX8uj6PK4bRATxjwUVGXhLi/ jDrwMsvi3hHHFr0+aOplC/vd3eO6jZC1gIzKjFOrmDYo14jJGwY4dwUqDx+XePS0pW/v HyMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ks8RliZC1sKgJn1QCA/MOliljNrapJcD/swdJFBBpyY=; b=EyWrJ9qsZwiXks8ZmyvaYgcQ5KgXI4KPkxdKVhy1VUXKRoFcGDK31SiFu9thXhf+lL yY+755ZV5paoNZk1J03jp6Hq7zmk7WNUTF/z9u02AQqqZCqlJB4Bt2cXRH1cJUdfx0gv Lo4V05i+WBpiZF3vy/8tonrwF6k6iNHlLKKdUcAtdkwXOgE0JDro9btSzGdRTnIdWudm 1JECxAQUOuYQbznAEqM7znKSDiZuoCLsMHnCb78jdQu6lSfwq0XNUmMRHAtCSTt+UBpw C1l+ikmZ55Jk1MpSKsn5ZgsATLblLLFFy9Jo8q5r2mMGKmbswrd5wXuFJzmUMrz3Jazu C1Pw== X-Gm-Message-State: AOAM531WIC0lcsM0B40ZglLfwYxDh03ggyBPNn6HD5gxWAu8touxYVYI nLTedXE6chkwAQYkSIFGeWazvm0jEGrsT9/pUhTM9Ew+ X-Google-Smtp-Source: ABdhPJy/bS+SkqfplStLsXGs7VauerW+rrk6vMm1MTbmB0yhkgtIVuASCF37fJw67fjgWLnqBmrFVuyhXk2A0O8Yq0M= X-Received: by 2002:a05:6602:2549:: with SMTP id j9mr19320980ioe.89.1595779396052; Sun, 26 Jul 2020 09:03:16 -0700 (PDT) MIME-Version: 1.0 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> <20200726165212.a0ac28ce104b9dfd009cc4c5@sohara.org> <7290c25a-aaf3-b864-0ed8-ec9558777681@kicp.uchicago.edu> In-Reply-To: <7290c25a-aaf3-b864-0ed8-ec9558777681@kicp.uchicago.edu> From: Aryeh Friedman Date: Sun, 26 Jul 2020 12:03:04 -0400 Message-ID: Subject: Re: Ask stupid questions and you'll get a stupid answers, was: Technological advantages over Linux To: Valeri Galtsev Cc: FreeBSD Mailing List X-Rspamd-Queue-Id: 4BF75K1CrRz3VvR X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=J9ezP9e6; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d2b as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-3.57 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.01)[-1.006]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.03)[-1.032]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2b:from]; NEURAL_HAM_SHORT(-0.53)[-0.533]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 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 16:03:18 -0000 On Sun, Jul 26, 2020 at 11:56 AM Valeri Galtsev wrote: > > > On 7/26/20 10:52 AM, Steve O'Hara-Smith wrote: > > On Sun, 26 Jul 2020 10:39:16 -0500 > > Valeri Galtsev wrote: > > > >> My understanding of Linux OOM killer lies along same lines though my > >> understanding is much more simplified: kill minimal number of processes > >> to recover maximum amount of resources. > > > > Not always the right thing to do though. > > > >> Another speculative way to say > >> it would be: process owning maximum amount of RAM that keeps allocating > >> more RAM is first candidate. > > > > What a pity if that is the heavy weight analytic program that has a > > run time of several hours/days and is the only thing that matters running > > on the system. > > > > And yes, I agreed with your sentiments (or judgement): killing a process > is a bad thing always. Agreed before writing any of my comments. > Then if you're out space why are you suggesting a potentially O(n!)-space solution? -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org