This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Cannot open Too many open files

Tags: None
(comma "," separated)
lucX
Registered Member
Posts
2
Karma
0

Cannot open Too many open files

Mon Feb 20, 2006 3:02 pm
Hi
" Error starting torrent ................ Cannot open Too many open files "
I have SuSE 9.3 KDE 3.5.1 KTorrent 1,2
my Options are: Maximum download, seed, connection per download, upload rate and download rate - 0 - no limit
can you help me ?
Thanks
George
Moderator
Posts
5421
Karma
1

Mon Feb 20, 2006 5:27 pm
How many files does that torrent contain ?

Probably more then the limit, so you should increase the limit.
If you type into a console ulimit -a, it should print how many files a process can open. It probably is 1024.
lucX
Registered Member
Posts
2
Karma
0

Mon Feb 20, 2006 11:32 pm
Yes this is exactly my problem. The limit is 1024 open file.
I seeded ~770 filrs and the torrent contain 336 file!
Тhanks :D
I'll try to fix :D or close some tottents!
foxhound89
Registered Member
Posts
2
Karma
0

edit?

Wed Mar 15, 2006 2:59 pm
Is it possible to edit the open files limit to a much bigger number? If so how? Take care, Bob.
foxhound89
Registered Member
Posts
2
Karma
0

re: edit

Wed Mar 15, 2006 3:20 pm
Ah-ha! I figured it out. Open Konsole, become superuser, type ulimit -n (than the number of files desired ex: ulimit -n 2048) Take care, Bob.
bonbonthejon
Registered Member
Posts
1
Karma
0

Re: re: edit

Sat Apr 22, 2006 6:11 pm
foxhound89 wrote:Ah-ha! I figured it out. Open Konsole, become superuser, type ulimit -n (than the number of files desired ex: ulimit -n 2048) Take care, Bob.

I tried this and it didn't help, any ideas?
cade
Registered Member
Posts
70
Karma
0

Sat Apr 22, 2006 7:01 pm
ulimit is no solution. what if 2k descriptors also are not enough? set to 4k? :)
stoeptegel
Registered Member
Posts
1075
Karma
0

Sat Apr 22, 2006 7:08 pm
George made a fx in svn 512827 from 23 feb where cached files not needed get unloaded on the fly.
So probably this issue is already taken care of in svn and coming 1.3
cade
Registered Member
Posts
70
Karma
0

Sat Apr 22, 2006 9:33 pm
I'm nearly 99% sure the svn 532808 (today) still suffers from this problem. :?:
George
Moderator
Posts
5421
Karma
1

Sun Apr 23, 2006 10:51 am
cade wrote:I'm nearly 99% sure the svn 532808 (today) still suffers from this problem. :?:


We open and close files on the fly, only when they are needed, if you are still hitting the limit, what more can I do ? KT is bound by the limits of the OS. We try to minimize the number of open files.
cade
Registered Member
Posts
70
Karma
0

Sun Apr 23, 2006 1:00 pm
I'd limit descriptors per torrent. I have approx 50 seeds. if I give 5 each I'll end up with 250 descriptors, far less than 2048 (the hard limit here).

I really don't care if files have to be reopened during seeds. Yes it may be faster if keep them open but this would work only with large files, not many.

2048 (descriptors) is not small number... :)

ps: if I limit conns per torrent would it be helpful? how many fd are open, one per peer?
stoeptegel
Registered Member
Posts
1075
Karma
0

Sun Apr 23, 2006 4:58 pm
Over my head this goes, have a nice talk you... :wink:
cade
Registered Member
Posts
70
Karma
0

Sun Apr 23, 2006 6:37 pm
ok watch your head...

what is your solution? :)
stoeptegel
Registered Member
Posts
1075
Karma
0

Sun Apr 23, 2006 7:16 pm
cade wrote:what is your solution? :)


I don't have one.
I think i have too less knowlegde about the structure of linux and ktorrent to be able to think contrustive about this subject. So, that's where you're talking over my head.

I thought the "on the fly disconnecting files not needed" was a pretty nifty idea, and it worked out flawless here so far. (but i don't seed 50 torrents at the same time here, that would be insane on my 6/1mb connection)
cade
Registered Member
Posts
70
Karma
0

Sun Apr 23, 2006 7:23 pm
oh, sorry I think I misunderstood you :(

'too many open files' error can be also triggered by sockets (they are files as well). I'm trying to figure how many files and sockets are opened in my case (50 seeds).

I have just one torrent with many files. The max files (files only) opened in a single moment reached 895 (I realised my soft limit is 1024 actually).

if there is a way to reduce this number (files opened) it would be great... 8)

ps: I guess if I cleanup seeds list frequently, it would help perhaps... :)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]