Date: Sun, 26 Jul 2020 09:59:22 -0400 From: Aryeh Friedman <aryeh.friedman@gmail.com> To: "Steve O'Hara-Smith" <steve@sohara.org> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Re: Ask stupid questions and you'll get a stupid answers, was: Technological advantages over Linux Message-ID: <CAGBxaXnM0KMDEkejb_6Q%2Ba0MmyeSt4gyc9dngKtY5b_UC%2B0D5Q@mail.gmail.com> In-Reply-To: <CAGBxaX=k6WnFcuKn2x8t-sHSAHy5njrUuShpVSAQokmx0xHfqA@mail.gmail.com> References: <20200214204838.360c8f624397c659946bd764@sohara.org> <CAEJNuHxbFSPBB7keSrBufpg=RsgQ8EPK_fvzt8XBROLNKyN_sw@mail.gmail.com> <6318251A-973A-4DEC-9271-12333EB11F7B@kicp.uchicago.edu> <CAEJNuHxC7i%2Bq7cq65=my6mJZDdiK4gpQsKjMU1nvsm=Ri4On%2Bg@mail.gmail.com> <ce61b5e9-b71c-e5b7-c64d-f79884c87435@watters.ws> <20200725152412.GJ92589@admin.sibptus.ru> <CAGBxaX=Ktr-pqtT8FU37ajkYonVLYT_WhSenn23Tj5b=i0d-8g@mail.gmail.com> <20200725162403.GA4721@admin.sibptus.ru> <CAGBxaXmBZcCWqAZFR9OSyRGrqGFU%2BqCAZ8CfOi=0oXAmf-2=tA@mail.gmail.com> <20200725182554.deffc63058a7c9f6d343ef06@sohara.org> <04df312d-9b2b-1873-2117-79a49e089bd9@kicp.uchicago.edu> <CAGBxaX=SR_sm7Pa5KXmTT=P6SCpvuyg9GhVa9WkxdPJM_HUBrg@mail.gmail.com> <20200726074655.b0036a0f90508156205376f9@sohara.org> <CAGBxaXn5-hQiC56v3u1T8_V339i1WDXu5iq9hq-WUaS%2BsrC_Zw@mail.gmail.com> <20200726134331.5c960f7f93d76d2249bd769c@sohara.org> <CAGBxaX=iMog%2BLwg0vBCxCxsMwHKQ6i7-NbnQ-AGjUCXzs1eG-g@mail.gmail.com> <20200726145511.558d53ab7958c3c489b09a17@sohara.org> <CAGBxaX=k6WnFcuKn2x8t-sHSAHy5njrUuShpVSAQokmx0xHfqA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Jul 26, 2020 at 9:57 AM Aryeh Friedman <aryeh.friedman@gmail.com> wrote: > > > On Sun, Jul 26, 2020 at 9:55 AM Steve O'Hara-Smith <steve@sohara.org> > wrote: > >> On Sun, 26 Jul 2020 09:04:02 -0400 >> Aryeh Friedman <aryeh.friedman@gmail.com> wrote: >> >> > On Sun, Jul 26, 2020 at 8:43 AM Steve O'Hara-Smith <steve@sohara.org> >> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXnM0KMDEkejb_6Q%2Ba0MmyeSt4gyc9dngKtY5b_UC%2B0D5Q>