From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan Wedekind Newsgroups: gmane.lisp.guile.user Subject: Garbage collector tuning? Date: Thu, 10 Sep 2015 07:46:57 +0100 (BST) Message-ID: Reply-To: Jan Wedekind NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Trace: ger.gmane.org 1441867662 7632 80.91.229.3 (10 Sep 2015 06:47:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Sep 2015 06:47:42 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Sep 10 08:47:32 2015 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZZvdk-00068E-8l for guile-user@m.gmane.org; Thu, 10 Sep 2015 08:47:24 +0200 Original-Received: from localhost ([::1]:47250 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZvdj-00065U-QO for guile-user@m.gmane.org; Thu, 10 Sep 2015 02:47:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41417) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZvdZ-00065G-Pg for guile-user@gnu.org; Thu, 10 Sep 2015 02:47:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZZvdU-0002fU-Qn for guile-user@gnu.org; Thu, 10 Sep 2015 02:47:13 -0400 Original-Received: from basicbox4.server-home.net ([195.137.212.26]:35836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZZvdU-0002fF-L1 for guile-user@gnu.org; Thu, 10 Sep 2015 02:47:08 -0400 Original-Received: from wedemob (unknown [149.254.186.206]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by basicbox4.server-home.net (Postfix) with ESMTPSA id 93E3F1530665 for ; Thu, 10 Sep 2015 08:47:05 +0200 (CEST) X-X-Sender: jan@wedemob User-Agent: Alpine 2.11 (DEB 23 2013-08-11) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 195.137.212.26 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:12006 Archived-At: Hi, I wonder whether there is a more performant way to allocate larger memory blocks (e.g. 1 MByte). "gc-malloc-pointerless" seems to be much slower than "malloc": user system total real Guile allocate memory 0.003780 0.000020 0.003800 ( 0.003810) C allocate memory 0.000060 0.000000 0.000060 ( 0.000070) Is there a way to control how often the garbage collector is run? Thanks Jan [1] https://github.com/wedesoft/aiscm/blob/master/bench/bench.scm [2] https://github.com/wedesoft/aiscm/blob/master/bench/cbench.c