Registered Member
|
i know this was reported before at sometime (not sure if it was on this forum or not, tried searching didnt see it) but i constantly get an error on this torrent file that i'm downloading where it stops downloading and says error too many files opened. somebody said it was fixed in version 2, but it is not. i haven't tried the svn, i'm shy about that kinda thing still.
basically, the torrent i'm downloading has 6350 files or so, so i understand this is far more than normal, but it is still very frustrating to not be able to complete the download. i am forced to use other software... i can restart the torrent, and it will work fine for maybe 20-60 minutes, but then it **** out again saying too many open files. it does not seem to be getting better as the torrent gets more complete (i'm now 75% of 13GB), in fact it might be worse because it didn't do it the first time till i had about 4GB or so i think. this surprised me since i thought once files were done they wouldnt't need to be opened again, but it might be because of uploads. i have maximum connections per torrent set to 120 and global at 600 (but no other torrents are going right now anyway.) uploads slots is set to 4. since it sounds like ktorrent is suppose to be closing out on files it isn't using anymore, it sounds like it must not be closing some. i don't know, i'm not a developer yet but can try to provide any more information that might be helpful to you. thanks for the great program though and looking forward to new versions! it certainly is nice to have such a lightweight program (at least compared to azureus, though i still admit azureus has very nice features...). take care, thanks for the work, jet |
Moderator
|
This is a very extreme case and if you are downloading to many files at the same time, you can hit this limit. KT closes when it can, but if it can't close a file, there is nothing much we can do.
I suggest that you just increase the system limits to something like 10000 for your own user, some quick googling turned up this link : http://www.flumotion.net/doc/flumotion/ ... ystem.html You just have to edit one file. |
Registered Member
|
While editing the file is the right solution, you might want to know exactly what you are setting. I can explain a little bit, I had to do this as well.
First, you do need to edit /etc/security/limits.conf. I would recommend adding two lines:
Of course, replace the <username> with the username ktorrent is running under. You might notice there's a soft and a hard setting. It's fairly simple: when you login, your open files is set to the number specified by the soft setting; in the above example, 4096. The hard setting is the actual limit. As your user, you can issue ulimit -n commands up to the limit specified there; in this case 8192. When you change these settings, you might want to logout/login for them to take affect. (If you start a new shell it will automatically use the new settings.) |
Registered Member
|
thanks for the info, i made the changes to the configuration and can see that my new limit is 8192 files.
unfortunately, now ktorrent crashes after it runs for about an hour! i looked at the backtrace but i don't have debugging symbols installed, so don't think it's worth much to developers yet. i'll try to setup debugging symbols and give a backtrace for this crash though sometime shortly. |
Registered Member
|
Well I didn't figure out how to get more debugging symbols installed to help, but below is the current debugging crash report, though it probably doesn't help. There really only seems to be potentially valuable information at the end, but I included it all just in case. If anybody can tell me or guide me to a page that helps me get debugging symbols installed, I'll be happy to do that. I'll edit this post with the updated once I know how.
As I said, the crash didn't happen until I increased the number of files allowed to access as described before to 8192. Thanks!
|
Registered Member
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft