Registered Member
|
I remember a while back when I was downloading a torrent with 5000 or so files, KTorrent would try to open too many, pass ulimit, and spit out errors.
Has this been fixed yet? If not, it really should be... |
Moderator
|
|
Registered Member
|
|
Moderator
|
|
Registered Member
|
|
Registered Member
|
|
Registered Member
|
|
Registered Member
|
|
Moderator
|
If you are running in the limit this much, then increase the limit. I think stoeptegel posted some info in another thread about how to do this.
Edit one file, set the limit to a big number and be done with it. Even if we modify KT to try to stay within the limit, this will hurt download performance. |
Registered Member
|
Um.. could you throw me a cookie? What should I start searching the forum for to try and find this post?
That isn't really an acceptible fix, most people wouldn't be bothered to go digging around a forum to 'fix' a problem. I am still of the opinion that something should be done to change the default behavior. stoeptegel - One torrent, multi-thousand files in the torrent. KTorrent will allow itself to open too many files, and the whole torrent crashes with a polite error message in the status bar of the torrent. |
Registered Member
|
Then KTorrent would need to edit a security file without the users permission. Personally i don't think that would be something cool todo towards a user, neither does is apply cleanly to the rules of the unix infrastructure.
Multi thousand files that is asking for problems. A torrent with that much files should of course get tarred or zipped, but that is only my opinion. Fact is that there are some of these weird torrents out there. I believe KTorrent already disconnects files which aren't needed, so the only thing todo here is using this fairly easy fix http://ktorrent.org/forum/viewtopic.php ... imits+conf |
Registered Member
|
There are certainly torrents out there with that kind of file count, and nothing in the bittorrent specs say that you can't have a torrent with that many files.
Most other torrent clients work gracefully with the system-imposed max files limit and some even impose their own harsher limits on themselves. For a torrent with 200,000 files, asking me to bump file handles for a user up to that point is absurd, and if I do it'll just overwhelm the system with file-handling overhead. KTorrent should be able to keep only X number of files open and work with that amount at a time. Trying to shift the blame back on the underlying OS is wrong. |
Registered Member
|
|
Moderator
|
jdong's critique is valid, the problem is that we didn't really design for this, adding it in for the 2.1 release is not really feasible. Note, that we allready close files when we can. |
Registered Member
|
There must be a pointer somewhere in the system that defines how many files is 'too many' or we wouldn't be getting this error about too many files.
All KTorrent needs to do is learn to respect it. I'm testing out Azureus now. I'm having the opposite problem with it, I get a read error when it tries to start a torrent. But all I have to do is log out and back on and it works fine. Probab ly some wierd permissions issue, but at leaast it completes the torrent. So far anyway, I haven't gotten a 'too many files open' error yet, so I'm keeping my fingers crossed. |
Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar