From owner-freebsd-questions@FreeBSD.ORG Wed May 29 11:57:53 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C1FDC89F for ; Wed, 29 May 2013 11:57:53 +0000 (UTC) (envelope-from fred.morcos@gmail.com) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) by mx1.freebsd.org (Postfix) with ESMTP id 94A682E3 for ; Wed, 29 May 2013 11:57:53 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id a14so24352542iee.41 for ; Wed, 29 May 2013 04:57:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=qpBZ/xUD+zKwQDvrhePfhysNF/PzEO0JUwm5mpLzGvQ=; b=vzUscLfxRCfRAJRlbmO61yerHTbUVsmD7qUj0oQ1fVzAPdOPNUuS3evqDKUo7WYgPI zaVTgAElDTn8NavDoWEPQwlqUlBn8HffmG5S1513iXlwEHxP8lsUjkopGURZ5F1XSaZ+ YuzqKGFutcb3pEXByGn/nMi8pZRV7OHd1RrGOvp3E82niTRDNCD8UeIiSi1GIpe7tQ4V okZE+3GuXu0leswVDRN4DO+YGL7Pyu9XKZ+BEX9WMbjR/C0Uk1nu4e8LbsPSunuxArDP voagO8LvxW0jL6AG4k0DtSLj5WISMt4KWq0hJJSuifPY7uaTloT82texBfHOp9qIs5BM qgFw== X-Received: by 10.42.63.133 with SMTP id c5mr889839ici.41.1369828672363; Wed, 29 May 2013 04:57:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.7.136 with HTTP; Wed, 29 May 2013 04:57:22 -0700 (PDT) In-Reply-To: References: <1369558712.96152.YahooMailNeo@web165006.mail.bf1.yahoo.com> <1369644392.92027.YahooMailNeo@web165003.mail.bf1.yahoo.com> From: Fred Morcos Date: Wed, 29 May 2013 13:57:22 +0200 Message-ID: Subject: Re: "swap" partition leads to instability? To: jb Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 11:57:53 -0000 On Wed, May 29, 2013 at 1:19 PM, jb wrote: > Fred Morcos gmail.com> writes: > > > .. > > The improvement effect can be > > noticed on large inputs. These algorithms will most probably perform > quite > > badly on small inputs. > > I think your concern has been addressed in review of various algos where > base > case identification helped to avoid overhead cost in small problem sizes > relative to cache. > http://erikdemaine.org/papers/BRICS2002/paper.pdf > I will check the paper out after work, but for clarification: "Also, properly written cache-oblivious algorithms tend to recursively decompose the problem until it is small enough to fit in a cache and solve each part iteratively." <-- refers to the base case. The issue is when the input is small enough to be solved faster iteratively but too large to fit in the cache. Also note that this is extremely machine and cache-dependent. Still, I will check the paper out :) thanks. > > In light of available but not implemented better VMM algos, perhaps *BSD > and > Linux could eliminate or reduce the need for: > - swap space > I run Archlinux without any swap space on a workstation laptop without problems. I occasionally fallocate a swapfile when I need to build GHC (usually in /tmp to make use of tmpfs). > - swapping out RAM even if there is no lack of it > Linux has a sysctl variable vm.swappiness which you can set to 0 or 1 out of 100. Not sure how to achieve the same on FreeBSD, maybe one or more combinations of the following? vm.swap_idle_threshold2: 10 vm.swap_idle_threshold1: 2 vm.stats.vm.v_swappgsout: 236969 vm.stats.vm.v_swappgsin: 28411 vm.stats.vm.v_swapout: 92607 vm.stats.vm.v_swapin: 28285 vm.disable_swapspace_pageouts: 0 vm.defer_swapspace_pageouts: 0 vm.swap_idle_enabled: 0 > - overcommitment of memory (a bluff asking to be punished by OOM killer) > - OOM killer > Besides, they allow sloppy/dangerous programming. > > jb > > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >