From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: Warning starting Emacs (Cygwin) Date: Sat, 02 Aug 2008 16:24:27 -0400 Message-ID: <87abfvcghw.fsf@stupidchicken.com> References: <4891D01B.6070802@alice.it> <4891E7E8.1000503@alice.it> <200807311700.m6VH0eCa004994@sallyv1.ics.uci.edu> <4892E7BE.1080706@alice.it> <489306EE.7090800@alice.it> <200808011308.m71D8PA3023871@sallyv1.ics.uci.edu> <489319F7.5040101@alice.it> <200808011436.m71EaAeZ019293@sallyv1.ics.uci.edu> <4893765E.5020803@alice.it> <200808020406.m7246D1T003058@sallyv1.ics.uci.edu> <48946F36.3020505@alice.it> <200808021859.m72IxGnr000877@sallyv1.ics.uci.edu> <87wsiz1b6l.fsf@stupidchicken.com> <200808021930.m72JUTrw014872@sallyv1.ics.uci.edu> <87k5ezcgpk.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1217708675 10905 80.91.229.12 (2 Aug 2008 20:24:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Aug 2008 20:24:35 +0000 (UTC) Cc: Angelo Graziosi , emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Aug 02 22:25:25 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KPNfD-0003Pm-S0 for ged-emacs-devel@m.gmane.org; Sat, 02 Aug 2008 22:25:20 +0200 Original-Received: from localhost ([127.0.0.1]:34239 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPNeI-0007oK-NV for ged-emacs-devel@m.gmane.org; Sat, 02 Aug 2008 16:24:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KPNeE-0007oF-N4 for emacs-devel@gnu.org; Sat, 02 Aug 2008 16:24:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KPNeD-0007o3-7C for emacs-devel@gnu.org; Sat, 02 Aug 2008 16:24:18 -0400 Original-Received: from [199.232.76.173] (port=48497 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KPNeD-0007o0-21 for emacs-devel@gnu.org; Sat, 02 Aug 2008 16:24:17 -0400 Original-Received: from cyd.mit.edu ([18.115.2.24]:45215 helo=cyd) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KPNeC-0002Uy-NH for emacs-devel@gnu.org; Sat, 02 Aug 2008 16:24:16 -0400 Original-Received: by cyd (Postfix, from userid 1000) id 9ED2657E337; Sat, 2 Aug 2008 16:24:27 -0400 (EDT) In-Reply-To: <87k5ezcgpk.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 02 Aug 2008 16:19:51 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:101972 Archived-At: Chong Yidong writes: > I don't understand the code in check_memory_limits is trying to do. > rlim_cur and rlim_max are the "soft limit" and "hard limit" for the > amount of memory the Emacs process can possibly occupy; so why are we > interested in comparing the two? There's no guarantee that this has > anything to do with the amount of memory Emacs actually consumes. Never mind, I take that back. This was based on a misreading of the getrlimit manpage. So yeah, who Eli said. (Though it might be easier to simply use a cygwin conditional than what he suggested.)