From owner-freebsd-questions@freebsd.org Sun Jul 26 13:59:35 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 84E70360D54 for ; Sun, 26 Jul 2020 13:59:35 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (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 4BF4LZ5MQRz4cRj for ; Sun, 26 Jul 2020 13:59:34 +0000 (UTC) (envelope-from aryeh.friedman@gmail.com) Received: by mail-io1-xd2d.google.com with SMTP id a12so14296742ion.13 for ; Sun, 26 Jul 2020 06:59:34 -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=UpZs3TdR2VcLAEh0e0xv4gqsSaVHOZeRBHDP0aFrMUo=; b=Yz90WfMM3kgiYM2d6ftV/3u9676oqG/gYp04zf7JM4x0YDKg8XZ6rA6dW8VYu/CBGg Jw12wNO9RvKQbon6sViJQ9apBmJsNTNZy2FMhBGivGOH7YWeuEjN1czLW2lB4nL9GJE5 kJbGNkqwsoPje3Rsc3DGLsSGlHM39vqQiKxTQy50jXgp6PruexBiPtca48MdcqpiUcvK ZyRh42xnMF15F0aoXerQSdmxs5J2kiCsK8VxyjtYX2P0j40ZsM3Ewpa8FSERFmyv2teX qYMcXplR0qkmeO8ZVswKrVu0Vi+yf2TjEUERzlzOhI/p0e0hIfu+o+i1mONEumtLKwEy r+PA== 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=UpZs3TdR2VcLAEh0e0xv4gqsSaVHOZeRBHDP0aFrMUo=; b=N2jNsSUEB9Q3C37r3rskmhloRPovulnVRskHRJ8ZPwC9WM3AaiLNSRirY+GnAIOpcJ OOidsQ/OeapiOxGQOD4OfoM5pwx5Cdm1SXfwQ+Qs0rSm749Gl9m2sLHplf8f6KecBefR +4XniT+stV7qmjKIUTNSmtSW3fPBbezsLSMnDBktIpxGsc3mNU6tHwbn5Kg5GnPRorvP fkju0drT+l9NLwUxU5nfcGfy2t367UgjhmUMZFpFsqkAMkv3M1xOSrYiNYjcauohK7xX MVXzQSmos5pOpPpKmfmohUmeialXCFPo0YztMM9Abhd26SWC/89zrdmrHv5dZOc0y7mB JC1Q== X-Gm-Message-State: AOAM5301kOUtAdroGM0Z3bL04ZEZnM4QNXaqMJ3RdIplzoenrTqvYY+T Zic0OlByl3+y3EIMPdHZFh1Ku9EtP2mNBH872jo= X-Google-Smtp-Source: ABdhPJxIsCdY8KoQqZ9aVPuDG1GiGtwBubiKYvOlCIXND9cms8fZfCfH0N/F0hAd/ZIbfEmhjYrpwdsd1sZIoxfVVvE= X-Received: by 2002:a6b:b4c8:: with SMTP id d191mr12981381iof.174.1595771973598; Sun, 26 Jul 2020 06:59:33 -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: From: Aryeh Friedman Date: Sun, 26 Jul 2020 09:59:22 -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: 4BF4LZ5MQRz4cRj X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=Yz90WfMM; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of aryehfriedman@gmail.com designates 2607:f8b0:4864:20::d2d as permitted sender) smtp.mailfrom=aryehfriedman@gmail.com X-Spamd-Result: default: False [-3.86 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.004]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; NEURAL_HAM_LONG(-1.03)[-1.033]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::d2d:from]; NEURAL_HAM_SHORT(-0.83)[-0.825]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] 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:59:35 -0000 On Sun, Jul 26, 2020 at 9:57 AM Aryeh Friedman wrote: > > > 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. > Just tried: sudo swapoff -a sudo swapon -a Result: Firefox froze up -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org