This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[1.2rc1:gentoo] Upload speed limit?

Tags: None
(comma "," separated)
Tanktalus
Registered Member
Posts
67
Karma
0
OS

[1.2rc1:gentoo] Upload speed limit?

Tue Jan 10, 2006 12:28 am
I've chosen to limit my upload speed to 20KB/s. I see ktorrent mentioning that it is currently uploading at speeds above that from time to time.

It also seems to extract a fair bit of CPU time ... is there a limit on the number of torrents one should be downloading at a time?

I initially had ktorrent 1.0 - it crashed regularly. Told Gentoo to give me the bleeding edge, and it's much better now. Crashed overnight, but has been mostly stable during the day. Just some minor issues here with the upload speed starting to take over my bandwidth and CPU time in general.

Are there any of the docs online? For some reason, Gentoo isn't installing the docs with ktorrent, so when I hit the help button, nothing is coming up. Well, the KHelpCenter is coming up ... and then complaining there is no such documentation.
George
Moderator
Posts
5421
Karma
1
Tanktalus wrote:I've chosen to limit my upload speed to 20KB/s. I see ktorrent mentioning that it is currently uploading at speeds above that from time to time.


If the speed fluctuates a lot, you can go over the limit slightly for a second or two. But with the latest from SVN, everything should be fine.

It also seems to extract a fair bit of CPU time ... is there a limit on the number of torrents one should be downloading at a time?


You can put one in, but obviously the more torrents, the more CPU usage. Putting a limit on the number of connections per torrent, can also be a good idea, without a limit KT will just keep accepting new connections, which can be cause lots of CPU usage.

I initially had ktorrent 1.0 - it crashed regularly. Told Gentoo to give me the bleeding edge, and it's much better now. Crashed overnight, but has been mostly stable during the day. Just some minor issues here with the upload speed starting to take over my bandwidth and CPU time in general.

Are there any of the docs online? For some reason, Gentoo isn't installing the docs with ktorrent, so when I hit the help button, nothing is coming up. Well, the KHelpCenter is coming up ... and then complaining there is no such documentation.


We have no documentation. (lack of time and coding takes priority)
Tanktalus
Registered Member
Posts
67
Karma
0
OS
George wrote:
Tanktalus wrote:I've chosen to limit my upload speed to 20KB/s. I see ktorrent mentioning that it is currently uploading at speeds above that from time to time.


If the speed fluctuates a lot, you can go over the limit slightly for a second or two. But with the latest from SVN, everything should be fine.


Is there that much difference between what's in SVN and 1.2rc1?

I'm just trying to figure out why my upload speed is about 10x my download speed - I just restarted ktorrent, for example, and already the "Transferred up" is 8.0 MB while the "down" is 896KB. My share ratios are all 19.06, 8.12, 5.07 ... which is fine - I don't mind sharing. But this is a bit excessive. I also notice that the upload/download ratio gets even more excessive if I leave the connection going over long periods of time (e.g., over night).

The only torrent I've successfully completed thus far, oddly enough, when I try to connect back to seed it, I don't upload anything.

I have to assume I have something set up odd to get like this. I would imagine that this algorithm in ktorrent is somewhat well aged, thus it's probably me. Any advice is appreciated. (I'm trying to get subversion installed so that I can try the latest code, too.)

George wrote:You can put one in, but obviously the more torrents, the more CPU usage. Putting a limit on the number of connections per torrent, can also be a good idea, without a limit KT will just keep accepting new connections, which can be cause lots of CPU usage.


I've put in a limit of 5 downloads and 5 seeds. I'm not sure it's doing anything. Then again, I'm not entirely sure what those quite mean.

George wrote:We have no documentation. (lack of time and coding takes priority)


One thing I learned at work is that putting up some docs saves time in that you can point idiots like me at them and then get back to coding rather than having to respond to all the emails. Perhaps I have to deal with more idiots than you have to deal with making it more worth my time, but you may want to look at it that way.
George
Moderator
Posts
5421
Karma
1
Tanktalus wrote:
George wrote:
Tanktalus wrote:I've chosen to limit my upload speed to 20KB/s. I see ktorrent mentioning that it is currently uploading at speeds above that from time to time.


