WikipediaP2P icon indicating copy to clipboard operation
WikipediaP2P copied to clipboard

usage stats?

Open cryptix opened this issue 7 years ago • 5 comments

Hi!

it's hard for me to express how much I love to see this project. I have a couple of questions and/or requests though.

in rough terms: please include a stats view in the UI. According to chromes task manager, wp2p uses 400megs or ram and at leat one up to two cpu cores.

my problem with this is: i can't tell if webrtc is acting up and spinning for no reason or of i'm actually helping to spread content...

also: i'd like to see how much disk space is used and maybe drop some partial content.. I might not want to cache everything.

another thing about disk usage: I might want to export my cached content and transfer it to a more resourcefull node.

linux 4.4.31 / chromium 54.0.2840.90 (64-bit) i5-2520M / 8gb ram

cryptix avatar Nov 18 '16 21:11 cryptix

at the very least, i'd expect the usage to go to zero when clicking the icon to switch it off.

cryptix avatar Nov 18 '16 21:11 cryptix

Hello @cryptix

The icon switch was mostly intended for you to disable it and get articles directly from Wikipedia and not from peers, but still keep the cached articles you got from peers. So if turned ON again, all articles obtained previously from peers get's restored for cached use.

I thought was the expected, since was my 'user case', but I guess you are right, most users will expect that turning it OFF will delete everything and stop everything related to it. My apologizes, I will add it to the pending things to add/improve.

guerrerocarlos avatar Nov 18 '16 22:11 guerrerocarlos

Also the stats view is very important, you are right, thinking how to show it... since wp2p doesn't have much UI right now.

guerrerocarlos avatar Nov 18 '16 22:11 guerrerocarlos

Hey @guerrerocarlos thanks again for doing this!

should delete everything

i'm not so sure about that, at least maybe ask if the user really wants to. Would be quite the churn to resync what you already had.

re stats UI: maybe take some inspiration from syncthing? it's a html based and has a nice overview imho:

i'd maybe take the right side mostly like it is: aggregated and current network traffic, number of peers, ...

the folder view on the left isn't really applicable but could host a view of which article was send out how many times (or transferred in total size) would be interesting maybe? would also give a place for a delete button.

just a thought i'd also be fine with a tabular view which resembles most torrent clients for the peer view.

just to make one point clear: i'm not interessted in a transfer log, i mostly don't care who get's what from me if I have an option to drop specific content and can say "sorry but i need my connection right now for myself, it's really shitty anyways"

cryptix avatar Nov 18 '16 22:11 cryptix

I was also expecting that turning the extension OFF would stop all peer traffic and memory usage, but then, reading gerrerocarlos's explanation, I think it's nice to be able to have this option he described, since browsing Wikipedia under WikipediaP2P is a bit confusing at times, especially when we've just made an edit.

Still, WikipediaP2P takes quite a bit of memory and CPU, and for me it is a problem while playing chess online for instance : at that time I need the browser to be as snappy as possible.

I suggest making two options : one to turn the extension off, and one to shut it down. The former being the current behavior, and the latter meaning that all peer traffic and CPU usage is shut down.

grondilu avatar Nov 24 '16 08:11 grondilu