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

changing power plan drastically reduces download speed #7636

Open
jagannatharjun opened this issue Feb 22, 2024 · 6 comments
Open

changing power plan drastically reduces download speed #7636

jagannatharjun opened this issue Feb 22, 2024 · 6 comments

Comments

@jagannatharjun
Copy link
Contributor

Please provide the following information

libtorrent version (or branch):
libtorrent v1.2.19.0

platform/architecture:
windows 11

compiler and compiler version:
msvc

please describe what symptom you see, what you would expect to see instead and
how to reproduce it.

when I change my power plan from "High Performance" to "Power Saver", the download speed drastically decrease, changing the power plan back to "High Performance" again increases download speed, weirdly doesn't seem to affect upload speed

image

In above image, the red circle is the download speed in "Power Saver" mode

@vincejv
Copy link

vincejv commented Feb 23, 2024

I'm not entirely sure where you're getting at... or your expectations? You expect the speeds to be the same when your CPU is throttled down by the power plan due to power saving?

Downloading requires CPU time due to piece hash checking by throttling down your CPU thru switching power plans will obviously lower your download speed.

Not to mention that probably your Network drivers/card requiring CPU time not being hardware accelerated or no dedicated chip in the PCIe card to process packets.

@jagannatharjun
Copy link
Contributor Author

throttling down your CPU

I tried changing "maximum processort state" in power plan setting for both of these power plan, the result remains same, so it's something else.

@vincejv
Copy link

vincejv commented Feb 23, 2024

You're going to have list all the change between power plans for someone to help

How are others suppose to know what you set?? i mean I even assumed your CPU is throttled down with your "Power Saving" plan.

@arvidn
Copy link
Owner

arvidn commented Feb 24, 2024

It's not obvious that there's anything wrong here. Downloading at a lower rate will most likely save power; so it seems to work as intended.

If you have a reason to believe there's something wrong, and the download rate should not be affected by the computation power afforded by the hardware, please describe the reasons to believe so.

@jagannatharjun
Copy link
Contributor Author

the download rate should not be affected by the computation power afforded by the hardware, please describe the reasons to believe so

because upload rate is not being affected

@elgatito
Copy link
Contributor

elgatito commented Mar 6, 2024

@jagannatharjun When you download - all downloaded blocks are being hashed and verified, that uses CPU for hashing and IO for writing/downloading.

When you upload - you use downloaded data 'as is', so you use only IO for read/upload.

I don't think power plan would influence networking layer, but hashing would be done slower, definitely, so it should influence your download performance, yes.

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

4 participants