If the speed fluctuates a lot, you can go over the limit slightly for a second or two. But with the latest from SVN, everything should be fine.


Is there that much difference between what's in SVN and 1.2rc1?


Yes, mostly lots of bug fixes (too much to my liking, but rc1's are to weed the bugs out)

I'm just trying to figure out why my upload speed is about 10x my download speed - I just restarted ktorrent, for example, and already the "Transferred up" is 8.0 MB while the "down" is 896KB. My share ratios are all 19.06, 8.12, 5.07 ... which is fine - I don't mind sharing. But this is a bit excessive. I also notice that the upload/download ratio gets even more excessive if I leave the connection going over long periods of time (e.g., over night).


We had a slightly embarrassing bug where uploaded bytes can get counted twice.

The only torrent I've successfully completed thus far, oddly enough, when I try to connect back to seed it, I don't upload anything.


Fixed in SVN

I have to assume I have something set up odd to get like this. I would imagine that this algorithm in ktorrent is somewhat well aged, thus it's probably me. Any advice is appreciated. (I'm trying to get subversion installed so that I can try the latest code, too.)


Do not assume anything, the idea is that KT should work well with the default settings.

I've put in a limit of 5 downloads and 5 seeds. I'm not sure it's doing anything. Then again, I'm not entirely sure what those quite mean.


The number of torrents you can download and seed simultaniously.

One thing I learned at work is that putting up some docs saves time in that you can point idiots like me at them and then get back to coding rather than having to respond to all the emails. Perhaps I have to deal with more idiots than you have to deal with making it more worth my time, but you may want to look at it that way.


You could look at it this way, but I don't have the time to write a manual (certainly now we are very close to 1.2, I want 1.2 to be very stable). The number of people asking questions is not really that much of a problem.
Tanktalus
Registered Member
Posts
67
Karma
0
OS
George wrote:
Tanktalus wrote:
George wrote:If the speed fluctuates a lot, you can go over the limit slightly for a second or two. But with the latest from SVN, everything should be fine.


Is there that much difference between what's in SVN and 1.2rc1?


Yes, mostly lots of bug fixes (too much to my liking, but rc1's are to weed the bugs out)


Fair enough. My current problem, then, is that SVN doesn't want to emerge on my gentoo box right now, making it annoyingly difficult to get your latest version. While I could plead for a snapshot to be emailed to me, that would be an extremely short-sighted solution (which is ok for a short-term solution). I'll be going to bug gentoo now to see what I can do to get that emerged. That's the long-term solution. But for the immediate future, if you think that you've fixed these issues in SVN and that it would benefit me to have that snapshot, or if you'd just like one extra person trying out the latest code, would you mind just tarring up your SVN directory and emailing it to me (my user name at gmail.com)? I definitely don't want this to be a regular occurance, but I really like how easy KT has been to get up and running and how it looks and operates, minus these issues I've been having, and would love to continue with it.

George wrote:
Tanktalus wrote:I have to assume I have something set up odd to get like this. I would imagine that this algorithm in ktorrent is somewhat well aged, thus it's probably me. Any advice is appreciated. (I'm trying to get subversion installed so that I can try the latest code, too.)


Do not assume anything, the idea is that KT should work well with the default settings.


Generally speaking, I like to assume I'm the idiot until I can prove otherwise. I find it gets me more help that way, and is the correct assumption all too often. ;-)

George wrote:
Tanktalus wrote:I've put in a limit of 5 downloads and 5 seeds. I'm not sure it's doing anything. Then again, I'm not entirely sure what those quite mean.


The number of torrents you can download and seed simultaniously.


Thus the fact that I'm only participating in three torrents right now means that setting these to 5 is no different than leaving them at 0. Ok.

George wrote:
Tanktalus wrote:One thing I learned at work is that putting up some docs saves time in that you can point idiots like me at them and then get back to coding rather than having to respond to all the emails. Perhaps I have to deal with more idiots than you have to deal with making it more worth my time, but you may want to look at it that way.


You could look at it this way, but I don't have the time to write a manual (certainly now we are very close to 1.2, I want 1.2 to be very stable). The number of people asking questions is not really that much of a problem.


