From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Han-Wen Nienhuys Newsgroups: gmane.lisp.guile.devel Subject: GC & threads (was: Thread interface issues) Date: Tue, 12 Nov 2002 23:37:23 +0100 Sender: guile-devel-admin@gnu.org Message-ID: <15825.33443.490186.646452@blauw.xs4all.nl> References: <87vg3pot7a.fsf@zagadka.ping.de> Reply-To: hanwen@cs.uu.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1037140939 6872 80.91.224.249 (12 Nov 2002 22:42:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 12 Nov 2002 22:42:19 +0000 (UTC) Cc: Marius Vollmer , guile-devel@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18Bjjd-0001ma-00 for ; Tue, 12 Nov 2002 23:42:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 18Bjkv-0002Wy-00; Tue, 12 Nov 2002 17:43:37 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 18BjaR-0005vx-00 for guile-devel@gnu.org; Tue, 12 Nov 2002 17:32:47 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 18BjaP-0005vL-00 for guile-devel@gnu.org; Tue, 12 Nov 2002 17:32:46 -0500 Original-Received: from smtpzilla5.xs4all.nl ([194.109.127.141]) by monty-python.gnu.org with esmtp (Exim 4.10) id 18BjaO-0005um-00 for guile-devel@gnu.org; Tue, 12 Nov 2002 17:32:44 -0500 Original-Received: from blauw.xs4all.nl (blauw.xs4all.nl [213.84.26.127]) by smtpzilla5.xs4all.nl (8.12.0/8.12.0) with ESMTP id gACMWgxU078430; Tue, 12 Nov 2002 23:32:42 +0100 (CET) Original-To: djurfeldt@nada.kth.se In-Reply-To: X-Mailer: VM 7.05 under Emacs 21.2.1 Errors-To: guile-devel-admin@gnu.org X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Developers list for Guile, the GNU extensibility library List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.devel:1691 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.devel:1691 mdj@kvast.blakulla.net writes: >[threads] This reminds me: there is a huge bottleneck. .. (Well actually, I didn't measure it, but it's my hunch anyway... let me call it inelegancy instead), in the current GC code. SCM cells are processed nicely in page sized chunks. Unfortunately, almost every object except for cells require malloc() calls during allocation, and free() calls during the sweep. For small objects, I would guess that the double memory administration of free memory has a sizable overhead. Second, if two threads alloc arrays or strings concurrently, there will be a lot of wasted mutexing going on. Any thoughts... is this a real problem? (I'm too busy right now for any Real Work on GUILE, Sorry.) -- Han-Wen Nienhuys | hanwen@cs.uu.nl | http://www.cs.uu.nl/~hanwen _______________________________________________ Guile-devel mailing list Guile-devel@gnu.org http://mail.gnu.org/mailman/listinfo/guile-devel