Debugging the messages (posts) propagation issues during the last few days is being a great learning experience and insightful about the best twister strategies.
twister basically has the problem of distributing torrents (where user’s posts are stored) among peers in a way that is both fair and secure. fair: each user will contribute their small share of processing and storage (keep your twister client running!). secure: prevent denial-of-services as using too much resources.
libtorrent introduces a nice concept for this purpose called “auto managed torrents” (*). Auto managed torrent have limits on the number of simultaneous active torrents, thus keeping resource usage limited, and may decide when to pause/resume each torrent.
Unfortunately twister was not rotating torrents to alternate between active and paused ones. Last torrents to be added where kept queued during the entire execution time of twisterd. Thanks @stark and @kseistrup for the help with debugging which lead to understanding this.
I don’t need to explain that this twister bug caused it to be secure but not fair. So I’ve just committed the code to rotate torrents in queue.
A lot of posts should start to properly propagate now. Welcome to twister-core 0.9.18.
Please download and update (git pull && make).
thanks and have fun.
* btw: libtorrent’s author – Arvid Norberg – deserves a lot of twister credit as it wouldn’t be possible to develop this project in such short time without libtorrent.
--You received this message because you are subscribed to the Google Groups "twister-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to twister-user...@googlegroups.com.
To post to this group, send email to twiste...@googlegroups.com.
May I wonder how long such rotations take? If someone is following 100 users, how long would it take to rotate them all? This might be depending on the bandwidth I guess, but on average?
Besides that I'm just curious about it. If it is a reasonable amount of time we could choose to show it in the UI:Syncing - 2 minutes left...
Is that the reason twister seems noticably more memory hungry since v0.9.18 (I'm following around 250 accounts)?
Approximately 2-3 times the amount of previous versions. It's hard to say in absolute numbers, since the amount seems to increase over time (and besides, I just restarted twisterd in order to reclaim some memory).In ~/.twister/twister.conf I can specify “maxconnections=N”, but that number will only affect the number of “bitcoin” connections. Is there a similar value for torrent connections, or will it have to be managed automatically?