Ok, fair enough. If you hadn't before, you obviously have thought of it that way now, and decided that the tradeoff is not currently worth it. I can accept that. Thanks!
George
Moderator
Posts
5421
Karma
1
Tanktalus wrote:
George wrote:
Tanktalus wrote:
George wrote:If the speed fluctuates a lot, you can go over the limit slightly for a second or two. But with the latest from SVN, everything should be fine.


Is there that much difference between what's in SVN and 1.2rc1?


Yes, mostly lots of bug fixes (too much to my liking, but rc1's are to weed the bugs out)


Fair enough. My current problem, then, is that SVN doesn't want to emerge on my gentoo box right now, making it annoyingly difficult to get your latest version. While I could plead for a snapshot to be emailed to me, that would be an extremely short-sighted solution (which is ok for a short-term solution). I'll be going to bug gentoo now to see what I can do to get that emerged. That's the long-term solution. But for the immediate future, if you think that you've fixed these issues in SVN and that it would benefit me to have that snapshot, or if you'd just like one extra person trying out the latest code, would you mind just tarring up your SVN directory and emailing it to me (my user name at gmail.com)? I definitely don't want this to be a regular occurance, but I really like how easy KT has been to get up and running and how it looks and operates, minus these issues I've been having, and would love to continue with it.


A snapshot from SVN (5 minutes old) :
http://ktorrent.pwsp.net/downloads/svn-snapshots/ktorrent-r496584.tar.gz

Generally speaking, I like to assume I'm the idiot until I can prove otherwise. I find it gets me more help that way, and is the correct assumption all too often. ;-)


Interesting strategy

Thus the fact that I'm only participating in three torrents right now means that setting these to 5 is no different than leaving them at 0. Ok.


Yep

Ok, fair enough. If you hadn't before, you obviously have thought of it that way now, and decided that the tradeoff is not currently worth it. I can accept that. Thanks!


Writing documentation is also boring + how many people are actually going to read it ?
Tanktalus
Registered Member
Posts
67
Karma
0
OS
George wrote:A snapshot from SVN (5 minutes old) :
http://ktorrent.pwsp.net/downloads/svn-snapshots/ktorrent-r496584.tar.gz


Thanks, got it. And it's working way better than the rc1 available via gentoo's ebuilds. Might I recommend, if it doesn't take up too much time, putting out an rc2 with all the fixes so far? I realise that your rc1 isn't that old, but it would likely help get more people trying the latest code. The old OSS motto: release early, release often.

George wrote:
Tanktalus wrote:Generally speaking, I like to assume I'm the idiot until I can prove otherwise. I find it gets me more help that way, and is the correct assumption all too often. ;-)


Interesting strategy


You may not find yourself getting annoyed and frustrated with people assuming that they're right and you're wrong, but I do. It annoys me to no end when people start making assumptions about my code when it is so obvious that it's the way they're using it that is the problem. Believing that my reaction to the situation is not abnormal or undeserved, I try not to provoke it in others by simply not making those assumptions.

When someone asks me a dumb question that makes it apparent they think I'm in the wrong before even having talked about it, I get defensive, and less helpful. So I try not to do the same in reverse: I assume I'm in the wrong until I can prove otherwise (such as with the gentoo subversion emerge failure - took me all day to prove what was going on). Then, when/if the other person figures out that, no, actually, it's they who is in the wrong, they don't feel so hurt and are much more willing to help ;-)

I'm trying to work with human nature, not against it. As one of my favourite TV personalities would ask, "How's that workin' for ya?" It's working quite well, thank you. :-)

George wrote:
Tanktalus wrote:Ok, fair enough. If you hadn't before, you obviously have thought of it that way now, and decided that the tradeoff is not currently worth it. I can accept that. Thanks!


Writing documentation is also boring + how many people are actually going to read it ?


Boring: fair enough. If we all liked the same things, then very little else would get done. ;-)

As for how many people would read it - sign me up for that list. Again, in an effort to prove/disprove my assumption that I'm doing something wrong, I like to read the docs as part of the evidence-gathering. And, as happens all too often, if it proves that my assumption is correct, I can fix it myself without bothering you.

