[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: raise ulimit?
- To: or-talk@xxxxxxxxxxxxx
- Subject: Re: raise ulimit?
- From: Adam Langley <alangley@xxxxxxxxx>
- Date: Wed, 25 May 2005 16:37:43 +0100
- Delivered-to: archiver@seul.org
- Delivered-to: or-talk-outgoing@seul.org
- Delivered-to: or-talk@seul.org
- Delivery-date: Wed, 25 May 2005 11:43:56 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=r8j/JgjBoDM4CoPaUwgkatjSqnQx0cucNKkm9dMIcj8RjsnGVkyvZXpEUgXTa+UWjVM9m2dDlIOPGLTWQmDn3CdcEJfv4vttmbxYf0UbWnKIhlmFEdra5Q2w/bBWaJlXLRSFksAqb6DXLzWFlnaRu21GC6fM6wYnzVoYHHmQJwA=
- In-reply-to: <42946AB9.2231.316B7E3@localhost>
- References: <42946AB9.2231.316B7E3@localhost>
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-talk@xxxxxxxxxxxxx
On 5/25/05, alexyz@xxxxxxxxxx <alexyz@xxxxxxxxxx> wrote:
> This is an interesting warning message:
>
> [warn] connection_add(): Failing because we have 991 connections already. Please raise
> your ulimit -n.
>
> Got several of them and don´t know what to do. I am not using bandwidth limiting, if that´s
> what it is refering to.
Tor will try to set the soft fd rlimit (ulimit is probably a bad name)
at startup to the value of MaxConn in the config file (if it exists),
or to the hard limit. This is a kernel imposed limit on the number of
file descriptors.
In some shells this can be set by `ulimit -n number`, in others it's
`limit desc number`. Non-root users cannot raise their hard limit, and
this is often set in /etc/security/limit.conf.
A harder limit exists on Linux systems which is the value of
/proc/sys/fs/file-max (again, can only be set by root)
Sorry, it's not possible to be more specific without knowing exactly
how your system is setup.
(see man setrlimit(2))
AGL
--
Adam Langley agl@xxxxxxxxxxxxxxxxxx
http://www.imperialviolet.org (+44) (0)7906 332512
PGP: 9113 256A CC0F 71A6 4C84 5087 CDA5 52DF 2CB6 3D60