ludde Posted October 13, 2005 Report Share Posted October 13, 2005 What you experience is Windows's file cache. Windows uses the free RAM for caching files. It's outside of uTorrent's control. When you stop a torrent, uTorrent closes all file handles, and that might explain if the file cache goes down./Ludde Link to comment Share on other sites More sharing options...
chaosblade Posted October 13, 2005 Report Share Posted October 13, 2005 Then perheps not all of the file handles need to be open all the time ?I know how file handles are used, But the use may vary on a program like this, So im not entirely sure if its possible. Link to comment Share on other sites More sharing options...
tozz Posted October 13, 2005 Report Share Posted October 13, 2005 What you experience is Windows's file cache. Windows uses the free RAM for caching files. It's outside of uTorrent's control. When you stop a torrent, uTorrent closes all file handles, and that might explain if the file cache goes down./LuddeIt's however strange this is the first time in 12years or so using Windows I've seen this behaviour this excessive. Link to comment Share on other sites More sharing options...
MechR Posted October 13, 2005 Report Share Posted October 13, 2005 Hmm. You say that when this happens, utorrent.exe's listed memory usage stays low. Does any other process's listed memory usage increase by huge amounts? One of the svchost.exe's, perhaps? Link to comment Share on other sites More sharing options...
True Posted October 13, 2005 Report Share Posted October 13, 2005 ludde, any reason then why it seems to impact people here so heavily compared to other clients? Or is it just because uTorrent is so small, that things like this are more noticable Link to comment Share on other sites More sharing options...
tozz Posted October 13, 2005 Report Share Posted October 13, 2005 Hmm. You say that when this happens, utorrent.exe's listed memory usage stays low. Does any other process's listed memory usage increase by huge amounts? One of the svchost.exe's, perhaps?No Link to comment Share on other sites More sharing options...
ludde Posted October 13, 2005 Report Share Posted October 13, 2005 uTorrent never closes the file handles while you are downloading. That might be why Windows caches the files more aggressively. I've added an option to close the file handles every minute in uTorrent 1.1.5, maybe that helps for you./Ludde Link to comment Share on other sites More sharing options...
Martin Posted October 13, 2005 Report Share Posted October 13, 2005 Nice, I was just starting to worry about this issue. Link to comment Share on other sites More sharing options...
lorcro2000 Posted October 13, 2005 Report Share Posted October 13, 2005 http://www.sysinternals.com/Utilities/Filemon.htmlFilemon shows what's going on in the file system. Might be good for this.http://www.sysinternals.com/Utilities/ProcessExplorer.htmlProcess Explorer is task manager on steroids. Might also be useful. Link to comment Share on other sites More sharing options...
True Posted October 13, 2005 Report Share Posted October 13, 2005 uTorrent never closes the file handles while you are downloading. That might be why Windows caches the files more aggressively. I've added an option to close the file handles every minute in uTorrent 1.1.5, maybe that helps for you./LuddeIf it ends up working (don't write code for win32 anymore, not that familiar with winxp's caching methods), then I and many appreciate it. Questino about this - are all clients affected on XP? Link to comment Share on other sites More sharing options...
rjsoz Posted October 14, 2005 Report Share Posted October 14, 2005 I noticed this morning that after running for about 8 hours, my system had 180Mb of free RAM and my System Cache was well over 540Mb. As soon as I stopped uTorrent, the free RAM jumped back to 480 Mb, but my System Cache (as listed in Task Manager) stayed at 540Mb...So what? 480Mb of Free RAM, 540Mb of System Cache - I've only got 768Mb of RAM - so the system cache size reported isn't entirely accurate, and I'm fairly certain the system cache is where the memory is going - at least on MY pc. :-)Closing the file handles every minute should knock this "problem" on the head... Link to comment Share on other sites More sharing options...
ludde Posted October 14, 2005 Report Share Posted October 14, 2005 Can someone tell me if stopping the torrent has the same effect at stopping utorrent (i.e. does the mem usage go down) Link to comment Share on other sites More sharing options...
drjones Posted October 14, 2005 Report Share Posted October 14, 2005 With 6 torrents active I stopped them all and got a 120meg boost to my available mem. I then exited utorrent and had a minescule change. So in my case it would seem that just stopping the download did the trick. Although the system cash number did not change leading me to think it was BS since I had a total well over my real physical total if you add them up.I am running fully patched XP pro.-drjones Link to comment Share on other sites More sharing options...
goldup Posted October 14, 2005 Report Share Posted October 14, 2005 Same problem here. It started for 1.2version i think... winxp pro sp2 with tcp/ip patch. Link to comment Share on other sites More sharing options...
tozz Posted October 14, 2005 Report Share Posted October 14, 2005 Can someone tell me if stopping the torrent has the same effect at stopping utorrent (i.e. does the mem usage go down)I might have been a bit unclear about this in my previous posts, sorry about that, but yes, stoping torrents have the exact same effect as closing uTorrent. Link to comment Share on other sites More sharing options...
Aeon17x Posted October 14, 2005 Report Share Posted October 14, 2005 I just tried it on one of my larger torrents... confirmed. That's quite a big leak you have here. :shock: Link to comment Share on other sites More sharing options...
chaosblade Posted October 14, 2005 Report Share Posted October 14, 2005 Did you even read the thead ? we already know its not a 'leak', But the way windows caches files open in utorrent. Link to comment Share on other sites More sharing options...
tozz Posted October 14, 2005 Report Share Posted October 14, 2005 Did you even read the thead ? we already know its not a 'leak', But the way windows caches files open in utorrent.A choice of words, the memory is used without the need for it, therefore I would consider it a leak. Link to comment Share on other sites More sharing options...
chaosblade Posted October 14, 2005 Report Share Posted October 14, 2005 I wouldn't say 'without the need'.. You have to save the files somewhere before they are written physically to the file. uTorrent just doenst release them as often. Link to comment Share on other sites More sharing options...
tozz Posted October 14, 2005 Report Share Posted October 14, 2005 I wouldn't say 'without the need'.. You have to save the files somewhere before they are written physically to the file. uTorrent just doenst release them as often.Try 'ever' Link to comment Share on other sites More sharing options...
Aeon17x Posted October 14, 2005 Report Share Posted October 14, 2005 Did you even read the thead ? we already know its not a 'leak', But the way windows caches files open in utorrent.By your logic, then every single Torrent program out there should have the same bug. But only uTorrent has it. It's a leak since they should've taken steps to prevent that from happening. Not that it matters now, apparently 1.1.5 has a fix for it. Link to comment Share on other sites More sharing options...
ludde Posted October 14, 2005 Report Share Posted October 14, 2005 This is not a memory leak. A memory leak means that the memory is lost and not used for anything.In this case, the memory is actively used for Windows's file cache. So it's not even close to being a memory leak. Link to comment Share on other sites More sharing options...
tozz Posted October 14, 2005 Report Share Posted October 14, 2005 A memory leak is the failure to release memory used, as in this case when a torrent is active for a long time the memory used for caching is still taking up space after it's needed.But since the problem is solved I don't see this as a problem any more Link to comment Share on other sites More sharing options...
ludde Posted October 14, 2005 Report Share Posted October 14, 2005 The memory is not wasted. Windows is just using it for the file cache. If there is any program that needs the memory Windows will let that program have it. Link to comment Share on other sites More sharing options...
tozz Posted October 14, 2005 Report Share Posted October 14, 2005 The memory is not wasted. Windows is just using it for the file cache. If there is any program that needs the memory Windows will let that program have it.With a performance hit as a result There's a reason you never should let Windows manage your memory more than absolutely necessary Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.