i23098 Posted September 3, 2007 Report Share Posted September 3, 2007 I'm using uTorrent 1.7.2 in Kubuntu Linux with Wine 0.9.43...I've got a torrent with thousand of files, and while uTorrent is checking a directory the opened files of the process just keep growing (checked using lsof command) until uTorrent fails with Error: Too many open files.From the behavior, it seems file descriptors aren't close until the end of the checking... After checking a file, it should be closed. If it is, maybe it's a wine bug :\Under windows I didn't have a problem, but systems can have different maximum of open files limit. Link to comment Share on other sites More sharing options...
DreadWingKnight Posted September 3, 2007 Report Share Posted September 3, 2007 ulimit -n pleaseAlso, could you check with win version 0.9.44 as well?Keep in mind that each peer connection in addition to each local file link counts as an open file.You can't have any more open files than the ulimit -n value. Link to comment Share on other sites More sharing options...
i23098 Posted September 3, 2007 Author Report Share Posted September 3, 2007 ulimit -n please1024Also, could you check with win version 0.9.44 as well?As soon as wine updates their ubuntu repository :\Keep in mind that each peer connection in addition to each local file link counts as an open file.I made the test with everything stopped. lsof gives 160. Next I started only the torrent that has all files (6881) already downloaded and I want to seed. uTorrent starts checking the files and never close them. lsof keeps growing until the error message...You can't have any more open files than the ulimit -n value.Do you know a simple way to increase the limit? I've put in sysctl.conf fs.file-max=200000 but ulimit -n still gives 1024 :\ Link to comment Share on other sites More sharing options...
Ultima Posted September 3, 2007 Report Share Posted September 3, 2007 http://forum.utorrent.com/viewtopic.php?id=16707 Link to comment Share on other sites More sharing options...
i23098 Posted September 4, 2007 Author Report Share Posted September 4, 2007 Thanks Nevertheless, it seems strange to have 6000+ opened files while checking. I would like to know if it's a uTorrent feature or if it's a wine bug... If it's a wine bug, I would fill it myself Link to comment Share on other sites More sharing options...
Ultima Posted September 4, 2007 Report Share Posted September 4, 2007 How many files are in the torrent...? Are you running a bunch of torrents with lots of files? Link to comment Share on other sites More sharing options...
i23098 Posted September 4, 2007 Author Report Share Posted September 4, 2007 In the case, I'm starting only a torrent with lots of files. The problem is only during the Checking phase. After the check is done, the file handlers are correctly closed. I don't see a reason for a file that was already checked, thus not in use, to remain opened... Link to comment Share on other sites More sharing options...
Firon Posted November 12, 2007 Report Share Posted November 12, 2007 This has been fixed in 1.8. File handles are closed immediately after it's done checking the file. Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 Hi, I am bumping this thread because of the post above where it says this bug was fixed in 1.8 beta.I have been using 1.7.7 and had this error, so I installed 1.8.I am sad to report that is does not fix the bug.Also, I used ulimit and set mine to 10,000 and still having many many torrents with errors.I am on 8.04 ubuntu and my machine is a c2d with 750GB and 3GB and never has any other issues.What else may you suggest? Should I try and set the ulimit to 20,000? higher? I am not dumb, but I am a novice, so please be clear for me.Kind Thanks ! Link to comment Share on other sites More sharing options...
DreadWingKnight Posted June 2, 2008 Report Share Posted June 2, 2008 How many peer connections do you have set in your preferences?How many torrents are you trying to run at once? Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 10,000 connections.54 torrents100Mb pipe (not even close to maxed) 3.1MB dn 2.1Mb upCPU 1 = 24%CPU 2 = 21%HD 750GB S2PS: My connection # of users not files, as I add it up, is around 1100 individual IPs. Link to comment Share on other sites More sharing options...
DreadWingKnight Posted June 2, 2008 Report Share Posted June 2, 2008 Each peer connection plus each local open file counts to the ulimit -n.Connecting to tens of thousands of peers is only going to cause more problems than it's going to solve, so you're going to need to turn that down. Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 If this is true, and not a bug, I will just need to get 3 or 4 smaller severs, as the one I am on now, if I cannot due to software limits handle more than a few torrents, is way overkill at only 25% utilized before reaching this file limit. Link to comment Share on other sites More sharing options...
DreadWingKnight Posted June 2, 2008 Report Share Posted June 2, 2008 The file limit you're encountering is an operating system issue.Connecting to thousands of peers isn't going to improve your speeds in either direction. Tens of thousands is worse. You really only need about 100-200 connections per active torrent for most effectiveness. Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 Per torrent? Inclusive of the files IN a torrent? If I understand that is a torrent which has 100 files and then 20 peers is 2000 connections? Link to comment Share on other sites More sharing options...
jewelisheaven Posted June 2, 2008 Report Share Posted June 2, 2008 You're running up to date WINE, right? Link to comment Share on other sites More sharing options...
DreadWingKnight Posted June 2, 2008 Report Share Posted June 2, 2008 Your math is wrong.100 files -> 100 file handles20 peers -> 20 file handlesHaving your connection limits set as high as you have them, it isn't surprising that you're hitting the handle limits.Your limits allow for 10k file handles JUST on the peer connections. Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 I am running all updates and builds to the day! Yes!!I can set that at any reasonable number... what might that be?Here is what I have... I have 54 torrents and about 1200 Peers.I do not know how many files they have in each torrent combined, but I know many of them have 100 or more files each torrent.I understand that this IS a limit of the OS.... and so any other suggestions on tweaking the OS settings ulimit or otherwise would be great.Thanks again, your doing great !! Link to comment Share on other sites More sharing options...
DreadWingKnight Posted June 2, 2008 Report Share Posted June 2, 2008 The xx/100mbit settings in the speed guide (ctrl+g) will be much more reasonable. Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 Just as an additional note... of the 54 torrents.... HALF of them are reporting this error. It is not one or two of them.. I am seeding/leaching only about 18 actual torrents which are doing fine. I have stopped 10 of them, just because they were not getting more than 20K up anyway, as I try and figure this out. That leaves about 16 which are errors and which if I force start, do start and seed for a few minutes before erring out once again.===========================================That guide set me for 1000 connections and 25 torrents.If that is truly it... then I am paying WAY too much for a server that is using 12% CPU on just 25 TORRENTS.I think that is the simple answer.You want to seed 100 torrents? Get 4 servers. LOL Link to comment Share on other sites More sharing options...
jewelisheaven Posted June 2, 2008 Report Share Posted June 2, 2008 I'm sorry that sounds like an AWFUL amount of load for such slow speeds.... i's possibly your server specs aren't what you paid for? Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 Speed isnt the issue. I can fly and I am not even using 25% of the ability.What I cannot do... is seed MORE than 25 torrents... and that seems to just be the reality of the software all around...So I will just buy 4 servers and seed 25 on each! Link to comment Share on other sites More sharing options...
jewelisheaven Posted June 2, 2008 Report Share Posted June 2, 2008 Mondays... sorry I wasn't saying the speed is the problem, I was making note the usage figures you show don't seem to be indicative of a healthy system.I wasn't even covering the limit issue you pointed out here... Maybe I'm just too far behind the times, but looking at other people's fast rigs these days... 25% CPU for 3+2 MBps means something is working overtime. I don't recall the exact figures, so you may want to check out the rest of your rig for other possible causes of the excessive usage... i.e. misconfiguration before plopping down more $ for FOUR of them... 4 means 4x as many changes from default Link to comment Share on other sites More sharing options...
Firon Posted June 2, 2008 Report Share Posted June 2, 2008 if it's a dedicated box, just raise your ulimit even more. Link to comment Share on other sites More sharing options...
RachelFaith Posted June 2, 2008 Report Share Posted June 2, 2008 It is. How bad should I try to take it ?? It's OVH XXL if you know what that is. It is at 8000 now, because I saw that on a previous post. Is 20,000 to high?Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.