Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using up too much memory for peers #5

Closed
SineSwiper opened this issue Dec 19, 2011 · 1 comment
Closed

Using up too much memory for peers #5

SineSwiper opened this issue Dec 19, 2011 · 1 comment

Comments

@SineSwiper
Copy link

The libtorrent/rTorrent suite is still using too much memory when faced with a moderate amount of torrents and peers. After something like 500 total connections, it reaches around 3GB of RAM. Compared to uTorrent using at most 200MB of RAM for the same situation.

Based on what little I can parse from the C++ code, it appears that libtorrent is still allocating a chunk's worth of memory per peer. There's really no need to allocate the memory as soon as the peer is connected, especially since most peers just sit there and don't do anything. It should only allocate the memory when the peer is actually transferring data. If the chunk isn't useful as a cache hit, then the memory should be de-allocated when the peer isn't talking again.

@rakshasa
Copy link
Owner

I tried to rephrase my reply several times, gave up.

Lets just say that you misunderstand (completely) several aspects of how libtorrent works compared to uTorrent, and as such your post if full of errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants