unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Lars Magne Ingebrigtsen <larsi@gnus.org>,  Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: default large-file-warning-threshold (was: Generating the ChangeLog files ...)
Date: Sun, 30 Nov 2014 13:50:31 -0800	[thread overview]
Message-ID: <547B9127.2080508@cs.ucla.edu> (raw)
In-Reply-To: <m34mtg7d7s.fsf@stories.gnus.org>

Lars Magne Ingebrigtsen wrote:
> Do we have a way to ask the OS how much (physical-ish) RAM it has?

We could easily add that, using Gnulib's physmem module.  For example, GNU 
'sort' uses physmem to calculate an internal buffer size ranging from 1/8 to 3/4 
of physical memory, depending on some other factors.

Eli Zaretskii wrote:
 > It could also be a security feature.

It's largely a security feature insofar as it avoids denial-of-service problems, 
and deriving the limit from physical memory capacity helps to avoid these 
problems too.

The 10 MB limit is too small nowadays for typical machines.  I regularly run 
into it and it's a genuine (albeit minor) annoyance.  When the 10 MB limit was 
established back in 2003, machines typically had 64 MiB or so of RAM.  Nowadays 
8 GiB is closer to being typical and the 10 MB limit is way below the sweet spot 
for warnings.

If we were conservative and warned about files larger than 1/8 of physical 
memory, my circa-2011 8-GiB work desktop would warn about files larger than 1 
GiB, and my circa-2005 512-MiB laptop would warn about files larger than 64 MiB, 
and both numbers sound about right.



  parent reply	other threads:[~2014-11-30 21:50 UTC|newest]

Thread overview: 90+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-14 14:39 Include necessary git tools in the Emacs distribution? Lars Magne Ingebrigtsen
2014-11-14 14:57 ` Tassilo Horn
2014-11-14 14:58 ` Eli Zaretskii
2014-11-14 16:13 ` Ulrich Mueller
2014-11-15 19:28   ` Lars Magne Ingebrigtsen
2014-11-15 20:04     ` Ulrich Mueller
2014-11-15 20:07       ` Lars Magne Ingebrigtsen
2014-11-15 20:34         ` Kelvin White
2014-11-15 20:35           ` Lars Magne Ingebrigtsen
2014-11-15 20:57             ` Ulrich Mueller
2014-11-15 21:45         ` Glenn Morris
2014-11-16  0:01         ` Lennart Borgman
2014-11-18  2:07   ` Rüdiger Sonderfeld
2014-11-18  2:15     ` Paul Eggert
2014-11-18 14:45       ` Generating the ChangeLog files from the commit messages (was: Include necessary git tools in the Emacs distribution?) Stefan Monnier
2014-11-18 14:59         ` Generating the ChangeLog files from the commit messages Ted Zlatanov
2014-11-18 16:22           ` Rüdiger Sonderfeld
2014-11-18 17:10         ` Glenn Morris
2014-11-18 17:40           ` Eli Zaretskii
2014-11-18 17:56             ` Paul Eggert
2014-11-18 20:32               ` Thien-Thi Nguyen
2014-11-18 21:12             ` Stefan Monnier
2014-11-18 22:05               ` Paul Eggert
2014-11-19 22:36                 ` Richard Stallman
2014-11-20  0:15                   ` Paul Eggert
2014-11-20  2:50                     ` Yuri Khan
2014-11-20  3:15                       ` Paul Eggert
2014-11-20  4:04                         ` Yuri Khan
2014-11-20 20:12                           ` Paul Eggert
2014-11-21  4:25                             ` Kelvin White
2014-11-21  7:57                               ` Paul Eggert
2014-11-19  9:03               ` Bastien
2014-11-19  9:11               ` Lars Magne Ingebrigtsen
2014-11-29 22:35               ` Paul Eggert
2014-11-30  0:23                 ` Jan D.
2014-11-30  9:12                 ` Jorgen Schaefer
2014-11-30 16:15                   ` Paul Eggert
2014-11-30 18:11                     ` Stefan Monnier
2014-11-30 18:23                       ` Eli Zaretskii
2014-11-30 18:30                         ` Lars Magne Ingebrigtsen
2014-11-30 20:32                           ` Eli Zaretskii
2014-11-30 21:50                           ` Paul Eggert [this message]
2014-11-30 23:19                             ` default large-file-warning-threshold Óscar Fuentes
2014-11-30 23:22                               ` Lars Magne Ingebrigtsen
2014-11-30 23:31                                 ` Óscar Fuentes
2014-12-01  5:46                                   ` Paul Eggert
2014-12-01 15:52                                     ` Eli Zaretskii
2014-12-01 18:13                                       ` Paul Eggert
2014-12-01 18:19                                         ` Lars Magne Ingebrigtsen
2014-12-01 18:24                                           ` Paul Eggert
2014-12-01 20:21                                           ` Ted Zlatanov
2014-12-01 20:32                                             ` Lars Magne Ingebrigtsen
2014-12-02  1:17                                               ` Ted Zlatanov
2014-12-02  5:07                                                 ` Lars Magne Ingebrigtsen
2014-12-01 19:00                                         ` Eli Zaretskii
2014-12-01 17:06                                 ` Achim Gratz
2014-12-01 17:56                                   ` Eli Zaretskii
2014-12-01 18:33                                     ` David Kastrup
2014-12-01 19:12                                       ` Eli Zaretskii
2014-12-01 19:15                                       ` Eli Zaretskii
2014-12-01 20:47                                   ` Rasmus
2014-12-01 19:15                             ` default large-file-warning-threshold (was: Generating the ChangeLog files ...) Richard Stallman
2014-12-02  5:15                             ` default large-file-warning-threshold Lars Magne Ingebrigtsen
2014-12-01  3:24                         ` Generating the ChangeLog files from the commit messages Stefan Monnier
2014-12-01  3:39                           ` Eli Zaretskii
2014-12-01  5:49                           ` Paul Eggert
2014-12-01  7:45                           ` H. Dieter Wilhelm
2014-11-30 16:35                 ` Lars Magne Ingebrigtsen
2014-11-19  9:02           ` Bastien
2014-11-19  9:38             ` Rasmus
2014-11-19 11:17               ` Bastien
2014-11-19 13:34                 ` Óscar Fuentes
2014-11-19 13:50                   ` Bastien
2014-11-19 16:29                 ` Yuri Khan
2014-11-19 16:43                   ` Eli Zaretskii
2014-11-19 16:52                     ` Yuri Khan
2014-11-19 18:49                       ` Eli Zaretskii
2014-11-20  2:54                         ` Yuri Khan
2014-11-20  9:38                           ` Bastien
2014-11-20  9:33                         ` Bastien
2014-11-20  9:31                   ` Bastien
2014-11-19 16:43             ` David Engster
2014-11-19 22:21               ` Stefan Monnier
2014-11-19 22:51                 ` David Engster
2014-11-21 10:03                   ` Eli Zaretskii
2014-11-21 16:19                     ` David Engster
2014-11-21 16:58                       ` Eli Zaretskii
2014-11-21 17:19                         ` Stefan Monnier
2014-11-21 17:21                         ` David Engster
2014-11-19 16:54     ` Include necessary git tools in the Emacs distribution? David Engster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=547B9127.2080508@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).