From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by walapai.inria.fr (8.13.6/8.13.6) with ESMTP id pB8B3oX5021564 for ; Thu, 8 Dec 2011 12:03:50 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AuoBAGKY4E7AbSoIe2dsb2JhbABDhQalXyIBARYmBCGBcgEBBSNWEAsJDwICJgICFBgxiBylVZEyFIEggkOGLjNjBI0zhzeSKA X-IronPort-AV: E=Sophos;i="4.71,319,1320620400"; d="scan'208";a="122570226" Received: from einhorn.in-berlin.de ([192.109.42.8]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 08 Dec 2011 12:03:45 +0100 X-Envelope-From: oliver@first.in-berlin.de Received: from first (e178005065.adsl.alicedsl.de [85.178.5.65]) (authenticated bits=0) by einhorn.in-berlin.de (8.13.6/8.13.6/Debian-1) with ESMTP id pB8B3haE007672 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 8 Dec 2011 12:03:44 +0100 Received: by first (Postfix, from userid 1000) id 8E87D1540359; Thu, 8 Dec 2011 12:03:43 +0100 (CET) Date: Thu, 8 Dec 2011 12:03:43 +0100 From: oliver To: Anil Madhavapeddy Cc: William Le Ferrand , =?utf-8?B?U3TDqXBoYW5l?= Glondu , caml users Message-ID: <20111208110343.GC2042@siouxsie> References: <4EE05363.8080102@glondu.net> <18AE17A3-A732-4F7D-954E-58C7A1D538B4@recoil.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <18AE17A3-A732-4F7D-954E-58C7A1D538B4@recoil.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Scanned-By: MIMEDefang_at_IN-Berlin_e.V. on 192.109.42.8 Subject: Re: [Caml-list] Storing ocaml values outside ocaml's heap On Thu, Dec 08, 2011 at 09:04:50AM +0000, Anil Madhavapeddy wrote: > I think Ancient is exactly what you're looking for. > > Just disable swap (which you should do anyway on a big modern server), and it > will let you keep in-memory, out-of-heap OCaml values that don't get scanned by > the GC. [...] Completely disabling swap can crash the system. Better just fine tune it, so that it uses swapping less often. => on Linux swappiness can be set via /proc: /proc/sys/vm/swappiness Ciao, Oliver