From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Larger GC thresholds for non-interactive Emacs Date: Sun, 19 Jun 2022 11:51:30 +0300 Message-ID: <83r13lm3xp.fsf@gnu.org> References: <83bkuzznws.fsf@gnu.org> <877d5mqmkh.fsf@localhost> <83y1y2utnd.fsf@gnu.org> <87r13up587.fsf@localhost> <83o7yyur0l.fsf@gnu.org> <87leu2p3nu.fsf@localhost> <83leu2uewn.fsf@gnu.org> <87r13qv701.fsf@localhost> <83bkuursya.fsf@gnu.org> <87h74l9jk8.fsf@localhost> <83bkutqb3z.fsf@gnu.org> <9778F176-E724-4E61-B0FB-327BCDD316C0@acm.org> <87sfo4epeo.fsf@localhost> <87bkurrc5e.fsf@localhost> <87bkur72b7.fsf@gnus.org> <874k0j40e7.fsf@gnus.org> <87k09dxgh0.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36097"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, larsi@gnus.org, mattiase@acm.org, theophilusx@gmail.com, rms@gnu.org, acm@muc.de, emacs-devel@gnu.org To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 19 10:53:06 2022 Return-path: Envelope-to: ged-emacs-devel@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 1o2qg5-0009Ee-4Z for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 10:53:05 +0200 Original-Received: from localhost ([::1]:39376 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o2qg3-0007ZF-DW for ged-emacs-devel@m.gmane-mx.org; Sun, 19 Jun 2022 04:53:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2qew-0006hp-FP for emacs-devel@gnu.org; Sun, 19 Jun 2022 04:51:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:53898) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2qeu-00040h-I4; Sun, 19 Jun 2022 04:51:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=kMKTCy4NHjoag/g4Qb7CQCVWv14ufRGjRncl6VBm8Bg=; b=Yrn8tm7wQxUgrgyIox+u BohCog83DpKGupl79T6+uUgTk1cuXkYC9xuxYm5yhdnlglz/usa/QZ0VDaB2qj0txj5iU2smKkVmJ cEBkiKR2CeEUOEanNws58hqWoeG0cxhpqXJqb6tmC3gnz1TVmy4TK6c6pV6EezMKOrqQRL0ZUJPgB RjrhaasRiDqDojwabRU1bn2M4vSnBvSzMEnQIslZue8TZBKeuOQJECH703e+SetY+JVR2lzngNq8k MoS8N3WNHTE+nla/fAM9d5tCLFMOUBzRGMsIK+njRrflhUPb51cDDXbMgqgJOikOQhDHde/q+pLBx FoK8QTobysIDDA==; Original-Received: from [87.69.77.57] (port=2255 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o2qep-0006OF-QJ; Sun, 19 Jun 2022 04:51:48 -0400 In-Reply-To: <87k09dxgh0.fsf@localhost> (message from Ihor Radchenko on Sun, 19 Jun 2022 15:25:15 +0800) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:291409 Archived-At: > From: Ihor Radchenko > Cc: Lars Ingebrigtsen , Mattias EngdegÄrd > , Eli Zaretskii , Tim Cross > , rms@gnu.org, Alan Mackenzie , > emacs-devel > Date: Sun, 19 Jun 2022 15:25:15 +0800 > > I feel that I am confused about this data. > > We have gc-cons-threshold and gc-cons-percentage > > According to the gc-cons-percentage docstring: > > >> If this portion is smaller than `gc-cons-threshold', this is ignored. > > which implies that gc-cons-percentage only takes effect when > heap_size * gc-cons-percentage >= gc-cons-threshold (= 0.8M) > > So, heap_size should be >= 80M to take effect at p=1.0 > and heap_size should be >= 800M to take effect at p=0.1 > > yet, you do see an effect at total=18.5M. > > What am I missing? gc-cons-percentage is measured in units of 1, not in percents. So the value of 1.0 means that the condition heap_size * gc-cons-percentage >= gc-cons-threshold (= 0.8M) will become true whenever heap_size is 0.8MB, not 80MB.