From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?utf-8?Q?Ludovic_Court=C3=A8s?= Newsgroups: gmane.lisp.guile.user Subject: Re: Running guile single-threaded? Date: Sat, 30 May 2020 23:27:56 +0200 Message-ID: <87lfl9ru3n.fsf@gnu.org> References: <87tv0elgzb.fsf@cune.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="32336"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: guile-user@gnu.org Cancel-Lock: sha1:o6EImV0Mg4GUk9l+0LCcAqVamyQ= Original-X-From: guile-user-bounces+guile-user=m.gmane-mx.org@gnu.org Sat May 30 23:28:29 2020 Return-path: Envelope-to: guile-user@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jf91p-0008Kd-AZ for guile-user@m.gmane-mx.org; Sat, 30 May 2020 23:28:29 +0200 Original-Received: from localhost ([::1]:57760 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jf91o-0007VK-B3 for guile-user@m.gmane-mx.org; Sat, 30 May 2020 17:28:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37734) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf91R-0007Iz-AY for guile-user@gnu.org; Sat, 30 May 2020 17:28:05 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:35136) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jf91Q-0006ws-KT for guile-user@gnu.org; Sat, 30 May 2020 17:28:05 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jf91O-0007sR-28 for guile-user@gnu.org; Sat, 30 May 2020 23:28:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 Prairial an 228 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Received-SPF: pass client-ip=159.69.161.202; envelope-from=guile-user@m.gmane-mx.org; helo=ciao.gmane.io X-detected-operating-system: by eggs.gnu.org: First seen = 2020/05/30 17:28:02 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.io gmane.lisp.guile.user:16539 Archived-At: Hi, Matt Wette skribis: > On 5/17/20 8:27 AM, Caleb Ristvedt wrote: >> I'm trying to use unshare() with the CLONE_NEWUSER flag, but this >> requires that the process be single-threaded (otherwise I always get >> EINVAL). /proc//task has 6 entries when I launch guile, 5 >> after disabling automatic finalization. I can't seem to find a way to >> get that down to 1. Is this feasible? >> >> - reepca >> > > I don't this is possible without building guile using --without-threads > argument to configure.  Otherwise, the mutl-threaded gc is included. Yeah, there’s the GC marker threads, the finalization thread, and the signal thread (started on the first call to the ‘sigaction’ procedure). It’s crowded there. It wonder if Guile should offer a documented way to stop the finalization thread (as with ‘scm_set_automatic_finalization_enabled’, but from Scheme) and the signal thread. Ludo’.