aerokube / windows-images

Step by step instructions for building Docker images with Windows
Apache License 2.0
221 stars 44 forks source link

Windows 10 performance #27

Open antoniomsk opened 4 years ago

antoniomsk commented 4 years ago

Hello,

Thank you very much for really helpful ideas. We tried to test it on SUSE Linux Enterprise Server 12 SP4. We have found that tests are executed far slower in such setup in comparison with Windows virtual machines managed by Hyper-v. All the selenium tests with Hyper-v faster by 50-60% even if we allocate the same resources for Windows in docker and for VMs with Hyper-v.

Is it an expected difference in performance?

Thanks in advance!

aandryashin commented 4 years ago

Try to increase cpu resources available for container, also you can increase number of cpus that qemu allocates for kvm:

https://github.com/aerokube/windows-images/blob/master/image/entrypoint.sh#L21

smp option...

ср, 18 дек. 2019 г., 21:49 antoniomsk notifications@github.com:

Hello,

Thank you very much for really helpful ideas. We tried to test it on SUSE Linux Enterprise Server 12 SP4. We have found that tests are executed far slower in such setup in comparison with virtual machines managed by Hyper-v. All the selenium tests with Hyper-v faster by 50-60%.

Is it expected performance degradation?

Thanks in advance!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/aerokube/windows-images/issues/27?email_source=notifications&email_token=AAKY23J67O3ZE3FSYZYBDCLQZJWCZA5CNFSM4J4PLZ32YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IBNQY5A, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23PJYKWROFENZNZZYOTQZJWCZANCNFSM4J4PLZ3Q .

antoniomsk commented 4 years ago

Hi Thank you for the response. I tried to increase number of cpus that qemu allocates for kvm but it does not significantly increase overall performance. I tried -smp sockets=1,cores=2,threads=2 -smp sockets=1,cores=4,threads=2 Also i tried to add more RAM (up to 8GB for 64bit Win10) and use 32bit Win10 as well as 64bit Win10 Selenium tests with Hyper-v are still faster by 50% Will continue to find the root cause.

aandryashin commented 4 years ago

Check size of the snapshot.img file, it should be about 1G, in that case browser starts in 10 seconds.

вт, 24 дек. 2019 г., 21:12 antoniomsk notifications@github.com:

Hi Thank you for the response. I tried to increase number of cpus that qemu allocates for kvm but it does not significantly increase overall performance. I tried -smp sockets=1,cores=2,threads=2 -smp sockets=1,cores=4,threads=2 Also i tried to add more RAM (up to 8GB) and use 32bit Win10 as well as 64bit Win10 Selenium tests with Hyper-v are still faster by 50% Will continue to find the root cause.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aerokube/windows-images/issues/27?email_source=notifications&email_token=AAKY23IZVI37TTFHGUZZM6DQ2JGJNA5CNFSM4J4PLZ32YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHTQAZQ#issuecomment-568787046, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKY23MZLEPXVAIF4GOFC2TQ2JGJNANCNFSM4J4PLZ3Q .