From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: George Plymale II Newsgroups: gmane.emacs.devel Subject: Re: Does Emacs return memory to the system on Mac OS X or *BSD? Date: Wed, 10 May 2017 02:31:09 -0400 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1494419656 4769 195.159.176.226 (10 May 2017 12:34:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 10 May 2017 12:34:16 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 10 14:34:13 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d8Qom-0001AT-Ln for ged-emacs-devel@m.gmane.org; Wed, 10 May 2017 14:34:12 +0200 Original-Received: from localhost ([::1]:42526 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8Qos-0002XC-6w for ged-emacs-devel@m.gmane.org; Wed, 10 May 2017 08:34:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d8L9W-00058l-Na for emacs-devel@gnu.org; Wed, 10 May 2017 02:31:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d8L9T-0000Us-DM for emacs-devel@gnu.org; Wed, 10 May 2017 02:31:14 -0400 Original-Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:33334) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d8L9T-0000Ue-9N for emacs-devel@gnu.org; Wed, 10 May 2017 02:31:11 -0400 Original-Received: by mail-qk0-x241.google.com with SMTP id o85so3259832qkh.0 for ; Tue, 09 May 2017 23:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=southernohio.net; s=google; h=from:to:cc:subject:in-reply-to:date:message-id:mime-version; bh=De8Im6Z8dBgC9usNRYv7oQR7EAtVOoTfW84wR5Ii2iI=; b=BARev80I6NPcUDBtGCnjZCL1xG9M6JzaTkQ5x0zVg9uTfBhjlFNhaxUt9QRjiCCoDW iQC8o5SNK87qt1O0qPPR3cLjtOVfd2p7NTk2+KvD69kROypkV+lfwLNaBjENYy10V8UO kvsO84iMjmloiUUip/Zg0b9GrbOHH2UQzVA7Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :mime-version; bh=De8Im6Z8dBgC9usNRYv7oQR7EAtVOoTfW84wR5Ii2iI=; b=d3nSoQiFLeG4EcLZ8TljuQKuf1CTVilOtpvUTB18ggFzvJlza1hQ3p8SNICJPp2+kw MW18PjHuv6IZuRQ97efskJQ85rHFOxu9dFR27JboQD3As4PNycm/HPo3l3G93UC6q2nK +M5s5KuAXvcXjdOvLvq3YRN7v5dkHrFO3g48HjW88l/xAS6AJfBIbJrxam/bk08vf9o2 qmxMyx9H3qt9mIrO+YXDfStEB3hKGW/ltviFD1dtUodDgA7Ci6IldzunBzQWvtO+DUci JYiRK/uZpSy9CF2BstnuTOtB4L0ODmR3H/Zv5qLBK03o3DROHGKg6odRIrRmqWLzhSVX ZHKg== X-Gm-Message-State: AODbwcC/vPkXzR6Wf7yFJ6Mc5Nf4+bhXO+Z+MxK+a6HIx2N0LML5m2T8 6hu+Qic3QA8wUoss X-Received: by 10.55.66.80 with SMTP id p77mr2052655qka.225.1494397870588; Tue, 09 May 2017 23:31:10 -0700 (PDT) Original-Received: from lehi.dev.orbitalimpact.com (ip-24-210-239-173.east.us.northamericancoax.com. [173.239.210.24]) by smtp.gmail.com with ESMTPSA id d200sm1532356qkg.50.2017.05.09.23.31.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 09 May 2017 23:31:10 -0700 (PDT) X-Google-Original-From: George Plymale II In-Reply-To: (message from Stefan Monnier on Tue, 09 May 2017 23:07:52 -0400) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:400d:c09::241 X-Mailman-Approved-At: Wed, 10 May 2017 08:32:47 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:214759 Archived-At: > would you really care if Emacs once in > a blue moon returns 4KB out of a 2GB heap? Sorry, I did not know that Emacs would return pages rarely. I figured it would be somewhat common, if you have multiple, dead GBs of heap laying around (as in the linked reddit post). Such a thing seems like a token that you should give some of that back to the OS. But, that is just my opinion at face value of the situation and I admittedly lack experience in implementing this sort of thing. > The answer depends on a lot of details about the system, the > compile-time options used, and the specific usage pattern. Well, again, which source file(s) may I poke at to see this sort of stuff in action myself? Thanks.