I find it a bit annoying that I have to re-enter my password twice every time I (re-)start mutt when I want to update my configuration file. Well, it appears I don't need to be doing restarting mutt. The MuttWiki describes a way to re-load the configuration after mutt is running. Type the following into mutt after you've changed your muttrc file:
Note that shell expansions may not work---you should spell out the full path.
:source /path/to/your/muttrc
Wednesday, February 23, 2011
Reloading the Mutt Configuration File
Monday, February 7, 2011
Too many open files
Certain applications, such as a web server with lots of database connections, require a large number of open files. Most Linux systems are, by default, configured to allow relatively small number of open files, e.g. 1024. How to change this limit isn't as obvious as one might hope.
ulimit
will show you current limits and let you change limits for the current session. But, one rarely cares about a temporary change. For a permanent change, one must realize that these limits are in place for security purposes---so that it is difficult for a single user to bring down the entire machine. So, the limits are configured in /etc/security/limits.conf
. Adding the following lines to /etc/security/limits.conf
should help if you are having "too many open files" troubles:
* soft nofile 16384 * hard nofile 65536Note that this is also the place to "unlimit" the number of processes a user can run, e.g.:
* soft nproc 4096 * hard nproc 16384Note that a "soft" limit is the limit a user will get when starting a shell. The "hard" limit is the highest limit they can set without "root" privileges.
Note that when checking limits using ulimit
, soft limits are shown by default. Use the -H
option to get hard limits. The -a
option shows "all" limits. So, run the following two commands to see soft, then hard limits, respectively:
ulimit -a ulimit -a -H