That said, you've come to the conclusion, which I'm not disputing, that the effort to create the docs is greater than the effort to respond on the forums. So we'll leave that aspect alone.

One of the OSS projects I abuse from sourceforge, http://pcgen.sf.net, has developers who think like you. So they set up the documentation for others to write. And write others have. If you don't want to write the docs (and that's fair - you're volunteering an awful lot of time already), perhaps you may think about setting up the SVN repository such that it's easy to add a user or two so they could write the documentation. Or even so that people could submit patches to add the documentation. Personally, while I think I could write some of it (especially now that I've got it working ;-)), I would have no idea where to start in writing such documentation. Content I could probably come up with. It's knowing where and how to put it that I'm not so clear on. I'm sure I'm not alone there.

If it seems I'm spending too much time complaining/criticising, please don't take it negatively. I've already been convinced that this is a great program and project, so I'm merely trying to help make it even better. If I'm ever out of line, don't hesitate to tell me :-)
George
Moderator
Posts
5421
Karma
1
Tanktalus wrote:Thanks, got it. And it's working way better than the rc1 available via gentoo's ebuilds. Might I recommend, if it doesn't take up too much time, putting out an rc2 with all the fixes so far? I realise that your rc1 isn't that old, but it would likely help get more people trying the latest code. The old OSS motto: release early, release often.


We are going into string freeze on sunday, with 1.2 final following 2 weeks later. It might not be a bad idea to do an rc2 on saturday, but first I need to get rid of some more bugs.

You may not find yourself getting annoyed and frustrated with people assuming that they're right and you're wrong, but I do. It annoys me to no end when people start making assumptions about my code when it is so obvious that it's the way they're using it that is the problem. Believing that my reaction to the situation is not abnormal or undeserved, I try not to provoke it in others by simply not making those assumptions.

When someone asks me a dumb question that makes it apparent they think I'm in the wrong before even having talked about it, I get defensive, and less helpful. So I try not to do the same in reverse: I assume I'm in the wrong until I can prove otherwise (such as with the gentoo subversion emerge failure - took me all day to prove what was going on). Then, when/if the other person figures out that, no, actually, it's they who is in the wrong, they don't feel so hurt and are much more willing to help ;-)


Not **** of the people you want help from is allways a good plan.

One of the OSS projects I abuse from sourceforge, http://pcgen.sf.net, has developers who think like you. So they set up the documentation for others to write. And write others have. If you don't want to write the docs (and that's fair - you're volunteering an awful lot of time already), perhaps you may think about setting up the SVN repository such that it's easy to add a user or two so they could write the documentation. Or even so that people could submit patches to add the documentation. Personally, while I think I could write some of it (especially now that I've got it working ;-)), I would have no idea where to start in writing such documentation. Content I could probably come up with. It's knowing where and how to put it that I'm not so clear on. I'm sure I'm not alone there.

If it seems I'm spending too much time complaining/criticising, please don't take it negatively. I've already been convinced that this is a great program and project, so I'm merely trying to help make it even better. If I'm ever out of line, don't hesitate to tell me :-)


Anybody can write docs, all they have to do is get a KDE svn account, and ask me and Ivan questions about the technical details, I would be more then happy to proofread it.
imported4-Ivan
Registered Member
Posts
819
Karma
0

Wed Jan 11, 2006 6:24 pm
It would be great if you (or anybody else) could find the time to write the documentation for KT. Unfortunately, I don't have any experience with this so I cannot help you much. You might want to check out these websites:

http://docs.kde.org/
http://i18n.kde.org/
http://i18n.kde.org/translation-howto/d ... ation.html
http://opensource.bureau-cornavin.com/c ... index.html
http://docs.kde.org/team/
Knut
Registered Member
Posts
79
Karma
0

Wed Jan 11, 2006 7:29 pm
As a general impression the KDE Documentation team looks rather helpfull, my guess is that if someone writes up some documentation in plaintext they will help with converting to dockbook and even adding to SVN if needed.

Having KTorrent in KDE SVN probably helps too.

If you ask them I think they will help.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], Google [Bot], Sogou [Bot]