From owner-freebsd-questions@freebsd.org Sun Jul 26 13:57:57 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 9A19F360E53 for ; Sun, 26 Jul 2020 13:57:57 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 4BF4Jh403nz4bnf for ; Sun, 26 Jul 2020 13:57:56 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-il1-x133.google.com with SMTP id s21so10905635ilk.5 for ; Sun, 26 Jul 2020 06:57:56 -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=+63/vyFNNJpaA8Eq6HeDbGf4WPR6uiBMtmbEasmwTi8=; b=PEwOE3J/rk0uK4NsiVm590umofhoCselYCTw37Q8btK4+P9b3iES62CMGqSCksGO0X RV872tcXUmuegJ/kgf3OPMBpC9k3vDQSeAGNmRVXBPbVE9ieB8cCvUZ4bldyPDpzQ30e HEwILfAZr28hnKwtRkOVnFxygdtqLc2LtduqpHid5VEU/qVOyiowdyZiMuFirFsYRlCq +DHeLWrFI1phSaOfxKu2HNpA1SF2eRDAYlfQtbiiwNIbsg5e1bAen0cK6iTh/e48aZqf smLeJmZ2mfTOvEs0I/R20xPM7KiHAsqhsZsOvZw94oJsY3YsoTT4bM7Ya7aQQGBSF6rs D+lg== 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=+63/vyFNNJpaA8Eq6HeDbGf4WPR6uiBMtmbEasmwTi8=; b=aqnCxC6BsyXpWgmuaiZ04RNEMWA5CxXGknOClfiVi2mz6kGmtYDEl+zEW2BxsfdYcb gciplSnJKAF5N2T3JVIuf898ODTXe2uj9Pmv6ViElUfEBc5HVErxBAtaTXWkGF7J2tIv O5MPUXSRRKEzKZxkMp0dgQGv5kzEMgKFacGwEhtcvNNjBh5OiYRuKMnQ6Yy5TWv0mj/F rl8VArKqQwc9Ud4m2EO11xTbRR/2omZHByqp3pvKoE0wWP+/DuwIPeDHJ24qHoiPX/GG F1+5ABdkM3xUIacMrYbEydyZHbJbSB8Xffm9oL9pcb16tU4HaccaPPL62km16pnTojCe T8hw== X-Gm-Message-State: AOAM531BbZ78Uyfc6PtWkIBjOHnjC5JkhLJrHIMEOWyzfpU77O9R6AJv ggyf3B9U9l+ExRdfG8wOfuEXHZ7vfi0P9wvhY9Y= X-Google-Smtp-Source: ABdhPJzUfYbSLQXctgoyIonSONZ1v2FokTcEdJ93+umnGAanEPdOKeJ8mf1rRH6mG3idM8BzRbRkrGdCJle1sejVKmY= X-Received: by 2002:a92:1814:: with SMTP id 20mr20123644ily.81.1595771875598; Sun, 26 Jul 2020 06:57:55 -0700 (PDT) MIME-Version: 1.0 References: <20200214204838.360c8f624397c659946bd764@sohara.org> <6318251A-973A-4DEC-9271-12333EB11F7B@kicp.uchicago.edu> <20200725152412.GJ92589@admin.sibptus.ru> <20200725162403.GA4721@admin.sibptus.ru> <20200725182554.deffc63058a7c9f6d343ef06@sohara.org> <04df312d-9b2b-1873-2117-79a49e089bd9@kicp.uchicago.edu> <20200726074655.b0036a0f90508156205376f9@sohara.org> <20200726134331.5c960f7f93d76d2249bd769c@sohara.org> <20200726145511.558d53ab7958c3c489b09a17@sohara.org> In-Reply-To: <20200726145511.558d53ab7958c3c489b09a17@sohara.org> From: Aryeh Friedman Date: Sun, 26 Jul 2020 09:57:44 -0400 Message-ID: Subject: Re: Ask stupid questions and you'll get a stupid answers, was: Technological advantages over Linux To: "Steve O'Hara-Smith" Cc: FreeBSD Mailing List X-Rspamd-Queue-Id: 4BF4Jh403nz4bnf X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=PEwOE3J/; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::133 as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-3.87 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-1.00)[-1.004]; 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::133:from]; NEURAL_HAM_SHORT(-0.83)[-0.835]; 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 13:57:57 -0000 On Sun, Jul 26, 2020 at 9:55 AM Steve O'Hara-Smith wrote: > On Sun, 26 Jul 2020 09:04:02 -0400 > Aryeh Friedman wrote: > > > On Sun, Jul 26, 2020 at 8:43 AM Steve O'Hara-Smith > > wrote: > > > > > Here is a variant of your experiment that should demonstrate > it. > > > > > > 1: Reboot machine, measure performance > > > 2: Memory stress machine to until swapping reduces performance > > > 3: Kill memory stressing process > > > 4: Disable swap - which forces all pages back into RAM > > > 5: Enable swap > > > 6: Loop to 2 > > > > > > > Since stealing memory from a running process that counts on it to be > > functional will crash the process and odds are that process is something > > low level and critical to keeping X running the above variant is not > > practical to do and thus my current solution has the same effect -- > > reboot. > > It is very practical and it is the way I normally recover a system > from a memory usage spike, it works far better than just leaving it alone. > Nothing in that steals memory from running processes. > Unless there is just not enough RAM to allow all the pages to be recovered which as far I can tell is the problem. > > -- > Steve O'Hara-Smith | Directable Mirror Arrays > C:\>WIN | A better way to focus the sun > The computer obeys and wins. | licences available see > You lose and Bill collects. | http://www.sohara.org/ > -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org