How to make a wine application run on multiple processors

Questions about Wine on Linux
Locked
eric41
Newbie
Newbie
Posts: 2
Joined: Mon Aug 17, 2020 2:07 pm

How to make a wine application run on multiple processors

Post by eric41 »

Hallo!I have Wine installed on my Debian 10.5 Buster Linux on an i5 laptop

I am running a heavy Windows application on the wine and everytime the application consumes 100% of one of the CPU cores and stalls forcing me to terminate the application everytime.

Is there a way to make wine applications run on more than one CPU core or use the core more efficiently without hogging 100% of a core?
User avatar
DarkShadow44
Level 9
Level 9
Posts: 1338
Joined: Tue Nov 22, 2016 5:39 pm

Re: How to make a wine application run on multiple processors

Post by DarkShadow44 »

If the program is programmed to only use one core, there's nothing Wine can do. Sometimes Wine is slower than Windows, but apart from that, you can't "use a core more efficiently".

The program just freezes? Did you try to wait for some time already?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: How to make a wine application run on multiple processors

Post by Bob Wya »

eric41 wrote: Mon Aug 17, 2020 2:15 pm Hallo!I have Wine installed on my Debian 10.5 Buster Linux on an i5 laptop

I am running a heavy Windows application on the wine and everytime the application consumes 100% of one of the CPU cores and stalls forcing me to terminate the application everytime.

Is there a way to make wine applications run on more than one CPU core or use the core more efficiently without hogging 100% of a core?
@eric41

The wineserver process is single-threaded and can therefore cause performance issues, by acting as a bottleneck. This holds especially true for multithreaded/ CPU-bound applications.

You can check for bottlenecking, of your application, by using:

Code: Select all

perf record wine ???.exe
to record a performance trace.

The results of this trace (sorted by overhead) can then be displayed by running:

Code: Select all

perf report
Bob
eric41
Newbie
Newbie
Posts: 2
Joined: Mon Aug 17, 2020 2:07 pm

Re: How to make a wine application run on multiple processors

Post by eric41 »

The Windows Application that I am trying to run is Metatrader 5.I ran the commands that you suggested ie

Code: Select all

perf record wine terminal64.exe
and producted a report using command

Code: Select all

perf report

that I spooled onto a text file with output shown o link below.I am not a Wine expert so what does the output below mean and can it aid in resolving my issue?

https://pastebin.com/TUZatn3r
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: How to make a wine application run on multiple processors

Post by Bob Wya »

eric41 wrote: Wed Aug 19, 2020 12:41 am The Windows Application that I am trying to run is Metatrader 5.I ran the commands that you suggested ie

Code: Select all

perf record wine terminal64.exe
and produced a report using command

Code: Select all

perf report

that I spooled onto a text file with output shown o link below.I am not a Wine expert so what does the output below mean and can it aid in resolving my issue?

https://pastebin.com/TUZatn3r
Ahh, that trace output is actually quite interesting! Looks like the (unnecessary) Wine builtin winemenubuilder.exe process is going a bit nuts... :shock: :lol:

Does it help performance, of Metatrader 5, if you try disabling winemenubuilder.exe?
See: WineHQ FAQ: 6.6.4 How can I prevent Wine from changing the filetype associations on my system or adding unwanted menu entries/desktop links?

Bob
Locked