These are chat archives for anacrolix/torrent

11th
Jun 2018
Matt Joiner
@anacrolix
Jun 11 2018 02:27
@elgatito there's also /debug/perf
if you're using the latest anacrolix/sync (just pushed an update), set your env to PPROF_SYNC=times, or call sync.EnableLockTimes()
Denis
@elgatito
Jun 11 2018 04:49
@anacrolix i'm running sync.Enable() on init in the latest version
Denis
@elgatito
Jun 11 2018 05:32
looking at low-speed torrent downloading (which happens sometimes, the one i've mentioned). here is locktimes - https://paste.ubuntu.com/p/jWkBsytVDy/
I feel it's better to add one url which prints out all the debug pages in one
Matt Joiner
@anacrolix
Jun 11 2018 07:48
if you want them all in one page, i think you could provide a hnadler of your own that concatenates all the pages you want with io.Copy
Matt Joiner
@anacrolix
Jun 11 2018 08:07
i don't see anything wrong with those logs posted
do you have any idea of cpu usage?
Denis
@elgatito
Jun 11 2018 09:23
Cpu usage?
Matt Joiner
@anacrolix
Jun 11 2018 12:33
yeah how much cpu is being used when torrent is downloading?
Denis
@elgatito
Jun 11 2018 12:40
You mean in overall? Or that specific case with low speed when everything looks good?
Matt Joiner
@anacrolix
Jun 11 2018 12:41
it's probalby only worth checking for people with low speeds
the others are probably satisfied
Denis
@elgatito
Jun 11 2018 12:43
I gave yesterday updated to the last version on my main "watch" device, which is s905 arm, and it was easily getting 8Mb/sec after about 5 seconds
Matt Joiner
@anacrolix
Jun 11 2018 12:43
ha awesome
Denis
@elgatito
Jun 11 2018 12:43
And that proc is much slower than Shield's
Matt Joiner
@anacrolix
Jun 11 2018 12:43
sounds faster than my crappy macbook
herrwusel
@herrwusel
Jun 11 2018 12:44
Do you know what your typical cpu usage is @elgatito ? I got an s912 arm and elementum is maxing out the cpu most of the time
Denis
@elgatito
Jun 11 2018 12:56
Android or linux?
Denis
@elgatito
Jun 11 2018 13:04
Maxing while downloading something or even in idle mode while doing background tasks?
herrwusel
@herrwusel
Jun 11 2018 13:10
Linux (CoreElec) and while downloading
It doesn't have any negative effects as far as I know. Just wanted to know if it's normal and if you have any experience
Matt Joiner
@anacrolix
Jun 11 2018 13:17
my production servers get maxxed out a lot, but that's just when they're downloading at top speed
Denis
@elgatito
Jun 11 2018 13:21
We can now take dump of cpu profile with the latest version of elementum, to see what consumes the cpu
Denis
@elgatito
Jun 11 2018 16:50
@herrwusel can you open torrent download (anything, when you see high cpu usage) and then open cpu profile - http://192.168.0.44:65220/debug/pprof/profile (your IP) and send it? we
we'll see what consumes the power