mldonkey-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mldonkey-users] Why does mldonkey open so much files (1024)?


From: Alexander Gretencord
Subject: Re: [Mldonkey-users] Why does mldonkey open so much files (1024)?
Date: Tue, 10 Sep 2002 19:33:43 +0200
User-agent: KMail/1.4.2

On Tuesday 10 September 2002 18:50, Void None wrote:

> Sometimes after a few hours mldonkey has 1024 files (including connections
> I think) open (lsof output) - and a netstat -n| wc -l says something like
> 124 connections.

Which should not be of any problem. Current default for open files that linux 
will allocate is at 8192. But you can check where yours is set with the 
following command:

cat /proc/sys/fs/file-nr

The first number is the number of file handles allocated, the second is the 
number of actually used filehandle and the third number is the maximum linux 
will ever allocate at once. So it's absolutely no problem to have 1024 open 
files :)

Your 1024 is what "ulimit -n" talks about. (and whats set in limits.h as you 
already know it seems :)). AFAIK that's the limit for one user so just giving 
mldonkey its own user (which is wise anyway) should solve your problem. If 
mldonkey hits the limit it only affects mldonkey and not you.


Alex

-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
Benjamin Franklin





reply via email to

[Prev in Thread] Current Thread [Next in Thread]